PHPackages                             pronamic/wp-coding-standards - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pronamic/wp-coding-standards

ActivePhpcodesniffer-standard[Utility &amp; Helpers](/categories/utility)

pronamic/wp-coding-standards
============================

Pronamic WordPress WordPress Coding Standards for PHP\_CodeSniffer.

v2.5.0(4mo ago)4101.8k↓38.5%20GPL-2.0-or-laterPHPPHP &gt;=8.3

Since Jun 25Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/pronamic/wp-coding-standards)[ Packagist](https://packagist.org/packages/pronamic/wp-coding-standards)[ Docs](https://github.com/pronamic/wp-coding-standards)[ RSS](/packages/pronamic-wp-coding-standards/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (14)Used By (20)

Pronamic WordPress Coding Standards
===================================

[](#pronamic-wordpress-coding-standards)

Pronamic WordPress Coding Standards for PHP\_CodeSniffer.

Versions
--------

[](#versions)

We try to provide support for the last 3 major releases of PHP and WordPress in our projects.

### PHP

[](#php)

- `8.5`
- `8.4`
- `8.3`

### WordPress

[](#wordpress)

- `6.9`
- `6.8`
- `6.7`

[https://codex.wordpress.org/WordPress\_Versions](https://codex.wordpress.org/WordPress_Versions)

### Other

[](#other)

-
-

PHP\_CodeSniffer
----------------

[](#php_codesniffer)

[https://github.com/PHPCSStandards/PHP\_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer)

### Arguments

[](#arguments)

[https://github.com/PHPCSStandards/PHP\_CodeSniffer/wiki/Usage](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Usage)

#### `colors`

[](#colors)

By default use colors in output.

```

```

#### `extensions`

[](#extensions)

By default only check files with `php` extension:

```

```

#### `parallel`

[](#parallel)

By default use `8` parallel processes.

```

```

[squizlabs/PHP\_CodeSniffer#1732](https://github.com/squizlabs/PHP_CodeSniffer/issues/1732)

#### `sp`

[](#sp)

By default show sniff codes in all reports. By default show progress of the run.

```

```

Rules
-----

[](#rules)

### PHPCompatibilityWP

[](#phpcompatibilitywp)

By default this package test PHP `8.3` and higher via the following setting:

```

```

### PHPCompatibility

[](#phpcompatibility)

Required through `PHPCompatibilityWP`.

### WordPress

[](#wordpress-1)

By default the minimum WordPress version to check is set to `6.7` via the following setting:

```

```

### WordPressVIPMinimum

[](#wordpressvipminimum)

### WordPress-VIP-Go

[](#wordpress-vip-go)

### VariableAnalysis

[](#variableanalysis)

Exclusions
----------

[](#exclusions)

### `WordPress.Files.FileName.InvalidClassFileName`

[](#wordpressfilesfilenameinvalidclassfilename)

According to the WordPress PHP Coding Standards:

> Class file names should be based on the class name with `class-` prepended and the underscores in the class name replaced with hyphens, for example `WP_Error` becomes:
>
> ```
> class-wp-error.php
>
> ```

*Source:*

This sniff will check on this naming convention:

```
Class file names should be based on the class name with "class-" prepended. Expected class-test.php, but found Test.php.

```

We often use the [PSR-4](https://www.php-fig.org/psr/psr-4/) autoloading mechanism and therefore deviate from it.

### `WordPress.Files.FileName.NotHyphenatedLowercase`

[](#wordpressfilesfilenamenothyphenatedlowercase)

According to the WordPress PHP Coding Standards:

> Files should be named descriptively using lowercase letters. Hyphens should separate words.
>
> ```
> my-plugin-name.php
>
> ```

*Source:*

```
Filenames should be all lowercase with hyphens as word separators. Expected test.php, but found Test.php.

```

We often use the [PSR-4](https://www.php-fig.org/psr/psr-4/) autoloading mechanism and therefore deviate from it.

### `Universal.Arrays.DisallowShortArraySyntax`

[](#universalarraysdisallowshortarraysyntax)

According to the WordPress PHP Coding Standards:

> Using long array syntax ( `array( 1, 2, 3 )` ) for declaring arrays is generally more readable than short array syntax ( `[ 1, 2, 3 ]` ), particularly for those with vision difficulties. Additionally, it’s much more descriptive for beginners.
>
> Arrays must be declared using long array syntax.

*Source:*

[![Pronamic - Work with us](https://github.com/pronamic/brand-resources/raw/main/banners/pronamic-work-with-us-leaderboard-728x90%404x.png)](https://www.pronamic.eu/contact/)

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance76

Regular maintenance activity

Popularity34

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity74

Established project with proven stability

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

Recently: every ~188 days

Total

13

Last Release

132d ago

Major Versions

v1.3.1 → v2.0.02023-09-05

PHP version history (5 changes)1.0.0PHP &gt;=5.6.20

1.1.0PHP &gt;=7.4

1.3.0PHP &gt;=8.0

v2.4.0PHP &gt;=8.2

v2.5.0PHP &gt;=8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/869674?v=4)[Remco Tolsma](/maintainers/remcotolsma)[@remcotolsma](https://github.com/remcotolsma)

---

Top Contributors

[![remcotolsma](https://avatars.githubusercontent.com/u/869674?v=4)](https://github.com/remcotolsma "remcotolsma (81 commits)")

---

Tags

phpcsphpcs-standardwordpressstandardsphpcswordpresspronamic

### Embed Badge

![Health badge](/badges/pronamic-wp-coding-standards/health.svg)

```
[![Health](https://phpackages.com/badges/pronamic-wp-coding-standards/health.svg)](https://phpackages.com/packages/pronamic-wp-coding-standards)
```

###  Alternatives

[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M42](/packages/woocommerce-woocommerce-sniffs)[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)[phpcsstandards/phpcsutils

A suite of utility functions for use with PHP\_CodeSniffer

6333.4M58](/packages/phpcsstandards-phpcsutils)[wptrt/wpthemereview

PHP\_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org

217736.5k29](/packages/wptrt-wpthemereview)

PHPackages © 2026

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