Table of contents of the article:
Among the CMS platforms, WordPress is one of the most widely used and popular, especially for its flexibility and wide range of available plugins. However, when it comes to multilingual sites, performance can become a critical issue. Many translation plugins, while functional, can negatively impact server response times , effectively slowing down page loading speeds. This is particularly relevant for companies that focus on web performance, such as those specializing in CMS hosting like WordPress.
Performant Translations Plugin is Available on WordPress.org
After an in-depth performance analysis earlier this year that revealed how translations can affect server response times, WordPress contributors have come up with half a dozen technical solutions to improve performance for around 56 % of sites using translations.
“ Performant Translations ,” a special project from the WordPress Performance team, is now available as a plugin on WordPress.org.
The WordPress Performance Team is a group of developers, engineers, and enthusiasts dedicated to optimizing the performance of the WordPress platform. The team's primary goal is to improve the speed, efficiency, and scalability of WordPress by addressing issues such as server response times, page loading, and resource usage. Working closely with other teams and contributors, the Performance Team proposes technical solutions, develops new tools and plugins, and conducts detailed analysis to ensure WordPress remains a fast and reliable web platform. They play a crucial role in WordPress's evolution, helping to keep the CMS competitive in an ever-changing digital marketplace. For more information and to join the discussions, visit the WordPress Performance Team website.
The Performant Translations plugin incorporates some of the proposed solutions and speeds up translations by converting .mo files into .php files, thus allowing faster reading and storage in the OPcache.
To better understand what OPCache is, we recommend reading this: Zend OpCache. How to speed up PHP?
The plugin supports different file formats (.mo, .php and .json) and multiple text domains and localizations uploaded at the same time. Existing .mo files are converted into .php files which are then uploaded by WordPress.
A table included on the plugin detail page shows a significant reduction in page load time when using the plugin, compared to sites with translations that don't use it. The plugin brings the loading times of translated pages closer to those of English (untranslated) pages.
With enough testing and feedback, we hope to eventually integrate this plugin into WordPress core, in the coming weeks and months we will share more testing instructions and continue to improve the plugin. This will also be made available through the Performance Lab.
said Pascal Birchler, a contributor on the Performance team, when announcing the plugin.
Users testing the plugin can report issues in the support forum or create a bug report in the GitHub repository.
Performant Translations is considered a beta plugin, but can be tested and used in production at your own risk. It doesn't require any changes to settings or configuration after installation. The plugin can be safely removed after testing, as it essentially cleans up after itself. All generated .php files will be removed from your server once the plugin is deactivated and uninstalled.