PHPackages                             wptrt/wpthemereview - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. wptrt/wpthemereview

ActivePhpcodesniffer-standard[PSR &amp; Standards](/categories/psr-standards)

wptrt/wpthemereview
===================

PHP\_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org

0.2.1(6y ago)217736.5k↑39.8%36[27 issues](https://github.com/WPTT/WPThemeReview/issues)[4 PRs](https://github.com/WPTT/WPThemeReview/pulls)20MITPHPPHP &gt;=5.4CI failing

Since Dec 17Pushed 4y ago23 watchersCompare

[ Source](https://github.com/WPTT/WPThemeReview)[ Packagist](https://packagist.org/packages/wptrt/wpthemereview)[ Docs](https://make.wordpress.org/themes/handbook/review/)[ RSS](/packages/wptrt-wpthemereview/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (18)Used By (20)

[![Latest Version](https://camo.githubusercontent.com/0daaf82c31cc265fe6ecf1d62051d377ada8498bd3c4c4c8afd4181b4d2aa303/68747470733a2f2f706f7365722e707567782e6f72672f77707472742f77707468656d657265766965772f762f737461626c65)](https://packagist.org/packages/wptrt/wpthemereview)[![Last Commit to Unstable](https://camo.githubusercontent.com/faf088de00ee020df2a8ad0eb7f0bae83967207148b34cf97b4c926af7331da2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f575054542f57505468656d655265766965772f646576656c6f702e737667)](https://github.com/WPTT/WPThemeReview/commits/develop)[![CS Build Status](https://github.com/WPTT/WPThemeReview/actions/workflows/sniff.yaml/badge.svg)](https://github.com/WPTT/WPThemeReview/actions/workflows/sniff.yaml)[![Test Build Status](https://github.com/WPTT/WPThemeReview/actions/workflows/test.yaml/badge.svg)](https://github.com/WPTT/WPThemeReview/actions/workflows/test.yaml)

[![Minimum PHP Version](https://camo.githubusercontent.com/146bf318979a3cb23e1eab4adfee0a369bef973f19cdafd255587380f9b711c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f77707472742f77707468656d657265766965772e7376673f6d61784167653d33363030)](https://packagist.org/packages/wptrt/wpthemereview)[![License: MIT](https://camo.githubusercontent.com/2a926b319e30a673790c7b340ed4c84f4bb4334a13efa0f8a10532ca8fbf3745/68747470733a2f2f706f7365722e707567782e6f72672f77707472742f77707468656d657265766965772f6c6963656e7365)](https://github.com/WPTT/WPThemeReview/blob/develop/LICENSE)[![Number of Contributors](https://camo.githubusercontent.com/8cb2d6f04cfa30d39744bbb85f069165289fadfcb88fde5ba2771f970a5596dc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f575054542f57505468656d655265766965772e7376673f6d61784167653d33363030)](https://github.com/WPTT/WPThemeReview/graphs/contributors)

WPThemeReview Standard for PHP\_CodeSniffer
===========================================

[](#wpthemereview-standard-for-php_codesniffer)

- [Introduction](#introduction)
- [Requirements](#requirements)
- [Installation](#installation)
    - [Installing WPThemeReview globally](#installing-wpthemereview-globally)
    - [Installing WPThemeReview as a project dependency](#installing-wpthemereview-as-a-project-dependency)
    - [Checking your installation was successful](#checking-your-installation-was-successful)
- [Using the WPThemeReview standard](#using-the-wpthemereview-standard)
- [Contributing](#contributing)
- [License](#license)

Introduction
------------

[](#introduction)

WordPress Themes for which a hosting application has been made for the theme to be hosted in the theme repository on [wordpress.org](https://wordpress.org/themes/) have to comply with [a set of requirements](https://make.wordpress.org/themes/handbook/review/required/) before such an application can be approved. Additionally, there are also [recommendations](https://make.wordpress.org/themes/handbook/review/recommended/) for best practices for themes.

This project attempts to automate the code analysis part of the [Theme Review Process](https://make.wordpress.org/themes/handbook/review/) as much as possible using static code analysis.

[PHP\_CodeSniffer](https://github.com/squizlabs/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
------------

[](#requirements)

The WPThemeReview Standard requires:

- PHP 5.4 or higher.
- [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) version **3.3.1** or higher.
- [WordPress Coding Standards](https://github.com/WordPress/WordPress-Coding-Standards) version **2.2.0** or higher.
- [PHPCompatibilityWP](https://github.com/PHPCompatibility/PHPCompatibilityWP) version **2.0.0** or higher.

Installation
------------

[](#installation)

The only supported installation method is via [Composer](https://getcomposer.org/).

1. Make sure you have PHP installed on your system.
2. If not installed yet, install [Composer](https://getcomposer.org/download/).

### Installing WPThemeReview globally

[](#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

[](#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.7
```

> 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

[](#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
--------------------------------

[](#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](https://github.com/squizlabs/PHP_CodeSniffer/wiki).

Contributing
------------

[](#contributing)

See [CONTRIBUTING](.github/CONTRIBUTING.md), including information about [unit testing](.github/CONTRIBUTING.md#unit-testing) the standard.

License
-------

[](#license)

See [LICENSE](LICENSE) (MIT).

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity56

Moderate usage in the ecosystem

Community39

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~191 days

Total

3

Last Release

2374d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c276f443673da81d365a16828d46818ea4e3136f7ce05491abcc70f43c82fa4c?d=identicon)[jrfnl](/maintainers/jrfnl)

![](https://www.gravatar.com/avatar/2bbf5d68008a40dd09df7de61b7f06de29163885ca93e8b9706574aadc07ff12?d=identicon)[dingo-d](/maintainers/dingo-d)

---

Top Contributors

[![jrfnl](https://avatars.githubusercontent.com/u/663378?v=4)](https://github.com/jrfnl "jrfnl (189 commits)")[![dingo-d](https://avatars.githubusercontent.com/u/8638515?v=4)](https://github.com/dingo-d "dingo-d (55 commits)")[![grappler](https://avatars.githubusercontent.com/u/1785641?v=4)](https://github.com/grappler "grappler (14 commits)")[![shadyvb](https://avatars.githubusercontent.com/u/451892?v=4)](https://github.com/shadyvb "shadyvb (4 commits)")[![westonruter](https://avatars.githubusercontent.com/u/134745?v=4)](https://github.com/westonruter "westonruter (3 commits)")[![aristath](https://avatars.githubusercontent.com/u/588688?v=4)](https://github.com/aristath "aristath (3 commits)")[![jtsternberg](https://avatars.githubusercontent.com/u/1098900?v=4)](https://github.com/jtsternberg "jtsternberg (2 commits)")[![timelsass](https://avatars.githubusercontent.com/u/11907254?v=4)](https://github.com/timelsass "timelsass (2 commits)")[![JDGrimes](https://avatars.githubusercontent.com/u/4005415?v=4)](https://github.com/JDGrimes "JDGrimes (2 commits)")[![Rarst](https://avatars.githubusercontent.com/u/737584?v=4)](https://github.com/Rarst "Rarst (1 commits)")[![ernilambar](https://avatars.githubusercontent.com/u/2098823?v=4)](https://github.com/ernilambar "ernilambar (1 commits)")

---

Tags

coding-standardswordpresswordpress-themestandardsphpcswordpressthemes

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wptrt-wpthemereview/health.svg)

```
[![Health](https://phpackages.com/badges/wptrt-wpthemereview/health.svg)](https://phpackages.com/packages/wptrt-wpthemereview)
```

###  Alternatives

[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[automattic/vipwpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions

25510.2M145](/packages/automattic-vipwpcs)[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1785.2k3](/packages/infinum-eightshift-coding-standards)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)[phpcompatibility/phpcompatibility-all

A set of rulesets for PHP\_CodeSniffer to check for PHP cross-version compatibility issues and opportunities to modernize code in PHP projects.

1361.7k](/packages/phpcompatibility-phpcompatibility-all)[szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset

Hybrid PHPCS ruleset for OOP WordPress development

1149.1k9](/packages/szepeviktor-phpcs-psr-12-neutron-hybrid-ruleset)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
