84% product-widgets-for-elementor

Code Review | Product Widgets for Elementor - Simple WooCommerce product detail pages with Elementor

WordPress plugin Product Widgets for Elementor - Simple WooCommerce product detail pages with Elementor scored84%from 54 tests.

About plugin

  • Plugin page: product-widgets-f...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 3, 2022
  • Latest release: Feb 3, 2023
  • Number of updates: 10
  • Update frequency: every 9.2 days
  • Top authors: migaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /200 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.12MB] [CPU: ▼12.75ms] Passed 4 tests

This is a short check of server-side resources used by Product Widgets for Elementor - Simple WooCommerce product detail pages with Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▼0.0241.80 ▼9.72
Dashboard /wp-admin3.31 ▲0.0149.90 ▼8.60
Posts /wp-admin/edit.php3.37 ▼0.4849.73 ▼3.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.31 ▼29.21
Media Library /wp-admin/upload.php3.24 ▲0.0136.36 ▲2.01

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Product Widgets for Elementor - Simple WooCommerce product detail pages with Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.04 ▲0.031.73 ▼0.1338.33 ▼8.50
Dashboard /wp-admin2,195 ▲215.58 ▼0.0590.81 ▲2.7247.15 ▲6.97
Posts /wp-admin/edit.php2,100 ▲31.99 ▼0.0239.04 ▲1.8238.84 ▲9.14
Add New Post /wp-admin/post-new.php1,526 ▼223.00 ▼0.22684.19 ▼11.0652.81 ▼5.21
Media Library /wp-admin/upload.php1,391 ▼124.17 ▲0.07103.10 ▼3.8941.44 ▼4.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/product-widgets-for-elementor/widget/wc_product_attributes.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/product-widgets-for-elementor/widget/wc_product_list.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/product-widgets-for-elementor/widget/wc_product_title.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/product-widgets-for-elementor/widget/wc_product_image.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/product-widgets-for-elementor/widget/wc_product_buy.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-widgets-for-elementor/miga_wc_elements.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/product-widgets-for-elementor/widget/wc_product_price.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/product-widgets-for-elementor/widget/wc_product_description.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/product-widgets-for-elementor/widget/wc_product_downloads.php:3

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: woocommerce, addons, elements, elementor, elementor widget...

product-widgets-for-elementor/miga_wc_elements.php 85% from 13 tests

"Product Widgets for Elementor - Simple WooCommerce product detail pages with Elementor" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.2")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("product-widgets-for-elementor.php" instead of "miga_wc_elements.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
Everything looks great! No dangerous files found in this plugin976 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1014921902
CSS113074

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.44
▷ Minimum class complexity3.00
▷ Maximum class complexity13.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods57
▷ Static methods00.00%
▷ Public methods3256.14%
▷ Protected methods2543.86%
▷ Private methods00.00%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin