automattic/vipwpcs
PHP_CodeSniffer sniffs and rulesets for validating WordPress VIP code. Includes WordPressVIPMinimum for the older WordPress.com VIP platform and WordPress-VIP-Go for VIP Go, flagging errors and warnings per VIP documentation.
WordPressVIPMinimum for legacy WordPress.com VIP, WordPress-VIP-Go for VIP Go) map to two hosting products. The package makes the tier choice concrete: which ruleset you wire into CI is a direct signal of which platform your codebase targets, which matters when planning a WordPress.com VIP → VIP Go migration.ORDER BY RAND(), posts_per_page => -1, post__not_in, suppress_filters). These surface as warnings/errors when a feature design assumes unbounded queries or uncached results. That's a decision input before code is written, not after.Consider adoption when:
allow-plugins.dealerdirect/phpcodesniffer-composer-installer) required on Composer 2.2+.Look elsewhere when:
NOASSERTION license metadata as an unresolved legal review item.BatcacheWhitelistedParams, Zoninator, bundled VariableAnalysis sniff) or on error codes that were renamed in 3.0.0 — verify your baseline/ruleset config before upgrading, and expect to re-baseline suppressions.Dependents: 0 in the supplied metadata and 261 stars indicate a niche audience; treat the ecosystem signal as "authoritative for its narrow purpose, thin everywhere else." Budget a spike to validate against your real codebase rather than assuming drop-in.To executives: This is a free, Automattic-maintained linter that encodes the exact rules WordPress VIP enforces on our code. Adopting it moves compliance checking from platform review — where failures cost us release cycles — into our own CI, before code ships. It's a two-command Composer dev dependency, no runtime footprint, no license cost, and it transfers the maintenance burden of platform rules to the platform vendor. Decision framing: if VIP is our hosting direction, this is table stakes; and running it against our current code gives us a defensible estimate of migration effort before we commit to dates.
To engineering: automattic/vipwpcs gives you the WordPressVIPMinimum and WordPress-VIP-Go rulesets on top of WPCS, PHPCSUtils/PHPCSExtra, and VariableAnalysis. Install as a dev dependency, allow the Composer installer plugin, point PHPCS at the ruleset matching your platform tier, and gate CI on it. Two things to plan for: the dependency floor is current (PHPCS 3.13.2+, WPCS 3.1.0+, PHP 8.2/8.3 supported), and the 3.0.0 major renamed several error codes and dropped three sniffs — so expect to regenerate any suppression baseline and re-verify ignore comments. Start with a non-blocking report-only run, size the violation count against the errors/warnings distinction, then ratchet to blocking on changed files.
How can I help you explore Laravel packages today?