Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.63MB] [CPU: ▲2.89ms] Passed 4 tests
Analyzing server-side resources used by Widgets for WooCommerce Products on Elementor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 43.41 ▲5.05 |
Dashboard /wp-admin | 3.96 ▲0.65 | 47.82 ▼2.31 |
Posts /wp-admin/edit.php | 4.01 ▲0.65 | 51.78 ▲7.73 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.59 | 98.35 ▲4.90 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 40.55 ▲3.92 |
Freemius Debug [v.2.5.11] /wp-admin/admin.php?page=freemius | 4.20 | 35.79 |
Install Plugins /wp-admin/plugins.php?page=woo-elementor-product-widgets-install-plugins | 4.08 | 41.46 |
Server storage [IO: ▲4.59MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 316 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
fs_accounts |
fs_debug_mode |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Widgets for WooCommerce Products on Elementor: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲118 | 13.18 ▼1.19 | 1.58 ▼0.07 | 31.26 ▼17.91 |
Dashboard /wp-admin | 2,259 ▲71 | 4.88 ▲0.01 | 111.28 ▲6.80 | 47.65 ▲8.51 |
Posts /wp-admin/edit.php | 2,153 ▲64 | 2.05 ▲0.05 | 43.08 ▲6.87 | 43.06 ▲7.29 |
Add New Post /wp-admin/post-new.php | 1,550 ▲30 | 17.64 ▼5.34 | 661.00 ▲10.82 | 56.59 ▼3.40 |
Media Library /wp-admin/upload.php | 1,449 ▲61 | 4.23 ▲0.04 | 95.12 ▼15.86 | 45.59 ▼1.63 |
Freemius Debug [v.2.5.11] /wp-admin/admin.php?page=freemius | 1,080 | 1.72 | 24.95 | 26.69 |
Install Plugins /wp-admin/plugins.php?page=woo-elementor-product-widgets-install-plugins | 1,434 | 1.76 | 27.35 | 33.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/woo-products-widgets-for-elementor/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- fs_debug_mode
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- fs_active_plugins
- widget_theysaidso_widget
- fs_accounts
- widget_recent-posts
- widget_recent-comments
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-products-widgets-for-elementor/templates/woo-products-widgets-categories/global/loop-end.php
- > /wp-content/plugins/woo-products-widgets-for-elementor/templates/woo-products-widgets-products/global/loop-end.php
- > /wp-content/plugins/woo-products-widgets-for-elementor/templates/woo-products-widgets-products-list/global/loop-end.php
- 43× 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/woo-products-widgets-for-elementor/templates/woo-products-widgets-products/global/item-thumb.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-products-widgets-for-elementor/templates/woo-products-widgets-products/global/presets/preset-2.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-products-widgets-for-elementor/templates/woo-products-widgets-products-list/global/item-thumb.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-products-widgets-for-elementor/templates/woo-products-widgets-products/global/presets/preset-4.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-products-widgets-for-elementor/templates/woo-products-widgets-products-list/global/loop-start.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function woo_product_widgets_elementor_template_functions() in wp-content/plugins/woo-products-widgets-for-elementor/templates/woo-products-widgets-products-list/global/item-price.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-products-widgets-for-elementor/templates/woo-products-widgets-products/global/item-button.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function woo_product_widgets_elementor_template_functions() in wp-content/plugins/woo-products-widgets-for-elementor/templates/woo-products-widgets-products/global/item-rating.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-products-widgets-for-elementor/templates/woo-products-widgets-products/global/presets/preset-5.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function woo_product_widgets_elementor_template_functions() in wp-content/plugins/woo-products-widgets-for-elementor/templates/woo-products-widgets-products/global/item-tags.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: theme builder, elementor widget, product grid, elementor, elementor addon...
woo-products-widgets-for-elementor/woo-product-widgets-for-elementor.php 85% from 13 tests
"Widgets for WooCommerce Products on Elementor" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-products-widgets-for-elementor.php" instead of "woo-product-widgets-for-elementor.php")
- 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
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected54,127 lines of code in 260 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 203 | 10,483 | 21,111 | 45,605 |
Sass | 27 | 313 | 3 | 3,011 |
CSS | 18 | 155 | 10 | 3,009 |
JavaScript | 10 | 396 | 213 | 2,272 |
Markdown | 1 | 68 | 0 | 214 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,087)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 59.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,087.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 90 | |
▷ Abstract classes | 5 | 5.56% |
▷ Concrete classes | 85 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 1,657 | |
▷ Static methods | 214 | 12.91% |
▷ Public methods | 1,190 | 71.82% |
▷ Protected methods | 89 | 5.37% |
▷ Private methods | 378 | 22.81% |
Functions | 110 | |
▷ Named functions | 109 | 99.09% |
▷ Anonymous functions | 1 | 0.91% |
Constants | 148 | |
▷ Global constants | 98 | 66.22% |
▷ Class constants | 50 | 33.78% |
▷ Public constants | 50 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.56MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 129.17KB | 40.70KB | ▼ 68.49% |
assets/images/banner.png | 27.05KB | 11.25KB | ▼ 58.43% |
screenshot-1.png | 49.55KB | 21.68KB | ▼ 56.24% |
screenshot-2.png | 66.46KB | 27.77KB | ▼ 58.22% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |