PHPackages                             wpdesk/wp-abtesting - 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. wpdesk/wp-abtesting

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wpdesk/wp-abtesting
===================

2.0.0(6y ago)016.6kPHPPHP &gt;=5.6CI failing

Since Feb 1Pushed 1mo agoCompare

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

READMEChangelogDependencies (5)Versions (7)Used By (0)

WP AB Testing
=============

[](#wp-ab-testing)

Small WordPress/PHP library for assigning users to persistent A/B test variants.

Requirements
------------

[](#requirements)

- PHP &gt;= 5.6
- Composer
- `wpdesk/wp-persistence`

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

[](#installation)

```
composer require wpdesk/wp-abtesting
```

Basic usage
-----------

[](#basic-usage)

Create a test by extending `EqualGroupsRandomABTest` and returning your variant object from `get_variant()`.

Variants are persisted using a `WPDesk\Persistence\PersistentContainer`, so the same user/container keeps the same variant.

Development
-----------

[](#development)

```
composer install
composer phpunit-unit-fast
composer phpunit-integration-fast
```

License
-------

[](#license)

MIT

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance60

Regular maintenance activity

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 63.6% 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 ~163 days

Total

4

Last Release

2264d ago

Major Versions

1.1.0 → 2.0.02020-06-05

### 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/743b5f0758bee201b87fee6f62f81f3522c50c14b5ba982f506c09eeb107586a?d=identicon)[dwukropek](/maintainers/dwukropek)

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

---

Top Contributors

[![dyszczo](https://avatars.githubusercontent.com/u/1263190?v=4)](https://github.com/dyszczo "dyszczo (7 commits)")[![seostudio](https://avatars.githubusercontent.com/u/8124521?v=4)](https://github.com/seostudio "seostudio (3 commits)")[![endriu84](https://avatars.githubusercontent.com/u/5675239?v=4)](https://github.com/endriu84 "endriu84 (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[geocoder-php/plugin

Plugins to Geocoder providers

695.4M2](/packages/geocoder-php-plugin)[creativestyle/magento-patches

MageSuite Patchset For Magento Core

357.6k5](/packages/creativestyle-magento-patches)

PHPackages © 2026

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