PHPackages                             kallookoo/phpcs-rules - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. kallookoo/phpcs-rules

ActivePhpcodesniffer-standard[Validation &amp; Sanitization](/categories/validation)

kallookoo/phpcs-rules
=====================

WordPress &amp; WooCommerce sniffs

1.0.4(11mo ago)017MITPHP &gt;=7.0

Since Jul 20Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/kallookoo/phpcs-rules)[ Packagist](https://packagist.org/packages/kallookoo/phpcs-rules)[ Fund](https://www.paypal.me/kallookoo)[ GitHub Sponsors](https://github.com/kallookoo)[ RSS](/packages/kallookoo-phpcs-rules/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

WordPress &amp; WooCommerce Sniffs
==================================

[](#wordpress--woocommerce-sniffs)

Collection of PHP\_CodeSniffer sniffs for WordPress &amp; WooCommerce that exclude your own files.

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

[](#installation)

```
composer require kallookoo/phpcs-rules
```

Usage
-----

[](#usage)

When the project is related to WooCommerce set the standard with WooCommerce-Excl or set it with WordPress-Excl otherwise.

### Example of a configuration file

[](#example-of-a-configuration-file)

```

	My project ruleset.

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance52

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~83 days

Total

5

Last Release

332d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/370d29e288ca100210734cdf8f96adcb0310f9267592bec2fffe2bac22bc0aec?d=identicon)[kallookoo](/maintainers/kallookoo)

---

Top Contributors

[![kallookoo](https://avatars.githubusercontent.com/u/747817?v=4)](https://github.com/kallookoo "kallookoo (12 commits)")

---

Tags

standardsphpcswordpressstatic analysiswoocommerce

### Embed Badge

![Health badge](/badges/kallookoo-phpcs-rules/health.svg)

```
[![Health](https://phpackages.com/badges/kallookoo-phpcs-rules/health.svg)](https://phpackages.com/packages/kallookoo-phpcs-rules)
```

###  Alternatives

[wp-coding-standards/wpcs

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

2.7k42.5M1.6k](/packages/wp-coding-standards-wpcs)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M42](/packages/woocommerce-woocommerce-sniffs)[phpcompatibility/phpcompatibility-wp

A ruleset for PHP\_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.

21830.6M587](/packages/phpcompatibility-phpcompatibility-wp)[automattic/vipwpcs

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

25510.2M145](/packages/automattic-vipwpcs)[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)

PHPackages © 2026

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