Sunday, November 26, 2023

WordPress.org has launched a high-performance translation plug-in to solve performance problems caused by translation

 After an in-depth performance analysis earlier this year revealed that translation affects server response times, WordPress contributors came up with six technical solutions for consideration to improve performance on the approximately 56% of websites that use translation.


Performant Translations is a feature project of the Core Performance Team and is now available as a plugin on WordPress.org. It combines some suggested solutions and speeds up translation by converting .mo files into .php files, allowing them to be parsed faster and stored in the OPcache cache.


It supports multiple file formats (.mo, .php, and .json) as well as multiple text fields and locales loaded simultaneously. Existing .mo files are converted into .php files and then loaded by WordPress.


The graph included on the plugin details page shows that page load times are significantly reduced when using the plugin compared to a translated website that does not use the plugin. The plugin's translation results are very close to the page load times of the English (untranslated) website.

“With enough testing and feedback, we hope to eventually merge the plugin into WordPress core,” performance team contributor Pascal Birchler said when announcing the plugin at X.


"In the coming weeks and months, we will share more testing instructions and continue to improve the plugin. This will also be available through Performance Labs."


Users testing the plugin can report issues on the support forum or create an issue on the GitHub repository.


Performant Translations is considered a beta testing plugin, but may be tested and used in production at your own risk. No changes to settings or configuration are required after installation. The plugin can be safely removed after testing as it will basically clean up after itself. Once the plugin is deactivated and uninstalled, all .php files it generated will be deleted by the server.

WooCommerce 8.3 sets shopping cart, checkout and order confirmation blocks by default on new installations

 WooCommerce version 8.3 has been released, bringing the shopping cart, checkout, and order confirmation blocks as the default checkout flow for new installations. This is a major milestone in WooCommerce’s journey towards a block-first checkout experience.

Version 8.3 is slightly delayed as core developers work to ensure it is compatible with the latest changes to WordPress 6.4 and the planned release of PHP 8.3 on November 23, 2023. They also want to give plugin developers time to prepare for the new reality of shopping carts and checkout blocks as default settings. The FAQ document outlines the steps for developers who still need to make their extensions compatible.

Developers with extensions that do not support the new Block Checkout by Default feature are encouraged to declare their plugins as incompatible so that WooCommerce can display a message to users in the settings sidebar. (For plugins that do not extend the shopping cart and checkout flow, no action is required).

While existing stores will not be affected by cart and checkout blocks becoming the default, merchants can easily choose the experience using the WooCommerce migration tool located in WooCommerce > Status > Tools > Create page. The tool will automatically generate new pages with block-based checkout flow. Blocked order confirmation templates are currently only available for stores using the block theme.

Other notable changes in WooCommerce 8.3 include:


Theme added to improved WooCommerce > Extension Marketplace

Market search improved

Mobile app onboarding improvements, Jetpack no longer required

Optimize images to reduce WooCommerce package size

WooCommerce 8.3 contains 682 commits to the core plugin, and 231 commits from the WooCommerce block, thanks to the efforts of 96 contributors. Check out the changelog for a more detailed look at the many fixes, tweaks, and enhancements included in this release.

WordPress.org has launched a high-performance translation plug-in to solve performance problems caused by translation

 After an in-depth performance analysis earlier this year revealed that translation affects server response times, WordPress contributors ca...