Exclude node_modules and vendor from theme check plugin

While I created countless themes, I’m currently creating my first theme for the WordPress.org theme repo. To ensure a smooth reviewing process, I’m using the plugin Theme Check as mentioned in the theme review handbook.

After adding both composer and npm to my theme, I ended up with an Fatal error: Allowed memory size of 536870912 bytes exhausted error. Investigating this issue brought me to:

I found the solution to my specific issue in:

Thus, I went ahead, opened the main.php in the root folder of the plugin and replaced


While this might not be the best solution to solve this issue, it allows me to analyse my theme.

Leave a Reply