83% the-plus-addons-for-elementor-page-builder

Code Review | The Plus Addons for Elementor

WordPress plugin The Plus Addons for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: the-plus-addons-f...
  • Plugin version: 5.2.21
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 29, 2018
  • Latest release: Dec 1, 2023
  • Number of updates: 121
  • Update frequency: every 14.9 days
  • Top authors: posimyththemes (100%)

Code review

54 tests

User reviews

261 reviews

Install metrics

100,000+ active /1,738,287 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.44ms] Passed 4 tests

An overview of server-side resources used by The Plus Addons for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.95 ▼4.92
Dashboard /wp-admin3.33 ▲0.0247.46 ▼3.96
Posts /wp-admin/edit.php3.38 ▲0.0249.58 ▲2.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.28 ▲5.54
Media Library /wp-admin/upload.php3.25 ▲0.0235.15 ▲0.39

Server storage [IO: ▲9.92MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 675 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by The Plus Addons for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4214.20 ▼0.521.66 ▼0.2537.59 ▼6.75
Dashboard /wp-admin2,209 ▲325.60 ▼0.0491.78 ▼10.7639.51 ▼5.86
Posts /wp-admin/edit.php2,117 ▲172.01 ▼0.0141.76 ▲3.4636.95 ▲0.15
Add New Post /wp-admin/post-new.php1,535 ▼023.22 ▼1.91620.04 ▼25.1653.43 ▼24.95
Media Library /wp-admin/upload.php1,414 ▲114.23 ▲0.0196.74 ▲1.3943.79 ▲1.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 37× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/the-plus-addons-for-elementor-page-builder/includes/plus-options/metabox/includes/types/CMB2_Type_Colorpicker.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/the-plus-addons-for-elementor-page-builder/includes/plus-options/metabox/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/the-plus-addons-for-elementor-page-builder/includes/plus-options/metabox/includes/types/CMB2_Type_Wysiwyg.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/the-plus-addons-for-elementor-page-builder/includes/plus-options/metabox/includes/types/CMB2_Type_Picker_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/the-plus-addons-for-elementor-page-builder/includes/plus-options/metabox/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/the-plus-addons-for-elementor-page-builder/includes/plus-options/metabox/includes/types/CMB2_Type_Text.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/the-plus-addons-for-elementor-page-builder/includes/plus-options/metabox/includes/types/CMB2_Type_Checkbox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/the-plus-addons-for-elementor-page-builder/includes/plus-options/metabox/includes/types/CMB2_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/the-plus-addons-for-elementor-page-builder/includes/plus-options/metabox/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-plus-addons-for-elementor-page-builder/includes/plus-options/metabox/includes/helper-functions.php:131

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: elementor widgets, extensions, elementor, elementor templates, elementor addon...

the-plus-addons-for-elementor-page-builder/theplus_elementor_addon.php 85% from 13 tests

"The Plus Addons for Elementor" version 5.2.21's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("the-plus-addons-for-elementor-page-builder.php" instead of "theplus_elementor_addon.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin140,871 lines of code in 493 files:
LanguageFilesBlank linesComment linesLines of code
PHP1604,8978,00483,786
PO File12014,31518,50232,323
CSS931,1131,61117,112
JavaScript997006525,046
Sass16300251,379
XML1001,164
SVG41361

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 197)
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity28.00
▷ Minimum class complexity1.00
▷ Maximum class complexity251.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity197.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes139
▷ Abstract classes85.76%
▷ Concrete classes13194.24%
▷ Final classes10.76%
Methods1,066
▷ Static methods1019.47%
▷ Public methods79874.86%
▷ Protected methods25323.73%
▷ Private methods151.41%
Functions122
▷ Named functions11493.44%
▷ Anonymous functions86.56%
Constants23
▷ Global constants1460.87%
▷ Class constants939.13%
▷ Public constants9100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
33 PNG files occupy 0.93MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/template-view.png1.62KB1.57KB▼ 3.37%
includes/plus-options/metabox/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
includes/plus-options/metabox/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
includes/plus-options/metabox/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
assets/images/selectarrow.png1.03KB0.21KB▼ 79.16%