Benchmarks
Plugin footprint 83% from 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.08MB] [CPU: ▼0.10ms] Passed 4 tests
Server-side resources used by Ni WooCommerce Order Delivery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.67 ▼6.57 |
Dashboard /wp-admin | 3.38 ▲0.08 | 48.35 ▲1.56 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 53.61 ▲3.51 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 103.11 ▲15.65 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.55 ▲1.10 |
Dashboard /wp-admin/admin.php?page=ni-order-delivary | 3.31 | 34.05 |
Delivery Settings /wp-admin/admin.php?page=ni-order-delivery-settings | 3.27 | 33.87 |
Order List /wp-admin/admin.php?page=ni-order-delivery-list | 3.31 | 32.01 |
Server storage [IO: ▲1.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
recovery_mode_email_last_sent |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ni WooCommerce Order Delivery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 14.44 ▲0.05 | 1.76 ▼0.23 | 42.92 ▼9.97 |
Dashboard /wp-admin | 2,233 ▲48 | 4.84 ▼0.00 | 103.71 ▲0.66 | 39.95 ▼1.14 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.01 ▼0.04 | 40.62 ▼0.86 | 34.30 ▼0.80 |
Add New Post /wp-admin/post-new.php | 1,564 ▲31 | 18.50 ▼4.75 | 606.40 ▼33.73 | 54.71 ▲1.48 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.22 ▲0.04 | 99.71 ▼2.22 | 40.30 ▼2.37 |
Dashboard /wp-admin/admin.php?page=ni-order-delivary | 728 | 1.53 | 6.45 | 32.64 |
Delivery Settings /wp-admin/admin.php?page=ni-order-delivery-settings | 962 | 2.06 | 23.58 | 25.15 |
Order List /wp-admin/admin.php?page=ni-order-delivery-list | 924 | 1.73 | 29.63 | 26.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=ni-order-delivary
- > Error in wp-content/plugins/ni-woocommerce-order-delivery/include/ni-order-delivery-dashboard.php+20
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ni-woocommerce-order-delivery/include/ni-order-delivery-dashboard.php:20
Stack trace:
#0 wp-content/plugins/ni-woocommerce-order-delivery/include/ni-order-delivery-init.php(52): Ni_Order_Delivery_Dashboard->page_init()
#1 wp-includes/class-wp-hook.php(310): Ni_Order_Delivery_Init->add_menu_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
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Order delivery date on WooCommerce checkout page.), #2 (Order delivery date on WooCommerce order edit page), #3 (Order delivery date on WooCommerce email), #4 (Dashboard Sales Analysis), #5 (List of next order delivery order), #6 (Order list with filter and export option.), #7 (Ni woocommerce order delivery settings option)
ni-woocommerce-order-delivery/ni-order-delivery.php 92% from 13 tests
The main file in "Ni WooCommerce Order Delivery" v. 1.2.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ni-woocommerce-order-delivery.php" instead of "ni-order-delivery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin7,523 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 77 | 85 | 3,834 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 7 | 140 | 84 | 980 |
JavaScript | 3 | 16 | 81 | 38 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 13.86 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 2 | 4.26% |
▷ Public methods | 47 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.17MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_454545_256x240.png | 6.91KB | 4.18KB | ▼ 39.44% |
screenshot-7.png | 24.33KB | 14.99KB | ▼ 38.39% |
screenshot-1.png | 30.91KB | 18.16KB | ▼ 41.23% |
screenshot-3.png | 15.19KB | 7.92KB | ▼ 47.88% |
css/images/ui-icons_777777_256x240.png | 3.19KB | 3.49KB | 0.00% |