84% easy-elementor-addons

Code Review | Easy Elementor Addons

WordPress plugin Easy Elementor Addons scored84%from 54 tests.

About plugin

  • Plugin page: easy-elementor-ad...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 20, 2021
  • Latest release: Oct 31, 2022
  • Number of updates: 9
  • Update frequency: every 62.2 days
  • Top authors: hashthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,019 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.03MB] [CPU: ▼4.55ms] Passed 4 tests

Analyzing server-side resources used by Easy Elementor Addons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.86 ▼5.50
Dashboard /wp-admin3.34 ▲0.0353.21 ▲0.12
Posts /wp-admin/edit.php3.39 ▲0.0350.00 ▲2.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.72 ▼15.65
Media Library /wp-admin/upload.php3.26 ▲0.0351.66 ▲18.98

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Elementor Addons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.35 ▼1.031.76 ▼0.0740.76 ▼8.28
Dashboard /wp-admin2,213 ▲224.80 ▼1.10102.57 ▼1.3639.83 ▼6.80
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0138.57 ▲0.3136.46 ▲1.76
Add New Post /wp-admin/post-new.php1,549 ▲2718.30 ▼4.83635.33 ▼27.5756.82 ▼20.80
Media Library /wp-admin/upload.php1,389 ▲14.25 ▲0.0497.87 ▼3.1940.91 ▼2.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • eead_widgets
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(wp-content/plugins/easy-elementor-addons/vendor/JsonMachine/examples/../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/easy-elementor-addons/vendor/JsonMachine/examples/symfonyHttpClient.php on line 7
    • > PHP Fatal error
      Uncaught Error: Interface 'JsonMachine\\JsonDecoder\\Decoder' not found in wp-content/plugins/easy-elementor-addons/vendor/JsonMachine/JsonDecoder/PassThruDecoder.php:9
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/easy-elementor-addons/vendor/JsonMachine/examples/../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-elementor-addons/vendor/JsonMachine/examples/symfonyHttpClient.php on line 7
    • > PHP Fatal error
      Uncaught Error: Interface 'JsonMachine\\JsonDecoder\\Decoder' not found in wp-content/plugins/easy-elementor-addons/vendor/JsonMachine/JsonDecoder/ExtJsonDecoder.php:9
    • > PHP Warning
      require_once(wp-content/plugins/easy-elementor-addons/vendor/JsonMachine/examples/../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/easy-elementor-addons/vendor/JsonMachine/examples/guzzleHttp.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-elementor-addons/inc/admin-menu/admin-menu-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function EasyElementorAddons\\add_action() in wp-content/plugins/easy-elementor-addons/inc/admin-menu/admin-menu-class.php:11
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/easy-elementor-addons/vendor/JsonMachine/examples/../../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-elementor-addons/vendor/JsonMachine/examples/guzzleHttp.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
3 plugin tags: elementor widgets, block elements, elementor addons

easy-elementor-addons/easy-elementor-addons.php Passed 13 tests

This is the main PHP file of "Easy Elementor Addons" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
Elementor addons for WordPress Themes developed by HashThemes https://hashthemes.com

Code Analysis Passed 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
Success! There were no dangerous files found in this plugin841,525 lines of code in 261 files:
LanguageFilesBlank linesComment linesLines of code
JSON300721,001
PHP1325,88894643,382
CSS245,6623,68040,084
JavaScript398,2084,26728,371
SVG63337198,687

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity10.69
▷ Minimum class complexity1.00
▷ Maximum class complexity104.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces111
Interfaces1
Traits1
Classes124
▷ Abstract classes10.81%
▷ Concrete classes12399.19%
▷ Final classes10.81%
Methods664
▷ Static methods101.51%
▷ Public methods47371.23%
▷ Protected methods17726.66%
▷ Private methods142.11%
Functions24
▷ Named functions2291.67%
▷ Anonymous functions28.33%
Constants19
▷ Global constants631.58%
▷ Class constants1368.42%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected