Theme-Check

46 Comments

  1. Checking the Atmosphere Theme | Digital Raindrops on 1st December 2010 at 1:14 pm

    […] used the Theme Check plugin which checked all your files for deprecated code and recommended replacements, this picked […]

  2. Frank on 10th December 2010 at 8:35 pm

    Hello, nice idea and plugin. Maybe you can change a small code line? The function stristr() use only at php 5.3 the third paramater and its not on all servers normaly to work with php 5.3. Maybe you can change line 70
    $pre = ltrim( htmlspecialchars( stristr($this_line, $error, true) ) );
    in

    $pre = ( FALSE !== ($pos = strpos($this_line, $error) )
    ? substr($this_line, 0, $pos)
    : FALSE );
    $pre = ltrim( htmlspecialchars( $pre ) );

    many thanks!

  3. Rakesh on 15th December 2010 at 3:32 pm

    I am using this plugin to look for obfuscated codes in the themes I download. One question, can it look for other malicious codes present in the theme, not necessarily obfuscated.

    I am not much into coding.

    Thanks Frank for giving the solution to the error w.r.t function stristr()

    • pross on 15th December 2010 at 3:58 pm

      It can easily be retrofitted to look for anything, take a look at the files in the `checks` folder.

  4. ABTOP on 17th December 2010 at 3:55 am

    The Pro version still has the line
    $pre = ltrim( htmlspecialchars( stristr( $this_line, $error, true ) ) );
    and as long as it has ‘true’ parameter, it will return Warning: Wrong parameter count for stristr()

    • pross on 17th December 2010 at 5:18 pm

      OK new version tagged with this fix.

      I still strongly suggest using the trunk version though, its a complete rewrite and has all the latest guidelines ready for 3.1

      • ABTOP on 18th December 2010 at 2:12 am

        Excellent! A lot better now. Thanks for all your work.

  5. David Trower on 20th January 2011 at 4:57 am

    I’m not sure if this is a plugin problem or a theme guidelines problem, but I have run your plugin on a couple of sites now and on both of them I get this as one of the errors in the theme:
    REQUIRED: Could not find register_sidebar. See: register_sidebar

    However, both themes use the function register_sidebars (note the “s” at the end) which allows you to register multiple sidebars at one time and is valid core WP standards. Shouldn’t the check(s) that check for register_sidebar check for both the function register_sidebar and register_sidebars, since both are valid and both achieve the same thing.

  6. […] Plugin für WordPressPubliziert 21. März 2011 | Von KHK Pross Theme-Check Plugin für WordPress prüft ob ein Theme den aktuellen Zulassungs-Standarts bei […]

  7. […] Click Here to Download Theme-Check 20110412.1 Tags: 20110412.1, Download, Theme-Check […]

  8. Bruce Wamppler on 3rd June 2011 at 11:38 pm

    Just FYI, when running with WP_DEBUG on:

    Notice: Undefined index: extension in /xxxx/wp-content/plugins/theme-check/checks/lineendings.php on line 27

    • pross on 4th June 2011 at 3:18 am

      Thanks Bruce. Fixed in trunk and the latest release.

  9. Bruce Wampler on 15th July 2011 at 4:14 pm

    Hidden files:

    While Theme Check detects hidden files (.Mac-or-Linux-hidden), it doesn’t find hidden directories. I’ve unintentionally been including a hidden directory in my distribution (although it was empty), and suggest that Theme Check include a check and appropriate diagnostic for hidden directories – although I’d think they probably should be prohibited just like hidden files.

    One of the great things about Theme Check is it allows us and easy to verify the little bookkeeping junk like hidden files.

    • pross on 15th July 2011 at 4:52 pm

      Good suggestion Bruce, yes it already detects .git and .svn and . files like htaccess i wouyld have thought that would catch dirs too, obviously not, something to add 😉 thx!

      • pross on 17th July 2011 at 1:39 am

        Just to add, new version was released today, hidden folders are now detected.

  10. Njabulo Wela on 14th March 2012 at 1:24 pm

    Hi, complete noob here. How do I use theme check exactly? I’ve installed it as a plugin, but I’m not sure how to actually test my themes? Like I said, I’m a clueless noob so any help would be appreciated.

    • Njabulo Wela on 14th March 2012 at 1:27 pm

      Never mind, managed to get up and running as soon as I’d posted my question *awkward*

      • fawnahareo on 11th January 2013 at 7:27 am

        Okay, for future n00bs like me: go to the Appearance->Themes section of your Dashboard and you’ll find a “Check Theme” button there. 🙂

        • John on 2nd May 2013 at 6:25 pm

          Thanks! Just downloaded and didn’t have a clue how to use it.

  11. Installing WordPress PluginsWPJournal on 19th August 2012 at 4:30 pm

    […] (In this tutorial, we have downloaded the plugin ‘Theme-Check’ from developer’s website.)Now, go to your admin panel > Plugins > Add New > Upload. After installing the plugin, […]

  12. Installing WordPress Plugins on 2nd September 2012 at 7:19 am

    […] (In this tutorial, we have downloaded the plugin ‘Theme-Check’ from developer’s website.)Now, go to your admin panel > Plugins > Add New > Upload. After installing the plugin, […]

  13. Bruce Wampler on 6th September 2012 at 6:02 pm

    In case no one else reported this (with WP_DEBUG true):

    Notice: Undefined offset: 1 in //wp-content/plugins/theme-check/main.php on line 75

  14. Gabriel Tenita on 20th September 2012 at 6:04 am

    The non-printable characters check doesn’t account for Unicode characters and gives a warning for non-printable characters when you have regional characters in the code. One way to solve this is to add ‘u’ at the end of the regular expression in line 13 of checks/nonprintable.php as in
    if ( preg_match('/[\x00-\x08\x0B-\x0C\x0E-\x1F\x80-\xFF]/u', $content, $matches ) ) {

    Another minor annoyance is that in my setup $version[1] is not defined and since the plugin doen’t check if it is defined, throws an error at line75 in main.php.

  15. […] You can check out Theme-Review here. […]

  16. Potential User on 3rd February 2013 at 12:38 am

    Hi! I make tons of themes for a living and just downloaded your plugin “theme check”. I came here looking for documentation to begin using the plugin.

    You have an effect where you rain heiniken beer cans. Super cool effect bro, too bad it made the site impossible to read and no way of turning it off. You’re clearly not a credible designer or developer, plugin uninstalled.

    I typed this out after turning javascript off. Now I will promptly re-nable javascript, leave and never come back.

    • Simon prosser on 3rd February 2013 at 12:48 am

      Not sure why you came to my personal blog for support when the plugins support page is on WordPress.org
      http://wordpress.org/extend/plugins/theme-check/

      Maybe it’s time to install a proper browser capable of running JavaScript.

      Btw if your thinking of uploading a theme to the wp themes repo you will have no choice but to use my plugin as its used by wp during the theme submission process.

  17. persi on 8th March 2013 at 2:59 pm

    hi,
    I have this error:
    Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\unique\wp-content\plugins\theme-check\checkbase.php on line 87

    have you any info or experience about this issue.

    I did not use “set_time_limit(0)” for remove time limitation, I want fix problem

    thanks

    • persi on 9th March 2013 at 4:55 pm

      I found the problem, I have many (+1000) text that use _e() function and this affect to process time and for this I have this error.

      good luck

  18. […] ismi “Theme Check“. Adından da anlaşılacağı üzere temanızı kontrol ederek kodlamalarda, stil […]

  19. O’gsteckt is | Engelspost(s) on 4th April 2013 at 12:10 pm

    […] 4) Theme-Check […]

  20. Rapi71 on 16th May 2013 at 12:48 pm

    HI I installed the plugin, but ¿where is the report?

    • Simon prosser on 16th May 2013 at 4:01 pm

      Under the Appearance menu you will see the Theme-Check link.

  21. Rapi71 on 16th May 2013 at 4:22 pm

    Thanks, it´s true.
    The plugin found a lot of errors, Who can guide me to fix it, I have some of knowledge, to do it.

    Part of report:
    WARNING: No screenshot detected! Please include a screenshot.png.
    REQUIRED:License: is missing from your style.css header.
    REQUIRED:License URI: is missing from your style.css header.
    REQUIRED:.sticky css class is needed in your theme css.
    REQUIRED:.gallery-caption css class is needed in your theme css.
    REQUIRED:.bypostauthor css class is needed in your theme css.
    REQUIRED: No content width has been defined

  22. […] on 12/11/2012.  I did not find a site for technical support but I did find one for the plug in at http://pross.org.uk/plugins/theme-check/ A similar plug in is […]

  23. […] Theme-Check on Simon Prosser’s Site […]

  24. […] to make sure that your theme is up-to-date with the current WordPress Theme Review guidelines, then Theme Check is a […]

  25. […] to make sure that your theme is up-to-date with the current WordPress Theme Review guidelines, then Theme Check is a […]

  26. […] to make sure that your theme is up-to-date with the current WordPress Theme Review guidelines, then Theme Check is a […]

  27. […] to make sure that your theme is up-to-date with the current WordPress Theme Review guidelines, then Theme Check is a […]

  28. […] to make sure that your theme is up-to-date with the current WordPress Theme Review guidelines, then Theme Check is a […]

  29. […] to make sure that your theme is up-to-date with the current WordPress Theme Review guidelines, then Theme Check is a […]

  30. […] to make sure that your theme is up-to-date with the current WordPress Theme Review guidelines, then Theme Check is a […]

  31. […] to make sure that your theme is up-to-date with the current WordPress Theme Review guidelines, then Theme Check is a […]

Leave a Comment