Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼3.42ms] Passed 4 tests
Server-side resources used by Empty Cart Button for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 38.27 ▼2.56 |
Dashboard /wp-admin | 3.48 ▲0.13 | 49.12 ▼8.84 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 47.66 ▲6.23 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 96.66 ▼6.15 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.28 ▲3.89 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
prowc_empty_cart_button_plugin_reviewtrack |
prowc_empty_cart_button_plugin_notice_remindlater |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
prowc_empty_cart_button_activation_time |
prowc_empty_cart_button_version |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Empty Cart Button for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲22 | 14.29 ▼0.07 | 1.59 ▼0.56 | 40.51 ▼5.83 |
Dashboard /wp-admin | 2,214 ▲34 | 5.61 ▼0.06 | 86.10 ▼14.70 | 39.59 ▼1.23 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.20 ▲0.13 | 36.72 ▼4.25 | 33.55 ▼4.42 |
Add New Post /wp-admin/post-new.php | 1,554 ▲27 | 18.48 ▼4.51 | 602.89 ▼54.05 | 68.93 ▲13.16 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.28 ▲0.10 | 100.01 ▲3.27 | 44.63 ▲3.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 10 options
- widget_recent-comments
- prowc_empty_cart_button_plugin_reviewtrack
- can_compress_scripts
- prowc_empty_cart_button_plugin_notice_remindlater
- prowc_empty_cart_button_activation_time
- widget_theysaidso_widget
- widget_recent-posts
- prowc_empty_cart_button_version
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: woocommerce plugin, empty cart button for woocommerce, plugin for empty cart, empty cart button, clear cart
empty-cart-button-for-woocommerce/empty-cart-button-for-woocommerce.php Passed 13 tests
The main PHP script in "Empty Cart Button for WooCommerce" version 1.3.8 is automatically included on every request by WordPress
36 characters long description:
"Empty cart" button for WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin883 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 93 | 293 | 722 |
CSS | 2 | 1 | 9 | 110 |
JavaScript | 4 | 6 | 21 | 51 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 37 | |
▷ Static methods | 1 | 2.70% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/admin-rating-ecb.png | 0.82KB | 0.56KB | ▼ 31.62% |
includes/img/prowc_logo.png | 38.75KB | 12.41KB | ▼ 67.98% |