67% essential-addons-for-elementor-lite

Code Review | Essential Addons for Elementor

WordPress plugin Essential Addons for Elementor scored 67% from 54 tests.

About plugin

  • Plugin page: essential-addons-...
  • Plugin version: 5.0.11
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Jul 20, 2017
  • Latest release: Mar 23, 2022
  • Number of updates: 254
  • Update frequency: every 6.7 days
  • Top authors: re_enter_rupok (81.5%)wpdevteam (7.87%)codetic (7.87%)Asif2BD (3.94%)

Code review

54 tests

User reviews

2606 reviews

Install metrics

1,000,000+ active / 28,111,932 total downloads

Benchmarks

Plugin footprint 65% 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: ▼2.16MB] [CPU: ▼346.05ms] Passed 4 tests

A check of server-side resources used by Essential Addons for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.346.60 ▼49.94
Dashboard /wp-admin2.24 ▼1.175.85 ▼32.42
Posts /wp-admin/edit.php2.24 ▼1.3912.97 ▼30.91
Add New Post /wp-admin/post-new.php2.24 ▼4.735.22 ▼1,270.92
Media Library /wp-admin/upload.php2.24 ▼1.055.51 ▼24.96
Essential Addons /wp-admin/admin.php?page=eael-setup-wizard2.246.68

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 441 new files
Database: no new tables, 4 new options
New WordPress options
eael_save_settings
eael_version
wpdeveloper_plugins_data
eael_setup_wizard

Browser metrics Passed 4 tests

This is an overview of browser requirements for Essential Addons for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,858 ▲11415.78 ▲0.005.75 ▼0.242.13 ▼0.08
Dashboard /wp-admin2,983 ▲1256.18 ▲0.01116.28 ▼16.46174.32 ▲19.85
Posts /wp-admin/edit.php2,783 ▲983.38 ▲0.1569.44 ▼1.50152.92 ▲1.34
Add New Post /wp-admin/post-new.php1,844 ▲18323.31 ▲6.69378.08 ▼41.37194.20 ▲39.91
Media Library /wp-admin/upload.php1,793 ▲955.56 ▲0.01122.49 ▼17.70210.91 ▲29.58
Essential Addons /wp-admin/admin.php?page=eael-setup-wizard3,9533.1788.97197.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Bootstrap.php+164
    Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options detected upon uninstall: 3 options
    • eael_save_settings
    • eael_setup_wizard
    • eael_version

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=eael-setup-wizard
    • > Warning in wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Bootstrap.php+164
    Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP)

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 144× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Use of undefined constant EAEL_PLUGIN_PATH - assumed 'EAEL_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/essential-addons-for-elementor-lite/config.php on line 1126
    • > PHP Warning
      Use of undefined constant EAEL_PLUGIN_PATH - assumed 'EAEL_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/essential-addons-for-elementor-lite/config.php on line 15
    • > PHP Warning
      Use of undefined constant EAEL_PLUGIN_PATH - assumed 'EAEL_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/essential-addons-for-elementor-lite/config.php on line 830
    • > PHP Warning
      Use of undefined constant EAEL_PLUGIN_PATH - assumed 'EAEL_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/essential-addons-for-elementor-lite/config.php on line 749
    • > PHP Warning
      Use of undefined constant EAEL_PLUGIN_PATH - assumed 'EAEL_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/essential-addons-for-elementor-lite/config.php on line 423
    • > PHP Warning
      Use of undefined constant EAEL_PLUGIN_PATH - assumed 'EAEL_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/essential-addons-for-elementor-lite/config.php on line 1141
    • > PHP Warning
      Use of undefined constant EAEL_PLUGIN_PATH - assumed 'EAEL_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/essential-addons-for-elementor-lite/config.php on line 705
    • > PHP Warning
      Use of undefined constant EAEL_PLUGIN_PATH - assumed 'EAEL_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/essential-addons-for-elementor-lite/config.php on line 645
    • > PHP Warning
      Use of undefined constant EAEL_PLUGIN_PATH - assumed 'EAEL_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/essential-addons-for-elementor-lite/config.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/essential-addons-for-elementor-lite/includes/Template/Betterdocs-Category-Grid/Layout_2.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

essential-addons-for-elementor-lite/essential_adons_elementor.php 85% from 13 tests

The principal PHP file in "Essential Addons for Elementor" v. 5.0.11 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("essential-addons-for-elementor-lite.php" instead of "essential_adons_elementor.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected161,846 lines of code in 409 files:
LanguageFilesBlank linesComment linesLines of code
PHP1129,0194,10382,513
JavaScript1245,2407,28745,690
CSS1292,16914932,013
SVG43441,202
XML100428

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.27
Average class complexity34.92
▷ Minimum class complexity1.00
▷ Maximum class complexity170.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity85.00
Code structure
Namespaces8
Interfaces0
Traits18
Classes70
▷ Abstract classes00.00%
▷ Concrete classes70100.00%
▷ Final classes00.00%
Methods1,019
▷ Static methods797.75%
▷ Public methods72571.15%
▷ Protected methods26626.10%
▷ Private methods282.75%
Functions21
▷ Named functions00.00%
▷ Anonymous functions21100.00%
Constants11
▷ Global constants763.64%
▷ Class constants436.36%
▷ Public constants4100.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
13 PNG files occupy 0.54MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/youtube-promo.png186.93KB130.96KB▼ 29.94%
assets/admin/images/templately/login-bg.png81.21KB86.90KB0.00%
assets/admin/images/demo-2.png40.75KB12.68KB▼ 68.89%
assets/admin/images/play-btn.png0.84KB0.53KB▼ 37.43%
assets/admin/images/chat.png2.67KB1.17KB▼ 56.38%