Giter Club home page Giter Club logo

theme-mentor-for-themeforest's Introduction

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+

theme-mentor-for-themeforest's People

Contributors

andreg avatar ataurr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

theme-mentor-for-themeforest's Issues

Hide force_deactivation message if is set to False

Hey guys, Nice job with the plugin. I have a quick suggestion.

Even if the force_activation is set to be false...
image
...after checking with Theme Mentor it shows those notices:
image

If the force_activation is false, the message doesn't have any sense there. It can be shown only when force_activation is true.

Regards!

  • Cristian

Shorthand conditionals check error

Hi,
perhaps you could tweak a bit your "sniffer" to skip shorthand conditionals. I suppose you're using echo $ , but when you have echo $condition ? esc_attr( $my_dynamic_class ) : ''; , this shouldn't report error.
And, we're using a lot of shorthand conditionals ... :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.