Friday 19 April 2019

How to prepare your WordPress plugin for a critical update


Why did we need a new version? Before explaining how we proceeded with a new version, it’s important to understand “why” we had to make a new version of Weglot. The main reasons were to improve the “adaptability” of our plugin and to reduce our technical debt.
An increasingly long and difficult support
The first version of Weglot did not contain any WordPress filters or actions: the so-called hooks. It was thus very difficult to change the default behavior of our plugin and adapt it to specific customer needs. We had to provide custom patches to our customers while taking into account the changes for our next updates. It was quite tedious and delicate. The more customers we had, the longer the technical support was. Of course, we could have simply added some filters and actions as we went along, but we were faced with other problems.
A growing technical debt
Here is the quality score of the Weglot WordPress plugin code at the time of the last update of version 1 (v1.13.1): 6.53 / 10
Generally speaking, we can’t say that it’s a terrible score but it’s clearly not great either. The mediocre score was partly due to some of the dependencies
Source: https://managewp.org/articles/18546/how-to-prepare-your-wordpress-plugin-for-a-critical-update



source https://williechiu40.wordpress.com/2019/04/19/how-to-prepare-your-wordpress-plugin-for-a-critical-update/

2 comments:

  1. Qutab AutomobilesTop Maruti Service Center In Gurgaon offers best bodywork, workshop and service to the right customer service. You Can Know Qutab Automobiles, Best Quality Work Day to Day Book Your Service Today!

    ReplyDelete
  2. If you are doing a major upgrade to your plugins and WordPress, you should update the plugins first and test them one at a time. After upgrading WordPress, you may be prompted to update the plugins again to be compatible with the latest version of WordPress.

    ReplyDelete