PHPackages                             aucor/dynamic-mo-loader - 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. aucor/dynamic-mo-loader

ActiveWordpress-muplugin[Utility &amp; Helpers](/categories/utility)

aucor/dynamic-mo-loader
=======================

Better text domain loading with object cache support for WordPress

1.4.0(6y ago)4454.1k12[10 issues](https://github.com/aucor/dynamic-mo-loader/issues)[1 PRs](https://github.com/aucor/dynamic-mo-loader/pulls)2GPL-2.0-or-laterPHP

Since May 23Pushed 4y ago8 watchersCompare

[ Source](https://github.com/aucor/dynamic-mo-loader)[ Packagist](https://packagist.org/packages/aucor/dynamic-mo-loader)[ Docs](https://github.com/aucor/dynamic-mo-loader)[ RSS](/packages/aucor-dynamic-mo-loader/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)DependenciesVersions (8)Used By (2)

Dynamic MO Loader
=================

[](#dynamic-mo-loader)

Changing the WordPress site language to any other than English slows down page generation times. A lot. This is caused by the slow and inefficient way of text domain loading. This plugin, based on the excellent work by Björn Ahrens, aims to fix that by loading only the text domains that are used in a page and even more, by caching them.

PO and MO files are designed to be used with PHP Gettext-extension. But since it's an extension, it's not installed by default on all hosting platforms. To overcome this barrier, WordPress has re-implemented the whole MO file parsing in PHP completely ignoring the possibility to use native gettext, if available. This WordPress' implementation is a bit slow.

This plugin has another implementation of MO parsing, which is faster than the default one. The plugin also loads only the text domains that are required to generate the current page instead the default behavior of loading every available text domain. As front end pages usually only use strings from few text domains, this leads to a great performance boost in front end.

To boost the performance even more, the plugin also caches the loaded text domains in to the object cache. For optimal performance you need a fast object cache backend like Redis, Memcached or APC(u).

Numbers
-------

[](#numbers)

These following experiments are conducted in a decent LEMP-server, using Nginx, MariaDB, php-fpm and Redis. The server has an SSD. This is the actual page generation time, not the server response time.

**Default WordPress install, php5:**0 active plugins, Twentysixteen with default widgets etc.

```
                 en         fi          fi, cached
front page       26ms       37ms        29ms
post-new.php     47ms       81ms        61ms

```

**Real-life WordPress install, php5:**15 active plugins, Twentysixteen with default widgets etc.

```
                 en         fi          fi, cached
front page       95ms       165ms       101ms
post-new.php     208ms      330ms       295ms

```

**Default WordPress install, php7:**0 active plugins, Twentysixteen with default widgets etc.

```
                 en         fi          fi, cached
front page       12ms       18ms        14ms
post-new.php     27ms       43ms        37ms

```

**Real-life WordPress install, php7:**15 active plugins, Twentysixteen with default widgets etc.

```
                 en         fi          fi, cached
front page       54ms       62ms        55ms
post-new.php     113ms      127ms       116ms

```

Validation with Xdebug
----------------------

[](#validation-with-xdebug)

The following screenshot visualizes how a the built-in WordPress translation functions are skipped and the optimized dynamic loader classes are used instead, resulting in almost a twice as fast load time.

[![Xdebug](screenshot.png)](screenshot.png)

Inclusion in WordPress core
---------------------------

[](#inclusion-in-wordpress-core)

There are plans to implement native gettext in WordPress core. If that happens, this plugin will become obsolete. The [ticket #17268](https://core.trac.wordpress.org/ticket/17268) has however been open already for 6 years to it might not happen any soon though.

License
-------

[](#license)

GPLv2 or later

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community27

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~207 days

Recently: every ~270 days

Total

7

Last Release

2447d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a2b38383e426392e0c0238c2f1924f00d54005ad2d1055aff5a63fb8fd49b3da?d=identicon)[underdude](/maintainers/underdude)

![](https://www.gravatar.com/avatar/e5cda4dc82223eef9b8360d1d558773856ed36725c8ca2f0d6a6db23cb377133?d=identicon)[Teemu Suoranta](/maintainers/Teemu%20Suoranta)

![](https://www.gravatar.com/avatar/67da7c6634250ac0d91894c83401748dc125034342d2a394a40b0ab5fec92301?d=identicon)[mhgx](/maintainers/mhgx)

---

Top Contributors

[![underdude](https://avatars.githubusercontent.com/u/1425702?v=4)](https://github.com/underdude "underdude (9 commits)")[![TeemuSuoranta](https://avatars.githubusercontent.com/u/9577084?v=4)](https://github.com/TeemuSuoranta "TeemuSuoranta (3 commits)")[![ramonfincken](https://avatars.githubusercontent.com/u/1746097?v=4)](https://github.com/ramonfincken "ramonfincken (2 commits)")[![Mte90](https://avatars.githubusercontent.com/u/403283?v=4)](https://github.com/Mte90 "Mte90 (1 commits)")[![ottok](https://avatars.githubusercontent.com/u/668724?v=4)](https://github.com/ottok "ottok (1 commits)")[![tsipilai](https://avatars.githubusercontent.com/u/3884807?v=4)](https://github.com/tsipilai "tsipilai (1 commits)")[![onnimonni](https://avatars.githubusercontent.com/u/5691777?v=4)](https://github.com/onnimonni "onnimonni (1 commits)")

### Embed Badge

![Health badge](/badges/aucor-dynamic-mo-loader/health.svg)

```
[![Health](https://phpackages.com/badges/aucor-dynamic-mo-loader/health.svg)](https://phpackages.com/packages/aucor-dynamic-mo-loader)
```

PHPackages © 2026

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