Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲2.48MB] [CPU: ▲12.46ms] Passed 4 tests
This is a short check of server-side resources used by Product Widget Slider for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.06 ▲2.60 | 59.45 ▲22.13 |
Dashboard /wp-admin | 5.87 ▲2.57 | 57.29 ▲11.84 |
Posts /wp-admin/edit.php | 5.99 ▲2.63 | 59.87 ▲14.05 |
Add New Post /wp-admin/post-new.php | 8.06 ▲2.17 | 92.37 ▲9.00 |
Media Library /wp-admin/upload.php | 5.80 ▲2.57 | 50.41 ▲14.96 |
Widget Product Slider /wp-admin/admin.php?page=wc-product-slider | 5.84 | 58.95 |
Server storage [IO: ▲3.10MB] [DB: ▲0.06MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 202 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_wc_product_slider_carousel |
widget_recent-comments |
widget_widget_product_cycle |
widget_recent-posts |
widget_theysaidso_widget |
woo_gallery_widget_lite_version |
can_compress_scripts |
wc_product_slider_global_settings |
db_upgraded |
wc_product_slider_widget_skin_settings |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Widget Slider for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲46 | 14.32 ▼0.02 | 2.08 ▲0.61 | 40.36 ▲2.81 |
Dashboard /wp-admin | 2,199 ▲22 | 5.57 ▼0.11 | 90.73 ▼0.99 | 42.84 ▲0.06 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.07 | 40.07 ▼11.32 | 36.95 ▲0.60 |
Add New Post /wp-admin/post-new.php | 2,059 ▲533 | 23.34 ▲0.38 | 678.74 ▲23.09 | 61.27 ▲2.09 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.27 ▲0.13 | 98.87 ▼2.03 | 42.69 ▼2.59 |
Widget Product Slider /wp-admin/admin.php?page=wc-product-slider | 1,623 | 3.78 | 81.30 | 96.26 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 13 options in the database
- theysaidso_admin_options
- wc_product_slider_global_settings
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- wc_widget_product_slider_lite_style_version
- widget_recent-posts
- wc_product_slider_widget_skin_settings
- widget_widget_product_cycle
- ...
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: slider_pager_position in wp-content/plugins/woo-widget-product-slideshow/includes/wc_product_slider_widget.php on line 75
- > PHP Notice
Undefined index: WC_PRODUCT_SLIDER_PREFIXadmin_interface in wp-content/plugins/woo-widget-product-slideshow/includes/wc_product_slider_widget.php on line 100
- > PHP Notice
Undefined variable: enable_slider_control in wp-content/plugins/woo-widget-product-slideshow/includes/wc_product_slider_widget.php on line 21
- > PHP Notice
Undefined variable: control_next_icon_margin_right in wp-content/plugins/woo-widget-product-slideshow/includes/wc_product_slider_widget.php on line 49
- > PHP Notice
Undefined variable: is_slider_tall_dynamic in wp-content/plugins/woo-widget-product-slideshow/includes/wc_product_slider_widget.php on line 11
- > PHP Notice
Undefined variable: slider_pager_position in wp-content/plugins/woo-widget-product-slideshow/includes/wc_product_slider_widget.php on line 85
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/woo-widget-product-slideshow/includes/wc_product_slider_widget.php on line 6
- > PHP Notice
Undefined variable: enable_slider_pager in wp-content/plugins/woo-widget-product-slideshow/includes/wc_product_slider_widget.php on line 54
- > PHP Notice
Undefined variable: slider_control_icons_color in wp-content/plugins/woo-widget-product-slideshow/includes/wc_product_slider_widget.php on line 38
- > PHP Warning
Use of undefined constant WC_PRODUCT_SLIDER_PREFIX - assumed 'WC_PRODUCT_SLIDER_PREFIX' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-widget-product-slideshow/includes/wc_product_slider_widget.php on line 100
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
6 plugin tags: woocommerce widgets, woocommerce, woothemes, woocommerce product images, wordpress ecommerce...
woo-widget-product-slideshow/product-image-gallery-widget.php 85% from 13 tests
Analyzing the main PHP file in "Product Widget Slider for WooCommerce" version 2.2.2
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 192 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("woo-widget-product-slideshow.php" instead of "product-image-gallery-widget.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin55,671 lines of code in 142 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 23,803 |
JavaScript | 50 | 2,520 | 1,936 | 15,003 |
PHP | 48 | 2,730 | 2,511 | 11,470 |
CSS | 22 | 300 | 152 | 3,635 |
LESS | 6 | 85 | 27 | 998 |
PO File | 1 | 285 | 463 | 653 |
SVG | 6 | 4 | 0 | 59 |
HTML | 1 | 2 | 0 | 29 |
Sass | 3 | 2 | 1 | 21 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 410)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 48.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 801.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 410.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 42 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 458 | |
▷ Static methods | 30 | 6.55% |
▷ Public methods | 289 | 63.10% |
▷ Protected methods | 141 | 30.79% |
▷ Private methods | 28 | 6.11% |
Functions | 21 | |
▷ Named functions | 18 | 85.71% |
▷ Anonymous functions | 3 | 14.29% |
Constants | 22 | |
▷ Global constants | 17 | 77.27% |
▷ Class constants | 5 | 22.73% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
29 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/slider-handle2.png | 2.50KB | 1.65KB | ▼ 33.85% |
admin/assets/images/ico-refresh.png | 1.77KB | 0.53KB | ▼ 70.24% |
admin/includes/uploader/delete.png | 0.13KB | 0.13KB | 0.00% |
admin/assets/images/slider-handle-disable.png | 2.64KB | 1.81KB | ▼ 31.61% |
admin/assets/images/slider-handle.png | 2.67KB | 1.71KB | ▼ 36.00% |