Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.64MB] [CPU: ▲7.52ms] Passed 4 tests
An overview of server-side resources used by Product Slider for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.12 ▲1.65 | 52.46 ▲8.13 |
Dashboard /wp-admin | 4.95 ▲1.64 | 58.97 ▲7.10 |
Posts /wp-admin/edit.php | 5.00 ▲1.64 | 66.57 ▲18.96 |
Add New Post /wp-admin/post-new.php | 7.56 ▲1.67 | 94.85 ▼4.12 |
Media Library /wp-admin/upload.php | 4.87 ▲1.64 | 55.55 ▲19.44 |
Help /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_help | 4.88 | 50.06 |
All Sliders /wp-admin/edit.php?post_type=sp_wps_shortcodes | 4.95 | 70.27 |
Tools /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_tools | 4.89 | 52.47 |
Add New /wp-admin/post-new.php?post_type=sp_wps_shortcodes | 5.02 | 77.64 |
Settings /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_settings | 4.88 | 63.40 |
Server storage [IO: ▲2.66MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 165 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
woo_product_slider_db_version |
sp_woo_product_slider_review_notice_dismiss |
woo_product_slider_version |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
sp_woo_product_slider_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Product Slider for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲165 | 14.26 ▼0.11 | 1.93 ▲0.23 | 33.05 ▼10.51 |
Dashboard /wp-admin | 2,305 ▲128 | 5.60 ▲0.00 | 94.42 ▼5.63 | 41.92 ▼0.57 |
Posts /wp-admin/edit.php | 2,212 ▲112 | 2.03 ▲0.06 | 40.53 ▲4.35 | 38.43 ▲3.93 |
Add New Post /wp-admin/post-new.php | 6,253 ▲4,727 | 19.45 ▼4.30 | 943.41 ▲240.91 | 40.27 ▼15.18 |
Media Library /wp-admin/upload.php | 1,510 ▲110 | 4.23 ▼0.09 | 99.33 ▼1.39 | 45.17 ▲0.44 |
Help /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_help | 2,130 | 11.52 | 306.26 | 90.85 |
All Sliders /wp-admin/edit.php?post_type=sp_wps_shortcodes | 1,524 | 4.13 | 59.09 | 78.75 |
Tools /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_tools | 1,362 | 4.06 | 58.05 | 86.63 |
Add New /wp-admin/post-new.php?post_type=sp_wps_shortcodes | 5,670 | 5.36 | 112.43 | 156.77 |
Settings /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_settings | 1,421 | 3.92 | 56.73 | 75.76 |
Uninstaller [IO: ▲2.66MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attentionThe uninstall procedure has failed, leaving 11 options in the database
- Uninstall procedure validation failed for this plugin
- > Compile error in wp-content/plugins/woo-product-slider/main.php+46
Cannot redeclare is_woo_product_slider_pro() (previously declared in wp-content/plugins/woo-product-slider/main.php:47)
- This plugin has failed uninstalling correctly, leaving 165 files (2.66MB) in the plugin directory
- (new file) src/Admin/Dashboard_Notice.php
- (new file) src/Admin/DBUpdates.php
- (new file) readme.txt
- (new file) src/Admin/Elementor_Addons.php
- (new file) main.php
- (new file) languages/woo-product-slider.pot
- (new file) src/Admin/Admin.php
- (new file) index.php
- (new file) src/Admin/ElementorAddons/Shortcode_Widget.php
- (new file) src/Admin/GutenbergBlock/Gutenberg_Init.php
- ...
- woo_product_slider_db_version
- recovery_mode_email_last_sent
- widget_recent-posts
- can_compress_scripts
- sp_woo_product_slider_options
- woo_product_slider_version
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- sp_woo_product_slider_review_notice_dismiss
- ...
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 38× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/woo-product-slider/src/Frontend/views/partials/dynamic-style.php on line 191
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/woo-product-slider/src/Frontend/views/templates/carousel.php:12
- > PHP Fatal error
Uncaught Error: Call to a member function get_price_html() on null in wp-content/plugins/woo-product-slider/src/Frontend/views/templates/loop/price.php:11
- > PHP Notice
Undefined variable: shortcode_query in wp-content/plugins/woo-product-slider/src/Frontend/views/templates/pagination.php on line 12
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/woo-product-slider/src/Frontend/views/partials/dynamic-style.php on line 213
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/woo-product-slider/src/Frontend/views/partials/dynamic-style.php on line 203
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woo-product-slider/src/Frontend/views/templates/loop/thumbnail.php:12
- > PHP Notice
Undefined variable: number_of_total_products in wp-content/plugins/woo-product-slider/src/Frontend/views/templates/pagination.php on line 13
- > PHP Notice
Undefined variable: add_to_cart_button in wp-content/plugins/woo-product-slider/src/Frontend/views/templates/loop/add_to_cart.php on line 11
- > PHP Notice
Undefined variable: product in wp-content/plugins/woo-product-slider/src/Frontend/views/templates/loop/price.php on line 11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 35 tag instead of maximum 10
woo-product-slider/main.php 85% from 13 tests
"Product Slider for WooCommerce" version 2.6.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 176 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-product-slider.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin19,189 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 78 | 1,552 | 2,927 | 7,648 |
CSS | 15 | 958 | 454 | 5,536 |
JavaScript | 11 | 740 | 286 | 3,179 |
SVG | 34 | 0 | 2 | 2,821 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 24.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 5.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 48 | 21.52% |
▷ Public methods | 218 | 97.76% |
▷ Protected methods | 2 | 0.90% |
▷ Private methods | 3 | 1.35% |
Functions | 26 | |
▷ Named functions | 23 | 88.46% |
▷ Anonymous functions | 3 | 11.54% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 compressed PNG files occupy 0.20MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/Admin/views/models/assets/images/checkerboard.png | 2.02KB | 2.54KB | 0.00% |
src/Admin/views/models/assets/images/theme/theme_two.png | 52.60KB | 53.37KB | 0.00% |
src/Admin/views/models/assets/images/theme/theme_three.png | 49.28KB | 49.35KB | 0.00% |
src/Admin/views/models/assets/images/theme/theme_one.png | 93.86KB | 95.45KB | 0.00% |
src/Admin/views/models/assets/images/logo.png | 2.71KB | 1.81KB | ▼ 33.15% |