PHPackages                             niels-de-blaauw/wp-qualitycontrol - 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. niels-de-blaauw/wp-qualitycontrol

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

niels-de-blaauw/wp-qualitycontrol
=================================

Quality Control checker

38.0k[6 issues](https://github.com/NielsdeBlaauw/wp-qualitycontrol/issues)PHP

Since Jun 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/NielsdeBlaauw/wp-qualitycontrol)[ Packagist](https://packagist.org/packages/niels-de-blaauw/wp-qualitycontrol)[ RSS](/packages/niels-de-blaauw-wp-qualitycontrol/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

[![CodeFactor](https://camo.githubusercontent.com/9c299f7bd0b3e495948e101f88c7b892accef0470654a01e11d9c80deb33518b/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f6e69656c736465626c616175772f77702d7175616c697479636f6e74726f6c2f62616467652f6d6173746572)](https://www.codefactor.io/repository/github/nielsdeblaauw/wp-qualitycontrol/overview/master)

WP Qualitycontrol
=================

[](#wp-qualitycontrol)

With complex themes it is often impossible to try every single combination of settings and fields provided in post-types.

WP Qualitycontrol creates many fuzzed posts with minimal configuration. After generating semi-realistic content the created posts are tested to see if they produce a valid webpage.

Setup
=====

[](#setup)

1. Define WP Qualitycontrol as a dependency
-------------------------------------------

[](#1-define-wp-qualitycontrol-as-a-dependency)

`composer require niels-de-blaauw/wp-qualitycontrol`

The tool will load automatically.

2. Run the generate command
---------------------------

[](#2-run-the-generate-command)

Inside WordPress install, use the generate command:

`wp qualitycontrol generate`

Customisation
=============

[](#customisation)

It is possible to overwrite and extend the field processing with custom classes. This method can be used to add non-standard ACF field types, or modify output generation when the default does not fit the project.

Tests
-----

[](#tests)

You can add tests to the URL validation by using the following filters:

- `ndb/qualitycontrol/test/fulfilled` possibly succeeded.
- `ndb/qualitycontrol/test/rejected` probably failed.

Fields
------

[](#fields)

There are three filters to hijack the field object.

### 1. Field name

[](#1-field-name)

```
add_filter('ndb/qualitycontrol/field_name=post_option_name', function($returnValue, $field, $post_type){
	return new CustomObject($field, $post_type);
}, 10, 3);

```

### 2. Field key

[](#2-field-key)

```
add_filter('ndb/qualitycontrol/field_key=field_597c8fd614621', function($returnValue, $field, $post_type){
  return new CustomObject($field, $post_type);
}, 10, 3);

```

### 3. Field type

[](#3-field-type)

```
add_filter('ndb/qualitycontrol/field_type=color_picker', function($returnValue, $field, $post_type){
	return new CustomObject($field, $post_type);
}, 10, 3);

```

Return value
------------

[](#return-value)

Returning `false` skips to the next filter. Otherwise you must return an object implementing `\NDB\QualityControl\FieldTypes\iFieldType`.

Notes
=====

[](#notes)

- The generate command will clean generated posts before and after running the command, unless you tell it not to.
- If the testing sequence is enabled and fails, cleaning the generated posts is skipped so you can debug with the generated content that failed.
- You can manually clean generated posts with `wp qualitycontrol clean`.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/02fe3b568484997768925e14cabb4ee06b92592e86f8c0b8a56bf8912dde89f1?d=identicon)[NielsdeBlaauw](/maintainers/NielsdeBlaauw)

---

Top Contributors

[![NielsdeBlaauw](https://avatars.githubusercontent.com/u/661876?v=4)](https://github.com/NielsdeBlaauw "NielsdeBlaauw (67 commits)")

---

Tags

acf-fieldautomated-testingwordpresswordpress-developmentwp-qualitycontrol

### Embed Badge

![Health badge](/badges/niels-de-blaauw-wp-qualitycontrol/health.svg)

```
[![Health](https://phpackages.com/badges/niels-de-blaauw-wp-qualitycontrol/health.svg)](https://phpackages.com/packages/niels-de-blaauw-wp-qualitycontrol)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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