Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.70MB] [CPU: ▼51.13ms] Passed 4 tests
A check of server-side resources used by WooCommerce Sold Out Products
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.17 | 8.43 ▼35.86 |
Dashboard /wp-admin | 2.30 ▼1.00 | 10.02 ▼37.23 |
Posts /wp-admin/edit.php | 2.30 ▼1.05 | 10.52 ▼39.09 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 9.89 ▼92.32 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 11.33 ▼24.35 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
widget_sold_out_products |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Sold Out Products
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.23 ▼1.15 | 1.72 ▼0.21 | 41.72 ▼1.82 |
Dashboard /wp-admin | 2,203 ▲21 | 5.86 ▼0.00 | 116.26 ▲9.42 | 42.24 ▼2.25 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▼0.01 | 40.12 ▼0.44 | 34.52 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,533 ▲12 | 23.20 ▼0.01 | 628.71 ▲21.23 | 53.33 ▼3.89 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▼0.08 | 98.91 ▲1.09 | 39.77 ▼2.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in WC_Widget_Sold_Out_Products is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_sold_out_products
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3 in woocommerce-sold-out-products/assets to your readme.txt
woocommerce-sold-out-products/woocommerce-sold-out-products.php Passed 13 tests
"WooCommerce Sold Out Products" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
80 characters long description:
Adds a sold out products widget and shortcode to showcase your sold out products
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin255 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 83 | 136 | 229 |
CSS | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin