83% envo-elementor-for-woocommerce

Code Review | Envo's Elementor Templates & Widgets for WooCommerce

WordPress plugin Envo's Elementor Templates & Widgets for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: envo-elementor-fo...
  • Plugin version: 1.4.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Jul 30, 2020
  • Latest release: Oct 17, 2023
  • Number of updates: 66
  • Update frequency: every 17.8 days
  • Top authors: envothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /210,406 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼3.64ms] Passed 4 tests

A check of server-side resources used by Envo's Elementor Templates & Widgets for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1638.40 ▼2.04
Dashboard /wp-admin3.46 ▲0.1553.02 ▲2.76
Posts /wp-admin/edit.php3.57 ▲0.2152.36 ▲1.74
Add New Post /wp-admin/post-new.php6.04 ▲0.1589.55 ▼15.97
Media Library /wp-admin/upload.php3.38 ▲0.1538.78 ▲1.73

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 126 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
etww_do_activation_redirect
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Envo's Elementor Templates & Widgets for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.31 ▼0.041.66 ▼0.0940.97 ▼0.67
Dashboard /wp-admin2,200 ▲235.57 ▼0.0893.22 ▲1.3041.00 ▼4.85
Posts /wp-admin/edit.php2,111 ▲112.10 ▲0.0941.06 ▼0.0238.22 ▲0.80
Add New Post /wp-admin/post-new.php1,537 ▼023.13 ▲4.80655.35 ▼11.7652.53 ▼12.64
Media Library /wp-admin/upload.php1,414 ▲114.18 ▲0.0296.25 ▼2.8645.15 ▲3.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • etww_do_activation_redirect
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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
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
Please take a closer look at the following
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/contact-form/widgets/contact-form.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/woocommerce/widgets/woo-slider.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/envo-elementor-for-woocommerce/includes/admin/include/templates_list.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/woocommerce/widgets/woo-add-to-cart.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/woocommerce/widgets/woo-products.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/blog-grid/widgets/blog-grid.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/off-canvas/widgets/off-canvas.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/envo-elementor-for-woocommerce/index.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/envo-elementor-for-woocommerce/modules/woocommerce/widgets/woo-categories.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

envo-elementor-for-woocommerce/elementor-templates-widgets-woocommerce.php 85% from 13 tests

The principal PHP file in "Envo's Elementor Templates & Widgets for WooCommerce" v. 1.4.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("envo-elementor-for-woocommerce.php" instead of "elementor-templates-widgets-woocommerce.php")

Code Analysis Passed 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
Success! There were no dangerous files found in this plugin24,977 lines of code in 121 files:
LanguageFilesBlank linesComment linesLines of code
PHP371,93560310,971
JavaScript261,7081,3625,804
CSS31291993,583
Sass13406582,709
JSON13401,894
SVG10016

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces23
Interfaces0
Traits0
Classes33
▷ Abstract classes26.06%
▷ Concrete classes3193.94%
▷ Final classes26.45%
Methods218
▷ Static methods125.50%
▷ Public methods17881.65%
▷ Protected methods3315.14%
▷ Private methods73.21%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants13
▷ Global constants969.23%
▷ Class constants430.77%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/admin/assets/images/menu-icon.png0.40KB0.41KB0.00%