78% gold-addons-for-elementor

Code Review | Gold Addons for Elementor

WordPress plugin Gold Addons for Elementor scored78%from 54 tests.

About plugin

  • Plugin page: gold-addons-for-e...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Sep 12, 2018
  • Latest release: Mar 31, 2023
  • Number of updates: 42
  • Update frequency: every 39.6 days
  • Top authors: jerryscg (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /58,147 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.14ms] Passed 4 tests

An overview of server-side resources used by Gold Addons for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1043.51 ▲4.83
Dashboard /wp-admin3.41 ▲0.0648.66 ▼14.17
Posts /wp-admin/edit.php3.46 ▲0.1045.28 ▼1.33
Add New Post /wp-admin/post-new.php5.99 ▲0.1083.03 ▼16.24
Media Library /wp-admin/upload.php3.34 ▲0.1036.60 ▼0.82

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 205 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Gold Addons for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.35 ▲0.001.85 ▲0.2643.84 ▲4.90
Dashboard /wp-admin2,213 ▲335.56 ▼0.0283.71 ▼4.0839.62 ▼2.72
Posts /wp-admin/edit.php2,118 ▲182.00 ▲0.0435.50 ▼1.0436.82 ▲1.81
Add New Post /wp-admin/post-new.php1,539 ▲1323.62 ▲0.48671.39 ▼3.9449.12 ▼3.28
Media Library /wp-admin/upload.php1,418 ▲184.24 ▲0.0395.73 ▼4.7741.67 ▼6.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 39× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/._Utils.php
    • > /wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/vendor/._PucReadmeParser.php
    • > /wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/Theme/._Package.php
    • > /wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/Vcs/._GitHubApi.php
    • > /wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/Vcs/._ThemeUpdateChecker.php
    • > /wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/vendor/._ParsedownModern.php
    • > /wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/Plugin/._Package.php
    • > /wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/._StateStore.php
    • > /wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/Vcs/._Api.php
    • > /wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/Plugin/._Info.php
  • 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_DebugBar_Panel' not found in wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/DebugBar/ThemePanel.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_InstalledPackage' not found in wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/Plugin/Package.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_DebugBar_Panel' not found in wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/DebugBar/PluginPanel.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_Metadata' not found in wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/Update.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_Vcs_Api' not found in wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/Vcs/GitHubApi.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_InstalledPackage' not found in wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/Theme/Package.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_Metadata' not found in wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/Plugin/Info.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_Update' not found in wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/Plugin/Update.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_Factory' not found in wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4/Factory.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_Plugin_UpdateChecker' not found in wp-content/plugins/gold-addons-for-elementor/includes/vendor/updater/Puc/v4p11/Vcs/PluginUpdateChecker.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Requires php: Invalid plugin version format
You can look at the official readme.txt

gold-addons-for-elementor/gold-addons-for-elementor.php Passed 13 tests

The main PHP file in "Gold Addons for Elementor" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
75 characters long description:
Gold Addons plugin extends elementor widgets with many new & fresh widgets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin26,127 lines of code in 135 files:
LanguageFilesBlank linesComment linesLines of code
PHP622,5793,60812,375
JavaScript331,1881,2088,628
CSS36665824,472
SVG310629
JSON10023

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity20.41
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes48
▷ Abstract classes510.42%
▷ Concrete classes4389.58%
▷ Final classes12.33%
Methods509
▷ Static methods346.68%
▷ Public methods31762.28%
▷ Protected methods17534.38%
▷ Private methods173.34%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants844.44%
▷ Class constants1055.56%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/owl.video.play.png4.86KB2.74KB▼ 43.61%