PHP_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions

Installs: 308 691

Dependents: 39

Suggesters: 0

Security: 0

Stars: 93

Watchers: 10

Forks: 19

Open Issues: 67



This project contains PHP_CodeSniffer (PHPCS) sniffs and rulesets to validate code developed for VIP.

This project contains two rulesets:

  • WordPressVIPMinimum - for use with projects on the (older) VIP platform.
  • WordPress-VIP-Go - for use with projects on the (newer) VIP Go platform.

These rulesets contain only the rules which are considered to be "errors" and "warnings" according to the WordPress VIP Go documentation

The rulesets use rules from the WordPress Coding Standards (WPCS) project.

Go to to learn about why violations are flagged as errors vs warnings and what the levels mean.

Minimal requirements


composer require automattic/vipwpcs, or composer g require automattic/vipwpcs if installing globally.

This will install the latest compatible versions of PHPCS and WPCS.

Please refer to the installation instructions for installing PHP_CodeSniffer for VIP for more details.

We recommend the PHP_CodeSniffer Standards Composer Installer Plugin, which handles the registration of all of the installed standards, so there is no need to set the installed_paths config value manually, for single or multiple standards.

Alternatively, you should register the standard to PHPCS by appending the VIPCS directory to the end of the installed paths. e.g.

phpcs --config-set installed_paths /path/to/wpcsstandard,path/to/vipcsstandard,etc.


Please see


Licensed under GPL-2.0-or-later.