78% elegant-addons-for-elementor

Code Review | Elegant Addons for elementor

WordPress plugin Elegant Addons for elementor scored78%from 54 tests.

About plugin

  • Plugin page: elegant-addons-fo...
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2019
  • Latest release: Dec 25, 2022
  • Number of updates: 28
  • Update frequency: every 42.3 days
  • Top authors: aruphash (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /16,361 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.57ms] Passed 4 tests

This is a short check of server-side resources used by Elegant Addons for elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.82 ▲1.61
Dashboard /wp-admin3.32 ▼0.0351.33 ▼11.28
Posts /wp-admin/edit.php3.37 ▲0.0152.41 ▲1.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.52 ▲0.31
Media Library /wp-admin/upload.php3.24 ▲0.0134.79 ▼0.37

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 150 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Elegant Addons for elementor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.20 ▼0.152.00 ▲0.2442.09 ▼2.79
Dashboard /wp-admin2,209 ▲325.67 ▲0.0794.23 ▲0.9644.52 ▲2.48
Posts /wp-admin/edit.php2,117 ▲202.06 ▲0.0741.59 ▲3.9737.25 ▼3.04
Add New Post /wp-admin/post-new.php1,538 ▼217.62 ▼0.46659.57 ▼5.6957.65 ▼3.56
Media Library /wp-admin/upload.php1,417 ▲204.26 ▲0.07109.04 ▲3.5952.88 ▲12.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% 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 everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 7× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-filters.php
    • > /wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-tabs.php
    • > /wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-tabs-item.php
    • > /wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-filters-item.php
    • > /wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-content.php
    • > /wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-preview.php
    • > /wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-templates.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-header.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-keywords.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-header-logo.php:10
    • > PHP Warning
      Use of undefined constant ELEGANT_ADDONS_URL - assumed 'ELEGANT_ADDONS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-header-logo.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-item.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-loading.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-header-back.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-error.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/elegant-addons-for-elementor/includes/templates/scripts/template-modal-insert-button.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
Please take inspiration from this readme.txt

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

"Elegant Addons for elementor" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
78 characters long description:
Elegant Addons Plugin Includes 13+ premium widgets for Elementor Page Builder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected22,767 lines of code in 87 files:
LanguageFilesBlank linesComment linesLines of code
PHP622,1622,78813,316
CSS99591907,457
JavaScript145441741,948
SVG20046

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity9.78
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes41
▷ Abstract classes24.88%
▷ Concrete classes3995.12%
▷ Final classes00.00%
Methods293
▷ Static methods175.80%
▷ Public methods22877.82%
▷ Protected methods5518.77%
▷ Private methods103.41%
Functions41
▷ Named functions3687.80%
▷ Anonymous functions512.20%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
41 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/frontend/images/prettyPhoto1/previous.png0.52KB0.45KB▼ 13.26%
assets/frontend/images/prettyPhoto1/sprite.png2.44KB2.17KB▼ 11.08%
assets/frontend/images/prettyPhoto/dark_square/btnPrevious.png1.41KB1.19KB▼ 15.74%
assets/frontend/images/prettyPhoto/dark_rounded/contentPattern.png0.13KB0.09KB▼ 25.38%
assets/frontend/images/prettyPhoto/default/sprite_x.png1.07KB0.11KB▼ 89.79%