About PerfLocale
A multilingual plugin built from scratch with care for performance, security, and WordPress standards.
Why PerfLocale exists
Multilingual WordPress sites shouldn't have to choose between features and speed. PerfLocale was built from the ground up to handle translation without adding unnecessary weight to your pages.
Every architectural decision is guided by three principles: keep it fast, keep it safe, and do it the WordPress way. No third-party libraries.
Thoughtful performance
PerfLocale uses a 3-layer caching architecture that serves most operations from memory. Batch preloading prevents repeated database queries. Hooks and filters are registered conditionally - if a feature isn't needed on a page, its code doesn't run.
Internal benchmarks measure around 1 ms of plugin code time per request on a multilingual site, and the plugin stays low even under heavy load — across single-site and multisite, with and without persistent object cache. Real-world page speed depends mostly on your theme, hosting, and other plugins. See the full methodology and tables.
- 3-layer cacheIn-memory → Redis/Memcached → database
- Batch preloadingOne query for the whole list, never N+1
- Conditional hooksLoaded only when a feature is actually used
Security as a foundation
Security is built into every layer of PerfLocale, not added as an afterthought. We follow WordPress security best practices throughout:
- All database operations are protected against injection attacks
- All output is sanitized to prevent cross-site scripting
- All form submissions and API requests are verified for authenticity
- All actions are permission-checked so users can only do what they're allowed to
- All external connections use HTTPS and are validated to prevent unauthorized requests
- Tamper-proof databaseQueries are parameterized.
- Safe page outputUser content is escaped before display.
- Verified form submissionsForms use single-use tokens.
- Permission-aware actionsAdmin actions check the user’s role.
- Trusted external callsExternal calls are HTTPS-only with validated URLs.
Built for developers
PerfLocale provides 200+ action and filter hooks, a full REST API, WP-CLI commands, and a clean addon architecture. Extending or customizing PerfLocale should feel natural to any WordPress developer.
The addon system auto-detects compatible plugins and themes — if a host plugin is active, the matching integration switches itself on. Need something custom? Implement AddonInterface, register on a single action hook, and you have a first-class addon. The developer docs cover the full lifecycle including schema, migrations, and uninstall.
use PerfLocale\Addon\AddonInterface;class AcmeAddon implements AddonInterface { public function register(): void { add_filter( 'perflocale/translatable_meta', [ $this, 'register_meta' ] ); }}// Auto-detected by PerfLocale on activation.add_action( 'perflocale/addon/register', fn( $r ) => $r->add( new AcmeAddon() ));Free and open source
PerfLocale is licensed under GPL-2.0+ — the same license as WordPress itself. You can use it on as many sites as you want, run it commercially, study the source, modify it for your own needs, and redistribute your changes. The four classic GPL freedoms apply, in full.
Contributions, bug reports, feature requests, and translations into your language are always welcome.