Skip to content

Theme Mentor For Themeforest - helper plugin for themeforest WordPress Themes , the cousin of Theme-Check reporting other possible theme issues

Notifications You must be signed in to change notification settings

Ataurr/Theme-Mentor-For-Themeforest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Theme-Mentor-For-Themeforest

Theme Mentor For Themeforest - helper plugin for themeforest WordPress Themes , the cousin of Theme-Check reporting other possible theme issues

Theme Mentor is quite similar to Theme-Check. It iterates all .php files - your root theme folder template files and your includes in inner folders (plus functions.php).

Currently supported validations:

  • Check All dynamic data escape
  • Check TGMPA force activation and deactivation plugins
  • Check dirname(FILE)
  • Mark all tags in template files
  • Warn about query_posts() usage
  • capital_P_dangit control (disallow any WordPress spelling other than WordPress as is – that is WORDPRESS and WordPress, ugh)
  • wp_deregister_script(‘jquery’) is forbidden
  • wp_dequeue_script(‘jquery’) is forbidden
  • wp_enqueue_script(‘jquery’) is loaded
  • prevent global $data; call as a common troublemaker (props @pippinsplugins)

header.php specific

  • Make sure that wp_head is before
  • Check Title tag available in header.php

footer.php specific

  • Make sure that wp_footer is before

Mentor

Different checks are being run to ensure the code quality of the theme. Theme-Check is more or less trustworthy, it does report valid theme errors or missing features most of the time, but it is missing most of the eventual issues in a theme.

What Theme Mentor does in addition is reporting everything that might or might not be suspicious. The average success rate is about 70%, but it serves as a reminder for common WPTRT review remarks for you to double check. After all, you don't lose anything. If you verify the report from Theme Mentor, you would either: a) confirm that your code base is in tact, or: b) fix a nasty error that Theme-Check is afraid to report (fault tolerance issues).

Filter to exclude specific folder names from the checks.

theme_mentory_excluded_folders
Credits:

Theme-Mentor

Copyright Ataurr

Licence GPL 2+

About

Theme Mentor For Themeforest - helper plugin for themeforest WordPress Themes , the cousin of Theme-Check reporting other possible theme issues

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published