PHPackages                             soulseekah/metabolic - 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. soulseekah/metabolic

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

soulseekah/metabolic
====================

A library for locking and mutexes for the WordPress Core

30PHP

Since Dec 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/soulseekah/metabolic)[ Packagist](https://packagist.org/packages/soulseekah/metabolic)[ RSS](/packages/soulseekah-metabolic/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

metabolic
=========

[](#metabolic)

A WordPress plugin and developer API to optimize post, user, term and comment meta by combining sequential operations into a handful of SQL queries.

Usage
-----

[](#usage)

- Install as a WordPress plugin (mu-plugin) or add it to your project as a composer dependency (`composer require soulseekah/metabolic`).
- Call `metabolic\defer_meta_updates()`.
- Perform a massive amount of meta update operations.
- Call `metabolic\commit_meta_updates()`.
- Enjoy reduced database load.

Tips
----

[](#tips)

- `use metabolic\{defer_meta_updates, commit_meta_updates}` at the top of your file.

No time to find your hotspots? `metabolic\metabolic()` will automatically defer (queue) and commit sequential adds, updates and deletes as needed. Boost this up.

API
---

[](#api)

### `metabolic\defer_meta_updates( array $args )`

[](#metabolicdefer_meta_updates-array-args-)

### `metabolic\commit_meta_updates( array $args )`

[](#metaboliccommit_meta_updates-array-args-)

### `metabolic\flush_meta_updates( array $args )`

[](#metabolicflush_meta_updates-array-args-)

### `metabolic\metabolize( bool $activate )`

[](#metabolicmetabolize-bool-activate-)

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

[](#development)

- `composer install --dev`
- `git clone --depth=1 git@github.com:WordPress/wordpress-develop.git`
- `cd wordpress-develop && npm i && npm run build:dev; cd ..`
- `cd wordpress-develop; cp wp-tests-config-sample.php wp-tests-config.php; vim wp-tests-config.php`
- set the test database credentials and `:wq` then `cd ..`
- make sure the database exists
- `vendor/bin/phpunit`

TODO
----

[](#todo)

- Concept
- Benchmarks
- Documentation
- Recipes (common hooks to metabolize)
- Tests
- Auto-defer and auto-commit (+ profiler, partial commit short-circuiting)
- i18n

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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/113c5f9278504b2e6d55fce1f8412914ed6328ff34c3b9e099493e36d2f875b7?d=identicon)[soulseekah](/maintainers/soulseekah)

---

Top Contributors

[![soulseekah](https://avatars.githubusercontent.com/u/685880?v=4)](https://github.com/soulseekah "soulseekah (9 commits)")

### Embed Badge

![Health badge](/badges/soulseekah-metabolic/health.svg)

```
[![Health](https://phpackages.com/badges/soulseekah-metabolic/health.svg)](https://phpackages.com/packages/soulseekah-metabolic)
```

###  Alternatives

[magepal/magento2-reindex

Reindex your Magento2 store quickly and easily from backend/admin, instead of command line.

112649.7k1](/packages/magepal-magento2-reindex)[ourcodeworld/name-that-color

A non-official PHP port of the NTC JS library to find out the name of the closest matching color.

37163.5k](/packages/ourcodeworld-name-that-color)[redberry/mcp-client-laravel

Package that enables you access to any mcp server that you define in the config

1345.0k1](/packages/redberry-mcp-client-laravel)[nylle/php-automapper

271.4k](/packages/nylle-php-automapper)

PHPackages © 2026

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