Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼4.00ms] Passed 4 tests
A check of server-side resources used by Ni WooCommerce Custom Order Status
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 38.24 ▼6.19 |
Dashboard /wp-admin | 3.45 ▲0.14 | 46.69 ▼5.68 |
Posts /wp-admin/edit.php | 3.57 ▲0.20 | 49.04 ▲1.63 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 94.03 ▲0.93 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 35.03 ▼5.04 |
Order Status /wp-admin/edit.php?post_type=ni-order-status | 3.42 | 38.96 |
Dashboard /wp-admin/admin.php?page=ni-custom-order-status-report | 3.76 | 33.54 |
Other Plugins /wp-admin/admin.php?page=niwoocos-other-plugins | 3.37 | 32.77 |
Order Status Report /wp-admin/admin.php?page=niwoocos-order-status-report | 3.46 | 31.93 |
Server storage [IO: ▲2.66MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Ni WooCommerce Custom Order Status
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲65 | 14.25 ▼0.10 | 1.67 ▼0.22 | 36.08 ▼7.26 |
Dashboard /wp-admin | 2,229 ▲58 | 5.53 ▼0.15 | 92.87 ▲0.99 | 62.01 ▲22.30 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 1.99 ▲0.05 | 39.07 ▼3.74 | 35.01 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 23.13 ▼0.26 | 755.63 ▲62.67 | 57.82 ▼4.23 |
Media Library /wp-admin/upload.php | 1,434 ▲31 | 4.14 ▼0.04 | 98.10 ▼10.88 | 72.17 ▲26.17 |
Order Status /wp-admin/edit.php?post_type=ni-order-status | 1,147 | 2.46 | 48.25 | 30.44 |
Dashboard /wp-admin/admin.php?page=ni-custom-order-status-report | 1,451 | 1.42 | 11.24 | 99.55 |
Other Plugins /wp-admin/admin.php?page=niwoocos-other-plugins | 1,142 | 1.90 | 30.70 | 36.73 |
Order Status Report /wp-admin/admin.php?page=niwoocos-order-status-report | 732 | 1.45 | 9.16 | 23.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=ni-custom-order-status-report
- > Error in wp-content/plugins/ni-woocommerce-custom-order-status/include/ni-custom-order-status-report.php+281
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ni-woocommerce-custom-order-status/include/ni-custom-order-status-report.php:281
Stack trace:
#0 wp-content/plugins/ni-woocommerce-custom-order-status/include/ni-custom-order-status-init.php(131): ni_custom_order_status_report->page_init()
#1 wp-includes/class-wp-hook.php(310): ni_custom_order_status_init->add_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > GET request to /wp-admin/admin.php?page=niwoocos-order-status-report
- > Error in wp-content/plugins/ni-woocommerce-custom-order-status/include/ni-order-status-report.php+131
Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/ni-woocommerce-custom-order-status/include/ni-order-status-report.php:131
Stack trace:
#0 wp-content/plugins/ni-woocommerce-custom-order-status/include/ni-order-status-report.php(9): Ni_Order_Status_Report->get_order_status()
#1 wp-content/plugins/ni-woocommerce-custom-order-status/include/ni-custom-order-status-init.php(143): Ni_Order_Status_Report->page_init()
#2 wp-includes/class-wp-hook.php(310): ni_custom_order_status_init->add_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Order Status List.), #2 (Add New Order Status.), #3 (Sales Analysis Dashboard (Today sales, this month sales, this year sales count and total)), #4 (Recent order list), #5 (Order status sales report), #6 (Payment gateway sales report pie chart), #7 (Bulk order status update), #8 (Order Status Report), #9 (Order status email setting)
- Tags: You are using too many tags: 11 tag instead of maximum 10
ni-woocommerce-custom-order-status/ni-woocommerce-custom-order-status.php 69% from 13 tests
The primary PHP file in "Ni WooCommerce Custom Order Status" version 2.2.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)
- Domain Path: Prefix the domain path with a forward slash character ("/languages/")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")
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 detected9,005 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 85 | 100 | 3,811 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 9 | 504 | 128 | 2,471 |
JavaScript | 4 | 24 | 19 | 52 |
PHP code Passed 2 tests
Analyzing 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.25 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 79 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.42MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-7.png | 31.41KB | 19.77KB | ▼ 37.04% |
screenshot-5.png | 51.04KB | 14.44KB | ▼ 71.71% |
screenshot-1.png | 55.41KB | 17.40KB | ▼ 68.59% |
screenshot-2.png | 59.30KB | 18.37KB | ▼ 69.03% |
screenshot-6.png | 45.36KB | 13.65KB | ▼ 69.92% |