Title: Theme Check &#8211; execution time
Last modified: August 21, 2016

---

# Theme Check – execution time

 *  [Delpierooo](https://wordpress.org/support/users/delpierooo/)
 * (@delpierooo)
 * [13 years ago](https://wordpress.org/support/topic/theme-check-execution-time/)
 * Hi.
 * When I run Theme Check([http://wordpress.org/plugins/theme-check/](http://wordpress.org/plugins/theme-check/))
   on my WP theme on my localhost. Where can I search for the issue? Can it be that
   it’s just too much code and it needs more time to execute or should it execute
   in 30 seconds no matter how much code I have? I do have some complex files(5000
   + code).
 * If this could be an issue solved in theme code, please point out on what should
   I focus.
 * Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years ago](https://wordpress.org/support/topic/theme-check-execution-time/#post-3801146)
 * What happens if you run the Theme Check on the default 2012 theme when that theme
   is active?
 *  Thread Starter [Delpierooo](https://wordpress.org/support/users/delpierooo/)
 * (@delpierooo)
 * [13 years ago](https://wordpress.org/support/topic/theme-check-execution-time/#post-3801150)
 * Theme check gets executed in few seconds. It seems to be a problem with my theme.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years ago](https://wordpress.org/support/topic/theme-check-execution-time/#post-3801160)
 * I hate to say it but it could be that there are so many issues in your theme 
   that the plugin is struggling on your server. Try [turning debug on](http://codex.wordpress.org/Editing_wp-config.php#Debug)
   and [enabling error logging](http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Log)
   to locate & fix issues in your theme before running Theme Check.
 *  Thread Starter [Delpierooo](https://wordpress.org/support/users/delpierooo/)
 * (@delpierooo)
 * [13 years ago](https://wordpress.org/support/topic/theme-check-execution-time/#post-3801164)
 * Hi again,
 * I have debuged theme using wp_debug and some debug plugins. Have resolve those
   issues.
 * Is it possible that it’s too much code for 30 seconds or is theme check spending
   so much time with something else?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years ago](https://wordpress.org/support/topic/theme-check-execution-time/#post-3801172)
 * The plugin doesn’t do anything other than check the code of your theme. Have 
   you tried increasing the max-execution time in your server’s php.ini file? That
   said, I’ve run the plugin on over 30 different themes previously and its never
   taken more than about 10 seconds to complete.
 *  Thread Starter [Delpierooo](https://wordpress.org/support/users/delpierooo/)
 * (@delpierooo)
 * [13 years ago](https://wordpress.org/support/topic/theme-check-execution-time/#post-3801177)
 * Hi,
 * but why would it take so long? What could be in the code that could cause the
   check to be so long? Need to get it under 30 seconds. Does it matter how complex
   the code is or something? Really have no idea and would need to resolve this.
 * Thanks for the past answers and for the incoming ones 🙂
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years ago](https://wordpress.org/support/topic/theme-check-execution-time/#post-3801179)
 * > What could be in the code that could cause the check to be so long?
 * I have no idea. Sorry.
 *  Thread Starter [Delpierooo](https://wordpress.org/support/users/delpierooo/)
 * (@delpierooo)
 * [13 years ago](https://wordpress.org/support/topic/theme-check-execution-time/#post-3801265)
 * Hi again,
 * thanks for your time and help anyway.
 * Anyone else maybe knows what could it be?
 *  Thread Starter [Delpierooo](https://wordpress.org/support/users/delpierooo/)
 * (@delpierooo)
 * [13 years ago](https://wordpress.org/support/topic/theme-check-execution-time/#post-3801283)
 * Hi again,
 * I’ve kinf of found out that the cause are all translate lines like:
    `__("Text",'
   domain')`
 * Any solution for this maybe? Do I need to add something else for this to be ok?
   Have this in my functions file `load_theme_textdomain('domain',get_template_directory().'/
   languages');`
 * THANKS!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Theme Check – execution time’ is closed to new replies.

## Tags

 * [check](https://wordpress.org/support/topic-tag/check/)
 * [execute](https://wordpress.org/support/topic-tag/execute/)
 * [time](https://wordpress.org/support/topic-tag/time/)

 * 9 replies
 * 2 participants
 * Last reply from: [Delpierooo](https://wordpress.org/support/users/delpierooo/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/theme-check-execution-time/#post-3801283)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
