PHPackages                             wpdesk/wp-code-sniffer - 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. [Admin Panels](/categories/admin)
4. /
5. wpdesk/wp-code-sniffer

ActivePhpcodesniffer-standard[Admin Panels](/categories/admin)

wpdesk/wp-code-sniffer
======================

Library for WP Desk Coding Standards in plugins.

1.3.2(1y ago)060.5k↓43.2%18MITPHP &gt;=7.0CI failing

Since Apr 14Pushed 1mo agoCompare

[ Source](https://github.com/WP-Desk/wp-code-sniffer)[ Packagist](https://packagist.org/packages/wpdesk/wp-code-sniffer)[ Docs](https://gitlab.wpdesk.dev/wpdesk/wp-code-sniffer)[ RSS](/packages/wpdesk-wp-code-sniffer/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (4)Versions (28)Used By (18)

WP Desk Coding Standards
========================

[](#wp-desk-coding-standards)

PHPCS ruleset for WP Desk WordPress plugins.

It builds on WordPress Coding Standards and PHPCompatibilityWP, with additional WP Desk conventions and WooCommerce-aware configuration.

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

[](#installation)

```
composer require --dev wpdesk/wp-code-sniffer
```

Usage
-----

[](#usage)

Copy the provided example files into your project:

```
cp vendor/wpdesk/wp-code-sniffer/phpcs.xml.dist phpcs.xml.dist
cp vendor/wpdesk/wp-code-sniffer/.editorconfig .editorconfig
```

Adjust the values in `phpcs.xml.dist`:

- `text_domain`
- `minimum_wp_version`
- `testVersion`

Then run:

```
vendor/bin/phpcs
```

The example configuration scans `src` and `templates` by default.

Ruleset
-------

[](#ruleset)

The included standard is:

```

```

It includes WordPress rules, PHP compatibility checks, short array syntax, selected WooCommerce capabilities/functions, and excludes common generated or dependency directories.

PhpStorm
--------

[](#phpstorm)

Configure PHP\_CodeSniffer in:

`Settings → Languages & Frameworks → PHP → Quality Tools`

Then enable:

`Settings → Inspections → Quality Tools → PHP_CodeSniffer`

Use your project `phpcs.xml.dist` as the custom coding standard.

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance67

Regular maintenance activity

Popularity28

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~76 days

Recently: every ~131 days

Total

24

Last Release

561d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16497f8884c0767d3a114cc1cf8daaa639bac052178b03c59d59dfa95569d50b?d=identicon)[dyszczo](/maintainers/dyszczo)

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

![](https://www.gravatar.com/avatar/97ac8b53a77161e994c106cc2136cf0601d404e5fd4a3295884d692c767636c7?d=identicon)[bjaskulski](/maintainers/bjaskulski)

![](https://www.gravatar.com/avatar/55defb79e9d149ef3c2524bfdd177e02f8f8e311bcf94b27e81af39337fd3d90?d=identicon)[endriu84](/maintainers/endriu84)

---

Top Contributors

[![bart-jaskulski](https://avatars.githubusercontent.com/u/56613051?v=4)](https://github.com/bart-jaskulski "bart-jaskulski (17 commits)")[![seostudio](https://avatars.githubusercontent.com/u/8124521?v=4)](https://github.com/seostudio "seostudio (17 commits)")[![gbiorczyk](https://avatars.githubusercontent.com/u/32519908?v=4)](https://github.com/gbiorczyk "gbiorczyk (3 commits)")[![dyszczo](https://avatars.githubusercontent.com/u/1263190?v=4)](https://github.com/dyszczo "dyszczo (2 commits)")[![endriu84](https://avatars.githubusercontent.com/u/5675239?v=4)](https://github.com/endriu84 "endriu84 (1 commits)")

---

Tags

phpcswordpressadmincode sniffer

### Embed Badge

![Health badge](/badges/wpdesk-wp-code-sniffer/health.svg)

```
[![Health](https://phpackages.com/badges/wpdesk-wp-code-sniffer/health.svg)](https://phpackages.com/packages/wpdesk-wp-code-sniffer)
```

###  Alternatives

[humanmade/coding-standards

Human Made Coding Standards

161450.0k66](/packages/humanmade-coding-standards)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.2M36](/packages/yoast-yoastcs)[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1792.8k7](/packages/infinum-eightshift-coding-standards)[automattic/vipwpcs

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

25911.8M223](/packages/automattic-vipwpcs)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.3M150](/packages/wp-cli-wp-cli-tests)[wecodemore/current-admin-info

Displays info about the current admin screen and its globals, contextual hooks, etc.

842.7k](/packages/wecodemore-current-admin-info)

PHPackages © 2026

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