Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.41MB] [CPU: ▼292.15ms] Passed 4 tests
A check of server-side resources used by Product Slider for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.99 ▲1.48 | 76.49 ▲12.54 |
Dashboard /wp-admin | 4.81 ▲1.40 | 45.10 ▲2.60 |
Posts /wp-admin/edit.php | 5.03 ▲1.40 | 59.09 ▲7.22 |
Add New Post /wp-admin/post-new.php | 8.34 ▲1.37 | 110.74 ▼1,190.95 |
Media Library /wp-admin/upload.php | 4.76 ▲1.46 | 46.44 ▲15.55 |
All Sliders /wp-admin/edit.php?post_type=sp_wps_shortcodes | 4.84 | 45.86 |
Add New /wp-admin/post-new.php?post_type=sp_wps_shortcodes | 5.01 | 58.90 |
Tools /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_tools | 4.78 | 38.48 |
Settings /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_settings | 4.78 | 38.78 |
Premium /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_premium | 4.79 | 271.31 |
Help /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_help | 4.78 | 38.84 |
Server storage [IO: ▲2.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 150 new files
Database: no new tables, 4 new options
New WordPress options |
---|
sp_woo_product_slider_options |
woo_product_slider_db_version |
sp_woo_product_slider_review_notice_dismiss |
woo_product_slider_version |
Browser metrics Passed 4 tests
Checking browser requirements for Product Slider for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,940 ▲218 | 15.91 ▲0.95 | 7.62 ▼0.71 | 2.51 ▼0.41 |
Dashboard /wp-admin | 3,039 ▲152 | 6.74 ▲0.31 | 155.98 ▼57.87 | 179.66 ▼26.31 |
Posts /wp-admin/edit.php | 2,804 ▲113 | 3.48 ▲0.06 | 73.23 ▼14.12 | 168.15 ▼6.76 |
Add New Post /wp-admin/post-new.php | 1,693 ▲55 | 19.14 ▼1.75 | 525.18 ▼1.94 | 189.45 ▲0.23 |
Media Library /wp-admin/upload.php | 1,817 ▲122 | 5.98 ▲0.29 | 161.66 ▼25.34 | 230.90 ▲4.77 |
All Sliders /wp-admin/edit.php?post_type=sp_wps_shortcodes | 1,829 | 6.31 | 106.62 | 172.53 |
Add New /wp-admin/post-new.php?post_type=sp_wps_shortcodes | 5,759 | 7.62 | 161.04 | 304.95 |
Tools /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_tools | 1,574 | 5.96 | 99.50 | 156.94 |
Settings /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_settings | 1,583 | 5.83 | 99.61 | 206.33 |
Premium /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_premium | 4,669 | 5.85 | 100.24 | 370.52 |
Help /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_help | 2,802 | 13.70 | 411.00 | 261.03 |
Uninstaller [IO: ▲2.31MB] [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 attentionThis plugin does not fully uninstall, leaving 5 options in the database
- This plugin cannot be uninstalled
- > 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)
- Incomplete uninstall procedure, leaving 150 files (2.31MB) in the plugin directory
- (new file) src/Admin/Helper/SP_WPS_WQV.php
- (new file) src/Admin/DBUpdates.php
- (new file) src/Admin/Dashboard_Notice.php
- (new file) main.php
- (new file) languages/woo-product-slider.pot
- (new file) src/Admin/Admin.php
- (new file) src/Admin/Helper/Premium_Page.php
- (new file) index.php
- (new file) src/Admin/Helper/Help_Page.php
- (new file) readme.txt
- ...
- sp_woo_product_slider_review_notice_dismiss
- recovery_mode_email_last_sent
- woo_product_slider_db_version
- woo_product_slider_version
- sp_woo_product_slider_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% 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
- 23× PHP files trigger server errors when accessed directly (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 194
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/woo-product-slider/src/Frontend/views/partials/dynamic-style.php on line 181
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/woo-product-slider/src/Admin/updates/update-2.2.0.php:8
- > 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:11
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/woo-product-slider/src/Frontend/views/partials/dynamic-style.php on line 189
- > PHP Notice
Undefined variable: preloader in wp-content/plugins/woo-product-slider/src/Frontend/views/templates/preloader.php on line 14
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/woo-product-slider/src/Frontend/views/partials/dynamic-style.php on line 176
- > PHP Notice
Undefined variable: product_name in wp-content/plugins/woo-product-slider/src/Frontend/views/templates/loop/title.php on line 11
- > PHP Notice
Undefined variable: dynamic_style in wp-content/plugins/woo-product-slider/src/Frontend/views/partials/dynamic-style.php on line 168
- > PHP Notice
Undefined variable: slider_title in wp-content/plugins/woo-product-slider/src/Frontend/views/templates/slider-title.php on line 11
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=sp_wps_shortcodes&page=wps_premium
- > Network (severe)
wp-content/plugins/woo-product-slider/src/Admin/assets/css/images/premium/filter.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (30 tag instead of maximum 10); only the first 5 tags are used in your directory listing
woo-product-slider/main.php 85% from 13 tests
"Product Slider for WooCommerce" version 2.5.2'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: It is recommended to name the main PHP file as 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
Success! There were no dangerous files found in this plugin20,062 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 1,413 | 2,412 | 6,945 |
JavaScript | 11 | 1,615 | 343 | 5,466 |
CSS | 18 | 1,078 | 2,331 | 4,875 |
SVG | 41 | 1 | 2 | 2,771 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 26.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 5.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 2 | 5.41% |
▷ Concrete classes | 35 | 94.59% |
▷ Final classes | 0 | 0.00% |
Methods | 190 | |
▷ Static methods | 43 | 22.63% |
▷ Public methods | 187 | 98.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 1.58% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 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/logo.png | 2.71KB | 1.81KB | ▼ 33.15% |