PHPackages                             onepix/wp-static-analysis - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. onepix/wp-static-analysis

ActiveLibrary[Testing &amp; Quality](/categories/testing)

onepix/wp-static-analysis
=========================

Psalm, PHPCS and Rector configs for use in WP

v1.0.0(9mo ago)15241[1 PRs](https://github.com/onepixnet/wp-static-analysis/pulls)Apache-2.0PHPPHP ^8.3CI passing

Since Feb 10Pushed 9mo agoCompare

[ Source](https://github.com/onepixnet/wp-static-analysis)[ Packagist](https://packagist.org/packages/onepix/wp-static-analysis)[ RSS](/packages/onepix-wp-static-analysis/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (11)Versions (9)Used By (0)

WP Static Analysis
==================

[](#wp-static-analysis)

### TODO

[](#todo)

- Psalm plugin for autoregistration of installed `onepix/*-stubs`
- Rector CLI

### Install

[](#install)

```
composer require --dev onepix/wp-static-analysis
```

### Required

[](#required)

- PHP 8.3+

CLI
---

[](#cli)

### PHP\_CodeSniffer

[](#php_codesniffer)

```
vendor/bin/wp-static-analysis phpcs [OPTIONS] -- [...]
```

```
vendor/bin/wp-static-analysis phpcbf [OPTIONS] -- [...]
```

`[PHPCS-ARGS]`: Arguments from [PHP\_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Usage)

`[OPTIONS]`:

- `--ruleset` - Path to the custom `ruleset.xml` file relative to the project

If `--ruleset` is not present, it checks the files in order of priority:

1. `.config/.phpcs.xml`
2. `.config/phpcs.xml`
3. `.config/.phpcs.xml.dist`
4. `.config/phpcs.xml.dist`
5. `WpOnepixStandard` is automatically applied

#### Example

[](#example)

```
vendor/bin/wp-static-analysis phpcs --ruleset=./phpcs/example.xml -- --colors

```

#### Overriding rules

[](#overriding-rules)

`.config/phpcs.xml`

```

```

### Psalm

[](#psalm)

```
vendor/bin/wp-static-analysis psalm [OPTIONS] -- [...]
```

`[PSALM-ARGS]`: Arguments from [Psalm](https://psalm.dev/docs/running_psalm/command_line_usage/)

`[OPTIONS]`:

- `--config` - Path to the custom `psalm.xml` file relative to the project

If `--config` is not present, it checks the files in order of priority:

1. `.config/psalm.xml`
2. `.config/psalm.xml.dist`
3. Default config from this package `config/psalm.xml`

#### Example

[](#example-1)

```
vendor/bin/wp-static-analysis psalm --config=./phpcs/example.xml -- --help

```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance58

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Recently: every ~57 days

Total

8

Last Release

272d ago

Major Versions

v0.7.2 → v1.0.02025-10-04

PHP version history (2 changes)v0.5.0PHP ^8.1

v1.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/380c3a3697647ffa6dacfa3f41ef2d8ea43a40a12a823d380b843b57ac14750c?d=identicon)[onepix](/maintainers/onepix)

---

Top Contributors

[![0zd0](https://avatars.githubusercontent.com/u/67220210?v=4)](https://github.com/0zd0 "0zd0 (33 commits)")

---

Tags

standardsphpcsdevwordpressstatic analysisrectorpsalm

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/onepix-wp-static-analysis/health.svg)

```
[![Health](https://phpackages.com/badges/onepix-wp-static-analysis/health.svg)](https://phpackages.com/packages/onepix-wp-static-analysis)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M305](/packages/laravel-horizon)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)

PHPackages © 2026

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