All Projects → WPTT → Wpthemereview

WPTT / Wpthemereview

Licence: mit
PHP_CodeSniffer rules (sniffs) to enforce WordPress theme review coding conventions

Projects that are alternatives of or similar to Wpthemereview

Visual Composer Starter
Visual Composer Starter theme for WordPress designed to be a perfect companion for a simple and good looking website or blog.
Stars: ✭ 125 (-27.75%)
Mutual labels:  wordpress, wordpress-theme
Customizr
Customizr WordPress Theme
Stars: ✭ 133 (-23.12%)
Mutual labels:  wordpress, wordpress-theme
Rizhuti
wordpress theme rizhuti V2.8 Happy Crack version
Stars: ✭ 127 (-26.59%)
Mutual labels:  wordpress, wordpress-theme
Frontenberg
A limited frontend preview of the Gutenberg editor
Stars: ✭ 113 (-34.68%)
Mutual labels:  wordpress, wordpress-theme
Xm Nuxtjs Wordpress
🎉Nuxt.js+Wordpress Rest API
Stars: ✭ 144 (-16.76%)
Mutual labels:  wordpress, wordpress-theme
Wordpress Bootstrap
Bootstrap in WordPress theme form - Bootstrap 3.3.1
Stars: ✭ 1,494 (+763.58%)
Mutual labels:  wordpress, wordpress-theme
Sempress
A highly semantic WordPress Theme with HTML5 templates, responsive and seo optimized. SemPress supports most of the new HTML5 tags, the new HTML5 input-types, microformats, microformats v2 and microdata (Schema.org).
Stars: ✭ 132 (-23.7%)
Mutual labels:  wordpress, wordpress-theme
Tersus
An achingly simple WordPress theme without all the usual cruft.
Stars: ✭ 100 (-42.2%)
Mutual labels:  wordpress, wordpress-theme
Activello
WordPress Bootstrap blog theme with doeznes of options using WordPress Customizer
Stars: ✭ 141 (-18.5%)
Mutual labels:  wordpress, wordpress-theme
Wprecon
WPrecon (WordPress Recon), is a vulnerability recognition tool in CMS Wordpress, developed in Go and with scripts in Lua.
Stars: ✭ 135 (-21.97%)
Mutual labels:  wordpress, wordpress-theme
Plate
Plate: a super stripped-down WordPress starter theme for developers.
Stars: ✭ 110 (-36.42%)
Mutual labels:  wordpress, wordpress-theme
Themeforest Wp Theme Approval Checklist
A comprehensive list of rejection messages which you should avoid to get your WordPress theme approved quickly in Themeforest
Stars: ✭ 150 (-13.29%)
Mutual labels:  wordpress, wordpress-theme
Frontpress
⚡️ A full front-end AngularJS template for WordPress Rest API.
Stars: ✭ 109 (-36.99%)
Mutual labels:  wordpress, wordpress-theme
Wponion
~ Lightweight, Flexible & Rapid WP Development Framework ~
Stars: ✭ 125 (-27.75%)
Mutual labels:  wordpress, wordpress-theme
Wordpressify
🎈 A build system designed to automate your WordPress development workflow.
Stars: ✭ 1,374 (+694.22%)
Mutual labels:  wordpress, wordpress-theme
Primer
Primer is a powerful theme that brings clarity to your content in a fresh design. This is the parent for all themes in the GoDaddy Primer theme family.
Stars: ✭ 129 (-25.43%)
Mutual labels:  wordpress, wordpress-theme
Wp Functions List
This is a list of all WordPress functions from version 0 to version 4.8.1 along with the data of when they were first introduced and if they are deprecated or not
Stars: ✭ 88 (-49.13%)
Mutual labels:  wordpress, wordpress-theme
Vuejs Wordpress Theme Starter
A WordPress theme with the guts ripped out and replaced with Vue.
Stars: ✭ 1,359 (+685.55%)
Mutual labels:  wordpress, wordpress-theme
Wp Tailwind
A WordPress starter theme that utilizes Tailwind + PurgeCSS.
Stars: ✭ 135 (-21.97%)
Mutual labels:  wordpress, wordpress-theme
Sage
WordPress starter theme with a modern development workflow
Stars: ✭ 11,531 (+6565.32%)
Mutual labels:  wordpress, wordpress-theme

WPThemeReview Standard for PHP_CodeSniffer

Introduction

WordPress Themes for which a hosting application has been made for the theme to be hosted in the theme repository on wordpress.org have to comply with a set of requirements before such an application can be approved. Additionally, there are also recommendations for best practices for themes.

This project attempts to automate the code analysis part of the Theme Review Process as much as possible using static code analysis.

PHP_CodeSniffer is the base tool upon which this project is build and is a PHP command-line tool.

This project is a work in progress and passing the checks is no guarantee that your theme will be approved.

Requirements

The WPThemeReview Standard requires:

Installation

The only supported installation method is via Composer.

  1. Make sure you have PHP installed on your system.
  2. If not installed yet, install Composer.

Installing WPThemeReview globally

If you would like to have the WPThemeReview standard available to all projects on your system, you can install it in a central location.

From the command-line, run the following command:

$ php composer.phar global require wptrt/wpthemereview dealerdirect/phpcodesniffer-composer-installer

Installing WPThemeReview as a project dependency

If you use Composer to manage dependencies from your project anyway or are considering using it, you can also choose to install the WPThemeReview standard for an individual project.

From the command-line, run the following command from the root directory of your project:

$ php composer.phar require --dev wptrt/wpthemereview:* dealerdirect/phpcodesniffer-composer-installer:^0.6

Note:

  • The --dev means that WPThemeReview will be installed as a development requirement, not as a requirement for using the Theme.
  • The second package - dealerdirect/phpcodesniffer-composer-installer -, is a Composer plugin which will automatically sort out that PHP_CodeSniffer recognizes the WPThemeReview standard and the various WordPress standards.

Checking your installation was successful

# For a global install:
$ phpcs -i

# For a project install:
$ vendor/bin/phpcs -i

If everything went well, the output should look something like this:

The installed coding standards are MySource, PEAR, PSR1, PSR12, PSR2, Squiz, Zend, PHPCompatibility,
PHPCompatibilityParagonieRandomCompat, PHPCompatibilityParagonieSodiumCompat, PHPCompatibilityWP,
WordPress, WordPress-Core, WordPress-Docs, WordPress-Extra and WPThemeReview

Using the WPThemeReview standard

You can now test your theme code against the WPThemeReview standard by running the following command from the root directory of your theme:

# For a global install:
$ phpcs -p . --standard=WPThemeReview

# For a project install:
$ vendor/bin/phpcs -p . --standard=WPThemeReview

If any issues are found, PHP_CodeSniffer will display a report with all the errors (must fix) and warnings (recommended to fix) for each file.

More information about running PHP_CodeSniffer can be found in the PHP_CodeSniffer Wiki.

Contributing

See CONTRIBUTING, including information about unit testing the standard.

License

See LICENSE (MIT).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].