PHPackages                             automattic/jetpack-abtest - 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. automattic/jetpack-abtest

Abandoned → [automattic/jetpack-explat](/?search=automattic%2Fjetpack-explat)ArchivedJetpack-library[Utility &amp; Helpers](/categories/utility)

automattic/jetpack-abtest
=========================

Provides an interface to the WP.com A/B tests.

v2.1.0(1y ago)425.9k1GPL-2.0-or-laterPHPPHP &gt;=7.0

Since Aug 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Automattic/jetpack-abtest)[ Packagist](https://packagist.org/packages/automattic/jetpack-abtest)[ RSS](/packages/automattic-jetpack-abtest/feed)WikiDiscussions trunk Synced 3w ago

READMEChangelog (1)Dependencies (5)Versions (104)Used By (0)

\[Deprecated\] Jetpack A/B Test
===============================

[](#deprecated-jetpack-ab-test)

**IMPORTANT NOTICE:**

**This package is no longer maintained and currently broken. We do not recommend using it in any new projects.**

---

Provides an interface to the WP.com A/B tests.

Used to retrieve the variation of a valid, active A/B test running on WP.com for the current user.

### Usage

[](#usage)

Retrieve the A/B test variation of the current user for the `example_abtest_name` A/B test:

```
use Automattic\Jetpack\Abtest;

$abtest = new Abtest();
$variation = $abtest->get_variation( 'example_abtest_name' );
```

Will return `null` if the A/B test is invalid or is currently inactive.

Using this package in your WordPress plugin
-------------------------------------------

[](#using-this-package-in-your-wordpress-plugin)

If you plan on using this package in your WordPress plugin, we would recommend that you use [Jetpack Autoloader](https://packagist.org/packages/automattic/jetpack-autoloader) as your autoloader. This will allow for maximum interoperability with other plugins that use this package as well.

Security
--------

[](#security)

Need to report a security vulnerability? Go to  or directly to our security bug bounty site .

License
-------

[](#license)

jetpack-abtest is licensed under [GNU General Public License v2 (or later)](./LICENSE.txt)

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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

Recently: every ~56 days

Total

71

Last Release

723d ago

Major Versions

v1.10.14 → v2.0.02023-11-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c5869ecbb8e0eac7e8b8e0f3cf7bdd8d5fcdc4abc10a72281872c53f8639d44?d=identicon)[automattic](/maintainers/automattic)

![](https://www.gravatar.com/avatar/11609890f6e7a840715f4cfc9622d77ea64b7dfc024df5643fbf8471a18c00f3?d=identicon)[kraft](/maintainers/kraft)

![](https://www.gravatar.com/avatar/5326730499ec14e274f51b9bcc39db6aac0fb38b33849715aae0e2587a2b93df?d=identicon)[jeherve](/maintainers/jeherve)

![](https://www.gravatar.com/avatar/6e220e167e341c28b1aa10bf0bb0374999068329f8683d3187ee3cf6749b8837?d=identicon)[dereksmart](/maintainers/dereksmart)

---

Top Contributors

[![anomiex](https://avatars.githubusercontent.com/u/1030580?v=4)](https://github.com/anomiex "anomiex (97 commits)")[![jeherve](https://avatars.githubusercontent.com/u/426388?v=4)](https://github.com/jeherve "jeherve (37 commits)")[![sergeymitr](https://avatars.githubusercontent.com/u/1341249?v=4)](https://github.com/sergeymitr "sergeymitr (25 commits)")[![zinigor](https://avatars.githubusercontent.com/u/374293?v=4)](https://github.com/zinigor "zinigor (24 commits)")[![samiff](https://avatars.githubusercontent.com/u/15803018?v=4)](https://github.com/samiff "samiff (24 commits)")[![kraftbj](https://avatars.githubusercontent.com/u/88897?v=4)](https://github.com/kraftbj "kraftbj (21 commits)")[![sdixon194](https://avatars.githubusercontent.com/u/33553323?v=4)](https://github.com/sdixon194 "sdixon194 (10 commits)")[![bindlegirl](https://avatars.githubusercontent.com/u/1242807?v=4)](https://github.com/bindlegirl "bindlegirl (9 commits)")[![coder-karen](https://avatars.githubusercontent.com/u/16754605?v=4)](https://github.com/coder-karen "coder-karen (8 commits)")[![tbradsha](https://avatars.githubusercontent.com/u/32492176?v=4)](https://github.com/tbradsha "tbradsha (7 commits)")[![leogermani](https://avatars.githubusercontent.com/u/971483?v=4)](https://github.com/leogermani "leogermani (4 commits)")[![ice9js](https://avatars.githubusercontent.com/u/8056203?v=4)](https://github.com/ice9js "ice9js (4 commits)")[![nateweller](https://avatars.githubusercontent.com/u/10933065?v=4)](https://github.com/nateweller "nateweller (4 commits)")[![nunyvega](https://avatars.githubusercontent.com/u/16329583?v=4)](https://github.com/nunyvega "nunyvega (3 commits)")[![zaerl](https://avatars.githubusercontent.com/u/167611?v=4)](https://github.com/zaerl "zaerl (3 commits)")[![gmjuhasz](https://avatars.githubusercontent.com/u/36671565?v=4)](https://github.com/gmjuhasz "gmjuhasz (3 commits)")[![fgiannar](https://avatars.githubusercontent.com/u/1758399?v=4)](https://github.com/fgiannar "fgiannar (3 commits)")[![brbrr](https://avatars.githubusercontent.com/u/5654161?v=4)](https://github.com/brbrr "brbrr (3 commits)")[![haqadn](https://avatars.githubusercontent.com/u/3737780?v=4)](https://github.com/haqadn "haqadn (3 commits)")[![yansern](https://avatars.githubusercontent.com/u/1287077?v=4)](https://github.com/yansern "yansern (3 commits)")

---

Tags

jetpack

### Embed Badge

![Health badge](/badges/automattic-jetpack-abtest/health.svg)

```
[![Health](https://phpackages.com/badges/automattic-jetpack-abtest/health.svg)](https://phpackages.com/packages/automattic-jetpack-abtest)
```

###  Alternatives

[automattic/jetpack

Jetpack supercharges your self‑hosted WordPress site with the awesome cloud power of WordPress.com

3622.6k](/packages/automattic-jetpack)

PHPackages © 2026

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