Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼138.20ms] 75% from 4 tests
An overview of server-side resources used by Custom Order Status Per Product WooCommerce
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 5,567.07ms on /wp-admin/admin.php?page=ocwcp_kit)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.24 | 34.46 ▲12.60 |
Dashboard /wp-admin | 3.18 ▲0.13 | 43.31 ▲3.18 |
Posts /wp-admin/edit.php | 3.30 ▲0.18 | 47.61 ▲4.17 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.10 | 89.99 ▼565.09 |
Media Library /wp-admin/upload.php | 3.13 ▲0.12 | 37.27 ▲4.96 |
Essential Kit /wp-admin/admin.php?page=ocwcp_kit | 3.31 | 5,567.07 |
WC Custom Order Status /wp-admin/admin.php?page=wc-custom-order-status | 3.10 | 31.64 |
Server storage [IO: ▲0.11MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Custom Order Status Per Product WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,751 ▲145 | 16.33 ▲0.34 | 8.54 ▼1.83 | 45.93 ▲3.30 |
Dashboard /wp-admin | 3,037 ▲106 | 6.66 ▲0.69 | 137.19 ▼4.72 | 111.14 ▼6.09 |
Posts /wp-admin/edit.php | 2,812 ▲73 | 2.70 ▼0.01 | 65.10 ▼2.66 | 103.63 ▲12.05 |
Add New Post /wp-admin/post-new.php | 1,733 ▲61 | 18.88 ▼0.02 | 365.90 ▼13.01 | 124.53 ▲21.82 |
Media Library /wp-admin/upload.php | 1,880 ▲73 | 5.47 ▲0.42 | 127.67 ▼22.20 | 122.01 ▲1.07 |
Essential Kit /wp-admin/admin.php?page=ocwcp_kit | 2,506 | 2.66 | 58.46 | 108.77 |
WC Custom Order Status /wp-admin/admin.php?page=wc-custom-order-status | 1,751 | 2.90 | 76.87 | 115.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 50% from 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wc-custom-order-status-per-product/wc-custom-order-status-per-product.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=wc-custom-order-status
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- > GET request to /wp-admin/admin.php?page=wc-custom-order-status
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- > GET request to /wp-admin/admin.php?page=wc-custom-order-status
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
- > GET request to /wp-admin/admin.php?page=wc-custom-order-status
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.clearAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in wc-custom-order-status-per-product/assets to your readme.txt
- Contributors: Plugin contributors field is missing
wc-custom-order-status-per-product/wc-custom-order-status-per-product.php Passed 13 tests
"Custom Order Status Per Product WooCommerce" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
This plugin allows to create custom order status and more...
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 detected863 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 130 | 13 | 689 |
CSS | 2 | 12 | 2 | 167 |
JavaScript | 2 | 2 | 10 | 6 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 18.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 3 | 9.38% |
▷ Public methods | 32 | 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 | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/review.png | 15.87KB | 11.90KB | ▼ 25.01% |
images/star.png | 39.75KB | 10.35KB | ▼ 73.95% |
images/support.png | 6.44KB | 5.59KB | ▼ 13.09% |