PHPackages                             eighteen73/wordpress-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. eighteen73/wordpress-coding-standards

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

eighteen73/wordpress-coding-standards
=====================================

Modestly opinionated PHPCS configuration for WordPress.

V2.0.1(2y ago)11.5k↓69%[1 issues](https://github.com/eighteen73/wordpress-coding-standards/issues)14MITJavaScript

Since Jul 11Pushed 6mo ago3 watchersCompare

[ Source](https://github.com/eighteen73/wordpress-coding-standards)[ Packagist](https://packagist.org/packages/eighteen73/wordpress-coding-standards)[ RSS](/packages/eighteen73-wordpress-coding-standards/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (4)Versions (7)Used By (14)

eighteen73 WordPress coding standards
=====================================

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

eighteen73 coding standards for WordPress projects.

Setup
-----

[](#setup)

Each ruleset is available individually via Composer or NPM. To install the needed ruleset, use one of the following commands:

- PHPCS: `composer require --dev eighteen73/wordpress-coding-standards`
- ESLint: `npx install --save-dev @eighteen73/eslint-config-wordpress`
- stylelint: `npm install --save-dev @eighteen73/stylelint-config-wordpress`

Using PHPCS
-----------

[](#using-phpcs)

Run the following command to run the standards checks:

```
vendor/bin/phpcs --standard=vendor/eighteen73/wordpress-coding-standards .

```

We use the [DealerDirect phpcodesniffer-composer-installer](https://github.com/Dealerdirect/phpcodesniffer-composer-installer) package to handle `installed_paths` for PHPCS when first installing the eighteen73 ruleset. If you an error such as `ERROR: Referenced sniff "WordPress-Core" does not exist`, delete the `composer.lock` file and `vendor` directories and re-install Composer dependencies.

The final `.` here specifies the files you want to test; this is typically the current directory (`.`), but you can also selectively check files or directories by specifying them instead.

### Included Checks

[](#included-checks)

The phpcs standard is based upon the `WordPress-VIP` standard from [WordPress Coding Standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards), with [customisation and additions](Eighteen73-WordPress-Default/ruleset.xml) to match our style guide.

### Excluding/Disabling Checks

[](#excludingdisabling-checks)

Rules can be disabled inline. [phpcs rules can be disabled](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-parts-of-a-file) with a `// @codingStandardsIgnoreLine` comment, and [ESLint rules can be disabled](http://eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments) with a `/* eslint disable ... */` comment.

To find out what these codes are, specify `-s` when running `phpcs`, and the code will be output as well. You can specify a full code, or a partial one to disable groups of errors.

Using ESLint
------------

[](#using-eslint)

The ESLint package contains an [ESLint](https://eslint.org/) configuration which you can use to validate your JavaScript code style. While it is possible to run ESLint via phpcs, we recommend you install and use eslint via npm directly. See [the `@eighteen73/eslint-config-wordpress` package README](packages/eslint-config/README.md) for more information on configuring ESLint to use the eighteen73 coding standards.

To integrate the eighteen73 rules into your project, add an `eslint.config.cjs` file and extend these rules. You can also add your own rules and overrides for further customization.

```
const eighteen73 = require( '@eighteen73/eslint-config-wordpress' );

module.exports = [
	{
		ignores: [ '**/build/**', '**/node_modules/**', '**/vendor/**' ],
	},
	...eighteen73,
];
```

If your project still uses `@wordpress/scripts@^31` with legacy `.eslintrc.json`, install `@eighteen73/eslint-config-wordpress@^1` instead. See the package README for migration details.

Using stylelint
---------------

[](#using-stylelint)

The stylelint package contains a [stylelint](https://stylelint.io/) configuration which you can use to validate your CSS and SCSS code style. We recommend you install and use stylelint via npm directly. See [the `@eighteen73/stylelint-config-wordpress` package README](packages/stylelint-config/README.md) for more information on configuring stylelint to use the eighteen73 coding standards.

To integrate the eighteen73 rules into your project, add a `.stylelintrc` file and extend these rules. You can also add your own rules and overrides for further customization.

```
{
  "extends": "@eighteen73/stylelint-config-wordpress",
  "rules": {
    ...
  }
}
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Total

4

Last Release

1019d ago

Major Versions

V1.0.1 → V2.0.02023-09-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/73229?v=4)[Brett Mason ](/maintainers/brettsmason)[@brettsmason](https://github.com/brettsmason)

---

Top Contributors

[![brettsmason](https://avatars.githubusercontent.com/u/73229?v=4)](https://github.com/brettsmason "brettsmason (31 commits)")

### Embed Badge

![Health badge](/badges/eighteen73-wordpress-coding-standards/health.svg)

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

###  Alternatives

[humanmade/coding-standards

Human Made Coding Standards

160443.1k59](/packages/humanmade-coding-standards)[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k134.0M2.3k](/packages/slevomat-coding-standard)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M142](/packages/wp-cli-wp-cli-tests)[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1790.9k6](/packages/infinum-eightshift-coding-standards)

PHPackages © 2026

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