Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.66ms] Passed 4 tests
Server-side resources used by DWP Courier & Delivery Management
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.06 ▼6.30 |
Dashboard /wp-admin | 3.44 ▲0.13 | 46.53 ▼3.82 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 44.94 ▼3.73 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 80.66 ▼0.45 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.05 ▼0.80 |
Delivery List /wp-admin/admin.php?page=dwp-delivery-list | 3.31 | 30.95 |
Submit Delivery Request /wp-admin/admin.php?page=dwp-submit-delivery-request | 3.31 | 30.12 |
Merchant List /wp-admin/admin.php?page=dwp-merchant-list | 3.31 | 27.52 |
Dashboard /wp-admin/admin.php?page=dwp-courier-management | 3.36 | 29.73 |
Merchant Registration /wp-admin/admin.php?page=dwp-merchant-registration | 3.38 | 34.04 |
Server storage [IO: ▲3.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 1,454 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_dwp_delivery_request_submit |
wp_dwp_merchant_registration |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for DWP Courier & Delivery Management
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲146 | 13.84 ▼0.76 | 8.09 ▲6.28 | 56.64 ▲12.58 |
Dashboard /wp-admin | 2,230 ▲50 | 5.54 ▼0.13 | 86.18 ▼12.94 | 38.04 ▼7.25 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.94 ▼0.09 | 33.87 ▼0.68 | 33.97 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.47 ▲0.30 | 655.36 ▼8.53 | 61.43 ▲8.82 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.26 ▲0.05 | 103.55 ▼8.42 | 48.88 ▲0.10 |
Delivery List /wp-admin/admin.php?page=dwp-delivery-list | 1,043 | 2.56 | 50.83 | 58.14 |
Submit Delivery Request /wp-admin/admin.php?page=dwp-submit-delivery-request | 1,110 | 2.26 | 31.92 | 42.48 |
Merchant List /wp-admin/admin.php?page=dwp-merchant-list | 1,073 | 2.61 | 43.67 | 25.06 |
Dashboard /wp-admin/admin.php?page=dwp-courier-management | 971 | 2.22 | 26.33 | 44.40 |
Merchant Registration /wp-admin/admin.php?page=dwp-merchant-registration | 1,270 | 3.63 | 42.29 | 59.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_dwp_delivery_request_submit
- wp_dwp_merchant_registration
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dwp-merchant-list
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dwp-merchant-list
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
SRP 0% from 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
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dwp-courier-delivery-management/admin/partials/dwp-courier-management-admin-display.php
- > /wp-content/plugins/dwp-courier-delivery-management/public/partials/dwp-courier-management-public-display.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dwp-courier-delivery-management/admin/partials/tmpl-delivery-list.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/dwp-courier-delivery-management/admin/partials/tmpl-merchant-registration.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dwp-courier-delivery-management/admin/partials/tmpl-admin-dashboard.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dwp-courier-delivery-management/admin/partials/tmpl-merchant-list.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dwp-courier-delivery-management/admin/partials/tmpl-submit-delivery-request.php:6
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 18 tag instead of maximum 10
dwp-courier-delivery-management/dwp-courier-management.php 92% from 13 tests
The principal PHP file in "DWP Courier & Delivery Management" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("dwp-courier-delivery-management.php" instead of "dwp-courier-management.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin17,476 lines of code in 1,439 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 1 | 5 | 0 | 5,666 |
SVG | 1,407 | 0 | 0 | 4,810 |
Sass | 1 | 4 | 0 | 2,835 |
CSS | 6 | 13 | 14 | 1,478 |
JSON | 1 | 0 | 0 | 1,408 |
PHP | 17 | 298 | 586 | 1,007 |
JavaScript | 6 | 66 | 54 | 272 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.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 | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.10MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/images/placeholder.png | 100.24KB | 73.05KB | ▼ 27.12% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |