Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▲7.03ms] Passed 4 tests
A check of server-side resources used by Product Carousel Slider & Grid Ultimate for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 56.74 ▲13.62 |
Dashboard /wp-admin | 3.91 ▲0.56 | 58.75 ▼1.23 |
Posts /wp-admin/edit.php | 3.94 ▲0.57 | 63.18 ▲18.12 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 103.21 ▲1.63 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 47.96 ▲14.11 |
Usage & Support /wp-admin/edit.php?post_type=wcpcsu-custom-post&page=support | 3.76 | 43.45 |
Add New /wp-admin/post-new.php?post_type=wcpcsu-custom-post | 4.06 | 54.79 |
All Woocommerce Product Ultimate /wp-admin/edit.php?post_type=wcpcsu-custom-post | 3.87 | 49.05 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Product Carousel Slider & Grid Ultimate for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,242 ▲506 | 23.73 ▲9.36 | 33.57 ▲31.85 | 38.51 ▼3.78 |
Dashboard /wp-admin | 2,360 ▲180 | 9.66 ▲4.02 | 111.17 ▲19.21 | 75.23 ▲39.06 |
Posts /wp-admin/edit.php | 2,245 ▲142 | 9.31 ▲7.34 | 71.96 ▲33.42 | 35.04 ▲0.34 |
Add New Post /wp-admin/post-new.php | 6,429 ▲4,901 | 27.78 ▲4.69 | 718.19 ▲85.01 | 35.67 ▼24.17 |
Media Library /wp-admin/upload.php | 1,569 ▲172 | 11.38 ▲7.19 | 123.09 ▲24.40 | 39.31 ▼2.55 |
Usage & Support /wp-admin/edit.php?post_type=wcpcsu-custom-post&page=support | 1,299 | 9.28 | 78.82 | 123.16 |
Add New /wp-admin/post-new.php?post_type=wcpcsu-custom-post | 5,524 | 8.77 | 356.91 | 111.08 |
All Woocommerce Product Ultimate /wp-admin/edit.php?post_type=wcpcsu-custom-post | 1,298 | 9.40 | 74.33 | 52.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-product-carousel-slider-and-grid-ultimate/main.php
- > /wp-content/plugins/woo-product-carousel-slider-and-grid-ultimate/includes/template/quick-view.php
- > /wp-content/plugins/woo-product-carousel-slider-and-grid-ultimate/includes/upgrade-pro.php
- 27× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant WCPCSU_URL - assumed 'WCPCSU_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-product-carousel-slider-and-grid-ultimate/includes/upgrade-pro.php on line 54
- > PHP Notice
Undefined variable: layout in wp-content/plugins/woo-product-carousel-slider-and-grid-ultimate/includes/template/theme/theme_2.php on line 1
- > PHP Warning
Use of undefined constant WCPCSU_URL - assumed 'WCPCSU_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-product-carousel-slider-and-grid-ultimate/includes/upgrade-pro.php on line 58
- > PHP Warning
Use of undefined constant WCPCSU_URL - assumed 'WCPCSU_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-product-carousel-slider-and-grid-ultimate/includes/upgrade-pro.php on line 62
- > PHP Warning
Use of undefined constant WCPCSU_URL - assumed 'WCPCSU_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-product-carousel-slider-and-grid-ultimate/includes/upgrade-pro.php on line 46
- > PHP Warning
Use of undefined constant WCPCSU_URL - assumed 'WCPCSU_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-product-carousel-slider-and-grid-ultimate/includes/upgrade-pro.php on line 59
- > PHP Warning
Use of undefined constant WCPCSU_URL - assumed 'WCPCSU_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-product-carousel-slider-and-grid-ultimate/includes/upgrade-pro.php on line 57
- > PHP Notice
Undefined variable: layout in wp-content/plugins/woo-product-carousel-slider-and-grid-ultimate/includes/template/pagination.php on line 2
- > PHP Warning
Use of undefined constant WCPCSU_URL - assumed 'WCPCSU_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-product-carousel-slider-and-grid-ultimate/includes/upgrade-pro.php on line 48
- > PHP Warning
Use of undefined constant WCPCSU_URL - assumed 'WCPCSU_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-product-carousel-slider-and-grid-ultimate/includes/upgrade-pro.php on line 39
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
woo-product-carousel-slider-and-grid-ultimate/main.php 85% from 13 tests
The main file in "Product Carousel Slider & Grid Ultimate for WooCommerce" v. 1.9.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "3.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-product-carousel-slider-and-grid-ultimate.php" instead of "main.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected11,699 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 741 | 864 | 6,887 |
CSS | 7 | 384 | 101 | 2,664 |
Sass | 14 | 102 | 5 | 964 |
JavaScript | 5 | 80 | 91 | 828 |
XML | 6 | 0 | 0 | 176 |
JSON | 1 | 0 | 0 | 162 |
SVG | 18 | 0 | 0 | 18 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 183)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 52.10 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 183.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 134 | |
▷ Static methods | 4 | 2.99% |
▷ Public methods | 98 | 73.13% |
▷ Protected methods | 7 | 5.22% |
▷ Private methods | 29 | 21.64% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 9 | |
▷ Global constants | 8 | 88.89% |
▷ Class constants | 1 | 11.11% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/star-support.png | 4.82KB | 2.63KB | ▼ 45.37% |