94% eleddon

Code Review | Eleddon - Elementor Addons

WordPress plugin Eleddon - Elementor Addons scored 94% from 54 tests.

About plugin

  • Plugin page: eleddon
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.2
  • WordPress version: 5.9.2
  • First release: Feb 6, 2020
  • Latest release: Feb 11, 2020
  • Number of updates: 27
  • Update frequency: every 0.3 days
  • Top authors: codingeek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 762 total downloads

Benchmarks

Plugin footprint Passed 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.20MB] [CPU: ▼294.63ms] Passed 4 tests

Analyzing server-side resources used by Eleddon - Elementor Addons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.2656.67 ▲5.24
Dashboard /wp-admin3.61 ▲0.2034.93 ▼0.15
Posts /wp-admin/edit.php3.83 ▲0.1940.37 ▲1.18
Add New Post /wp-admin/post-new.php7.16 ▲0.1699.90 ▼1,181.68
Media Library /wp-admin/upload.php3.55 ▲0.2526.34 ▲2.12

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 110 new files
Database: no new tables, 1 new option
New WordPress options
eleddon_widgets_activation

Browser metrics Passed 4 tests

Checking browser requirements for Eleddon - Elementor Addons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,825 ▲8315.63 ▼0.356.47 ▼0.442.88 ▲0.59
Dashboard /wp-admin2,922 ▲616.16 ▼0.02116.22 ▼20.47171.84 ▲13.37
Posts /wp-admin/edit.php2,716 ▲223.25 ▲0.0268.08 ▲1.34142.72 ▼4.27
Add New Post /wp-admin/post-new.php1,739 ▲4922.62 ▲1.68446.35 ▼27.95151.35 ▼0.78
Media Library /wp-admin/upload.php1,728 ▲305.55 ▲0.05137.58 ▼9.01196.34 ▲11.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Base_Data_Control' not found in wp-content/plugins/eleddon/inc/custom-controls/popup-select.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Eleddon\\CustomControl\\add_action() in wp-content/plugins/eleddon/inc/custom-controls/custom-control.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: elementor page builder, addon, elementor, elementor addons

eleddon/eleddon.php Passed 13 tests

The principal PHP file in "Eleddon - Elementor Addons" v. 1.0.0 is loaded by WordPress automatically on each request
26 characters long description:
Description of the plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected21,665 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
SVG511511,847
CSS115952765,344
PHP269335233,953
JavaScript11225168521

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.04
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes14.00%
Methods133
▷ Static methods1511.28%
▷ Public methods10578.95%
▷ Protected methods2115.79%
▷ Private methods75.26%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants1076.92%
▷ Class constants323.08%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
29 PNG files occupy 0.94MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/brand/brand2.png6.29KB3.38KB▼ 46.34%
widgets/assets/img/card/card1.png193.35KB47.89KB▼ 75.23%
admin/assets/img/logo.png7.86KB3.75KB▼ 52.37%
widgets/assets/img/service/service2.png15.17KB7.39KB▼ 51.30%
admin/assets/img/elements/1.png24.57KB11.45KB▼ 53.37%