| What it is | PHP_CodeSniffer sniffs that check PHP code for cross-version compatibility | Checks the syntax of PHP files in parallel | PHP Mess Detector: finds bugs and code smells in PHP | PHP_CodeSniffer rules that enforce WordPress coding conventions |
| Features | - sniffs that flag PHP features unavailable or changed in a chosen PHP version or range
- testVersion set per run or in a custom ruleset
- consistent results whichever PHP version runs PHP_CodeSniffer
- framework, CMS and polyfill specific rulesets that extend it
| - checks PHP files' syntax in parallel jobs (10 by default)
- plain, coloured, JSON, Checkstyle XML and GitLab Code Quality output
- git blame for the line with an error
- exclude files or folders, or read the file list from standard input
- PHAR file on each release, or install with Composer
| - rules for possible bugs, unused code and overcomplicated expressions
- configurable rule sets
- command line and CI use
- built on PHP Depend metrics
| - WordPress, WordPress-Core, WordPress-Docs and WordPress-Extra standards
- configurable sniff properties
- includes sniffs from PHPCSExtra and PHP_CodeSniffer
- runs in CI and in editors through phpcs
|
| Limitations | - Coverage of PHP compatibility changes isn't complete, and changes before PHP 5.1 are only patchily covered.
- Needs PHP 7.2+, PHP_CodeSniffer 4.0.2+ and PHPCSUtils 1.1.2+.
| | | - Needs PHP 7.2 or newer with the Filter, libxml, Tokenizer and XMLReader extensions.
- Since version 3.0, installing with Composer is the only supported way.
|