Blog Post

Rating plugin Namespace project

GD Rating System Pro was first released in 2015. Since then, the plugin codebase has grown significantly, and it includes a number of addon plugins. And, this year, this plugin and all its addons will get a full code remake to take advantage of the modernized PHP code.

In the past two years, many Dev4Press plugins have undergone the process of updating the code base to modern PHP code based on namespaces, using more PHP 7 features to improve the performance of the code. For some plugins, this process takes a lot of time, due to the extensive plugin size, and it is done in stages. GD Rating System and its addon, are one of the largest plugins Dev4Press has, so it will also need to be done in stages. Plugin version 4.6 scheduled for next week, will be the first version of the plugin starting this rewrite process.

The first stage of the process is converting part of the plugin codebase into a namespace-based organization. To minimize the issues with the change, the plugin will use a class alias function to convert new classes into old class names. This will be a stop-gap measure to ensure that everything works as before, without committing to a full rewrite of everything. The plugin system requirements will be in line with the latest changes announced last month: the plugin will require PHP 7.2 or newer going forward.

Another part of the changes will be embracing the Block Editor blocks. The plugin will get blocks to replace shortcodes and widgets, and the process of doing that will be done during this year. That also means that in the next major release (4.7), the plugin will get a new addon where the shortcodes and widgets will be moved, and the plugin will get blocks support instead. Exact plans for that are still in the works.

During this year, I expect 2 more major releases to continue with the process of rewriting the codebase. The process will include changes to some of the core logic related to expanding the plugin feature, moving to the latest Dev4Press Shared Code Library and finishing the codebase conversion. I am not sure if version 5.0 will be ready by the end of this year, but that is the goal. If not ready by the year’s end, it will be out in the first half of the next year.

If you have any suggestions about the process or some new plugin features, please, use the support forums to let me know.

Please wait...
GD Rating System Pro plugin for WordPress
Ultimate rating solution plugin for WordPress websites

Powerful, highly customizable and versatile ratings plugin to allow your users to vote for anything you want. Includes different rating methods and add-ons.

About the author

Milan Petrovic
Milan Petrovic

CEO and Lead developer of Dev4Press Web Development company, working with WordPress since 2008, first as a freelancer, later founding own development company. Author of more than 250 plugins and more than 20 themes.

Subscribe to Dev4Press Newsletter

Get the latest announcements, release digests, promotions and exclusive discounts, and general Dev4Press-related news straight into your mailbox.


This form collects your email (optionally your name) for the purpose of sending you newsletters. Check out our Privacy Policy for more information on how we store and manage your data. We will not send you any spam. Newsletters are sent 2 to 4 times every month.

Latest From The Blog

wordpress happy birthday wordpress turns 21

Happy Birthday: WordPress Turns 21

21 years young and still going strong, WordPress powers nearly half of all Internet websites and is the most used CMS by a large margin over the competition, with a very active development cycle, showing no signs of slowing down.
tutorials wordpress debug mode benefits and pitfalls

WordPress Debug mode: Benefits and Pitfalls

Developers know how to best use debug in WordPress and WordPress WP_DEBUG constant to get through potential problems and bugs their code might have. But, for regular users, using debug mode can be very confusing and cause more problems than it can help solve.
plugins relase corsecurity 1 9

coreSecurity Pro 1.9

coreSecurity Pro 1.9 brings several very important bug fixes (related to the file scanner), several new features related to antispam control, user session management, improvements to the file scanner, and more.

Leave a Comment

GeneratePress - The perfect lightweight theme for your next project
Grammarly - Number 1 Writing App
0
8
0
0
0
0