83% endless-addons-for-elementor

Code Review | Endless Addons - WordPress Plugin For Elementor Website Builder

WordPress plugin Endless Addons - WordPress Plugin For Elementor Website Builder scored83%from 54 tests.

About plugin

  • Plugin page: endless-addons-fo...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2021
  • Latest release: Nov 23, 2022
  • Number of updates: 8
  • Update frequency: every 80.3 days
  • Top authors: envytheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,154 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
Installer ran successfully

Server metrics [RAM: ▲0.68MB] [CPU: ▲3.19ms] Passed 4 tests

Analyzing server-side resources used by Endless Addons - WordPress Plugin For Elementor Website Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.6951.34 ▲7.07
Dashboard /wp-admin4.02 ▲0.7159.31 ▲9.64
Posts /wp-admin/edit.php4.06 ▲0.7053.88 ▲2.62
Add New Post /wp-admin/post-new.php6.56 ▲0.6797.74 ▼5.40
Media Library /wp-admin/upload.php3.88 ▲0.6543.40 ▲8.48

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 276 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Endless Addons - WordPress Plugin For Elementor Website Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,026 ▲26514.92 ▲0.2920.93 ▲18.9049.39 ▲2.70
Dashboard /wp-admin2,227 ▲535.70 ▲0.1287.12 ▼8.4083.78 ▲40.59
Posts /wp-admin/edit.php2,135 ▲322.16 ▲0.2138.04 ▼7.4536.75 ▼2.65
Add New Post /wp-admin/post-new.php1,555 ▲2922.83 ▼0.29711.65 ▲74.6759.26 ▼5.35
Media Library /wp-admin/upload.php1,429 ▲324.17 ▼0.03104.74 ▲0.8669.86 ▲27.14

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% 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 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
Please fix the following
  • 56× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/endless-addons-for-elementor/includes/class-endless-addons-tooltip.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_settings_field() in wp-content/plugins/endless-addons-for-elementor/includes/options/option-6.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/endless-addons-for-elementor/includes/floating/ea-accordion-floating.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/endless-addons-for-elementor/includes/widgets/endless-addons-button-widget.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/endless-addons-for-elementor/includes/widgets/endless-addons-business-hour-widget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_settings_field() in wp-content/plugins/endless-addons-for-elementor/includes/options/option-5.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/endless-addons-for-elementor/includes/widgets/endless-addons-timeline-widget.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/endless-addons-for-elementor/includes/widgets/endless-addons-image-box-widget.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/endless-addons-for-elementor/includes/widgets/endless-addons-flipbox-widget.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/endless-addons-for-elementor/includes/floating/ea-contact-floating.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Too many tags (36 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

endless-addons-for-elementor/endless-addons.php 85% from 13 tests

The main PHP script in "Endless Addons - WordPress Plugin For Elementor Website Builder" version 1.0.5 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("endless-addons-for-elementor.php" instead of "endless-addons.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected84,000 lines of code in 175 files:
LanguageFilesBlank linesComment linesLines of code
PHP743,5023,51338,692
CSS773,18253522,476
JavaScript205481,03616,010
SVG3104,194
PO File11,2343,4912,628

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 212)
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity51.74
▷ Minimum class complexity1.00
▷ Maximum class complexity212.00
Average method complexity9.81
▷ Minimum method complexity1.00
▷ Maximum method complexity212.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes42
▷ Abstract classes00.00%
▷ Concrete classes42100.00%
▷ Final classes12.38%
Methods242
▷ Static methods135.37%
▷ Public methods16668.60%
▷ Protected methods6526.86%
▷ Private methods114.55%
Functions69
▷ Named functions6797.10%
▷ Anonymous functions22.90%
Constants12
▷ Global constants758.33%
▷ Class constants541.67%
▷ Public constants5100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
32 PNG files occupy 1.29MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/pricing/icon3.png17.09KB5.45KB▼ 68.11%
public/img/shape/shape1.png27.61KB8.72KB▼ 68.43%
public/img/shape/shape4.png9.45KB5.51KB▼ 41.69%
public/img/shape/shape5.png9.18KB5.50KB▼ 40.11%
public/img/business/business-hours-img-1.png135.92KB32.38KB▼ 76.18%