78% addon-elements-for-elementor-page-builder

Code Review | Elementor Addon Elements

WordPress plugin Elementor Addon Elements scored78%from 54 tests.

About plugin

  • Plugin page: addon-elements-fo...
  • Plugin version: 1.12.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 15, 2016
  • Latest release: Nov 23, 2023
  • Number of updates: 149
  • Update frequency: every 17.4 days
  • Top authors: wpvibes (73.15%)webtechstreet (27.52%)

Code review

54 tests

User reviews

170 reviews

Install metrics

100,000+ active /2,206,948 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by Elementor Addon Elements
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.70 ▼4.34
Dashboard /wp-admin3.33 ▲0.0249.62 ▲1.65
Posts /wp-admin/edit.php3.38 ▲0.0246.89 ▲0.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.14 ▼15.86
Media Library /wp-admin/upload.php3.25 ▲0.0235.12 ▲1.43

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Elementor Addon Elements
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.21 ▼0.021.87 ▲0.1639.45 ▼5.26
Dashboard /wp-admin2,202 ▲225.53 ▲0.0396.28 ▲5.5644.01 ▲5.94
Posts /wp-admin/edit.php2,107 ▲71.96 ▲0.0140.42 ▼1.5638.28 ▲0.82
Add New Post /wp-admin/post-new.php1,533 ▲723.31 ▲0.11660.00 ▲2.2763.59 ▲7.28
Media Library /wp-admin/upload.php1,404 ▲14.21 ▼0.1398.21 ▼3.7043.49 ▼1.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/addon-elements-for-elementor-page-builder/modules/shape-separator/shapes/triangle-bottom-left.php
    • > /wp-content/plugins/addon-elements-for-elementor-page-builder/modules/shape-separator/shapes/triangle-upper-right.php
    • > /wp-content/plugins/addon-elements-for-elementor-page-builder/modules/shape-separator/shapes/triangle-bottom-right.php
    • > /wp-content/plugins/addon-elements-for-elementor-page-builder/modules/shape-separator/shapes/triangle-upper-left.php
  • 100× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Group_Control_Base' not found in wp-content/plugins/addon-elements-for-elementor-page-builder/controls/group/grid-control.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPML_Elementor_Module_With_Items' not found in wp-content/plugins/addon-elements-for-elementor-page-builder/wpml/modules/comparison-table/class-wpml-eae-comparison-table-plan-two.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WTS_EAE\\Modules\\Timeline\\Skins\\Skin_Base' not found in wp-content/plugins/addon-elements-for-elementor-page-builder/modules/timeline/skins/skin-3.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WTS_EAE\\Modules\\Chart\\Skins\\Skin_Base' not found in wp-content/plugins/addon-elements-for-elementor-page-builder/modules/chart/skins/skin-polar-area-chart.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPML_Elementor_Module_With_Items' not found in wp-content/plugins/addon-elements-for-elementor-page-builder/wpml/modules/comparison-table/class-wpml-eae-comparison-table-plan-three.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/addon-elements-for-elementor-page-builder/elementor-addon-elements.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WTS_EAE\\Modules\\Timeline\\Skins\\Skin_Base' not found in wp-content/plugins/addon-elements-for-elementor-page-builder/modules/timeline/skins/skin-2.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WTS_EAE\\Modules\\ProgressBar\\Skins\\Skin_Base' not found in wp-content/plugins/addon-elements-for-elementor-page-builder/modules/progress-bar/skins/skin-5.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/addon-elements-for-elementor-page-builder/modules/shape-separator/shapes/triangle-upper-right.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'WTS_EAE\\Modules\\ProgressBar\\Skins\\Skin_Base' not found in wp-content/plugins/addon-elements-for-elementor-page-builder/modules/progress-bar/skins/skin-1.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: elementor, elements, wordpress page builder, elementor page builder, page-builder...

addon-elements-for-elementor-page-builder/elementor-addon-elements.php 85% from 13 tests

The main PHP file in "Elementor Addon Elements" ver. 1.12.9 adds more information about the plugin and also serves as the entry point for this plugin
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: Please rename the main PHP file in this plugin to the plugin slug ("addon-elements-for-elementor-page-builder.php" instead of "elementor-addon-elements.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin100,326 lines of code in 222 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript359,1685,43251,542
PHP1274,26030736,752
CSS91,28659611,634
SVG5002250
Sass1152148

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.74
▷ Minimum class complexity1.00
▷ Maximum class complexity156.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity84.00
Code structure
Namespaces68
Interfaces0
Traits0
Classes121
▷ Abstract classes75.79%
▷ Concrete classes11494.21%
▷ Final classes00.00%
Methods690
▷ Static methods365.22%
▷ Public methods52776.38%
▷ Protected methods12117.54%
▷ Private methods426.09%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
20 PNG files occupy 1.42MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-8.png40.16KB11.71KB▼ 70.84%
assets/lib/vegas/overlays/09.png0.13KB0.12KB▼ 13.87%
assets/screenshot-1.png81.46KB25.62KB▼ 68.55%
assets/aep.png13.82KB6.34KB▼ 54.12%
assets/lib/vegas/overlays/03.png0.20KB0.10KB▼ 53.11%