83% extensions-for-elementor

Code Review | Extensions for Elementor

WordPress plugin Extensions for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: extensions-for-el...
  • Plugin version: 2.0.30
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Nov 23, 2019
  • Latest release: Sep 29, 2023
  • Number of updates: 121
  • Update frequency: every 11.6 days
  • Top authors: msdnsditlabs (94.21%)petesheppard84 (6.61%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /50,489 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: ▲2.75MB] [CPU: ▲12.07ms] Passed 4 tests

A check of server-side resources used by Extensions for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.94 ▲2.24
Dashboard /wp-admin6.91 ▲3.6175.85 ▲3.66
Posts /wp-admin/edit.php7.03 ▲3.6774.04 ▲15.91
Add New Post /wp-admin/post-new.php9.77 ▲3.88118.90 ▲26.45
Media Library /wp-admin/upload.php6.93 ▲3.7069.72 ▲34.00
Field Groups /wp-admin/edit.php?post_type=acf-field-group6.9273.55
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools6.9467.36
Add New /wp-admin/post-new.php?post_type=acf-field-group7.0780.89

Server storage [IO: ▲14.18MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 555 new files
Database: no new tables, 11 new options
New WordPress options
ee_mb_property_setting
widget_recent-posts
theysaidso_admin_options
db_upgraded
acf_version
widget_theysaidso_widget
ee_mb_single_page
widget_recent-comments
ee_mb_integration_setting
ee_mb_agent
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Extensions for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲9114.68 ▲0.122.94 ▲1.2541.06 ▲1.15
Dashboard /wp-admin2,233 ▲535.59 ▼0.0787.03 ▲0.2136.79 ▼4.60
Posts /wp-admin/edit.php2,138 ▲382.16 ▲0.1837.00 ▼5.1635.54 ▼1.86
Add New Post /wp-admin/post-new.php11,363 ▲9,83726.70 ▲3.641,248.01 ▲552.6240.86 ▼19.76
Media Library /wp-admin/upload.php1,999 ▲6028.27 ▲4.07228.50 ▲130.1552.89 ▲7.77
Field Groups /wp-admin/edit.php?post_type=acf-field-group1,2512.3736.5837.02
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools1,3764.1355.5337.23
Add New /wp-admin/post-new.php?post_type=acf-field-group2,5315.3585.8977.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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 were found after uninstall: 11 options
    • ee_mb_integration_setting
    • widget_theysaidso_widget
    • ee_mb_single_page
    • ee_mb_agent
    • db_upgraded
    • acf_version
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 91× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/extensions-for-elementor/includes/custom-fields/includes/fields/class-acf-field-page_link.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorExtensions\\Classes\\EE_MB_Custom_Field' not found in wp-content/plugins/extensions-for-elementor/classes/ee-mb-wordpress-metabox.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extensions-for-elementor/includes/custom-fields/includes/acf-utility-functions.php:106
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/extensions-for-elementor/includes/custom-fields/includes/acf-hook-functions.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/extensions-for-elementor/includes/custom-fields/includes/fields/class-acf-field-oembed.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/extensions-for-elementor/includes/custom-fields/includes/admin/views/html-location-rule.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/extensions-for-elementor/includes/custom-fields/includes/fields/class-acf-field-email.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/extensions-for-elementor/includes/custom-fields/includes/l10n.php:153
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/extensions-for-elementor/includes/custom-fields/includes/api/api-template.php:898
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_add_deprecated_filter() in wp-content/plugins/extensions-for-elementor/includes/custom-fields/includes/deprecated.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
  • Donate link: Invalid URI ("peter@idioweb.co.uk")
Please take inspiration from this readme.txt

extensions-for-elementor/extensions-for-elementor.php 92% from 13 tests

The entry point to "Extensions for Elementor" version 2.0.30 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected206,511 lines of code in 427 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript6612,17514,32076,288
PHP25914,22819,76654,706
PO File3224,78942,33550,909
CSS452,6021,30922,371
JSON10001,059
TypeScript53616854
SVG3180288
Markdown731036

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity15.45
▷ Minimum class complexity1.00
▷ Maximum class complexity245.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces64
Interfaces0
Traits0
Classes195
▷ Abstract classes63.08%
▷ Concrete classes18996.92%
▷ Final classes10.53%
Methods1,378
▷ Static methods523.77%
▷ Public methods1,20387.30%
▷ Protected methods13910.09%
▷ Private methods362.61%
Functions474
▷ Named functions46598.10%
▷ Anonymous functions91.90%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/custom-fields/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png0.08KB0.08KB0.00%
assets/img/map-pin.png1.99KB0.94KB▼ 52.88%
includes/custom-fields/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png3.68KB4.17KB0.00%
includes/custom-fields/assets/inc/select2/3/select2x2.png0.64KB0.77KB0.00%
includes/custom-fields/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png3.68KB4.17KB0.00%