Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼141.73ms] Passed 4 tests
Server-side resources used by WooCommerce Cancel Abandoned Order
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 41.33 ▲20.43 |
Dashboard /wp-admin | 3.06 ▲0.00 | 36.43 ▼5.31 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 42.50 ▼0.52 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 86.61 ▼561.98 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 32.28 ▲0.91 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Cancel Abandoned Order
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲97 | 15.86 ▲0.29 | 9.23 ▲0.01 | 45.66 ▲0.11 |
Dashboard /wp-admin | 2,973 ▲42 | 5.92 ▼0.07 | 133.99 ▼13.06 | 114.22 ▼3.39 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.72 ▼0.01 | 63.31 ▼2.22 | 94.09 ▲2.20 |
Add New Post /wp-admin/post-new.php | 1,498 ▼2 | 18.86 ▲0.04 | 358.71 ▼32.10 | 112.26 ▲3.53 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.01 | 144.98 ▲3.56 | 115.66 ▼11.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: pending, cancel, gateway, on hold, woocommerce...
woo-cancel-abandoned-order/woo-cancel-abandoned-order.php Passed 13 tests
The entry point to "WooCommerce Cancel Abandoned Order" version 2.0.0 is a PHP file that has certain tags in its header comment area
66 characters long description:
Cancel "on hold" orders after a certain number of days or by hours
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected463 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 98 | 191 | 382 |
PO File | 1 | 17 | 28 | 52 |
CSS | 1 | 1 | 0 | 14 |
JavaScript | 1 | 5 | 0 | 14 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 17 | 68.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 32.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin