Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.34MB] [CPU: ▼3.96ms] Passed 4 tests
An overview of server-side resources used by Delhivery Logistics Courier
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 38.86 ▼6.36 |
Dashboard /wp-admin | 3.64 ▲0.34 | 49.63 ▼2.25 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 51.24 ▲5.71 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 100.58 ▼8.72 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 37.68 ▲1.49 |
Server storage [IO: ▲2.01MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 75 new files
Database: 5 new tables, 6 new options
New tables |
---|
wp_dv_logs |
wp_dv_assign_awb |
wp_dv_settings |
wp_dv_my_warehouse |
wp_dv_awb_no_details |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Delhivery Logistics Courier
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 13.28 ▼1.10 | 1.79 ▲0.04 | 39.09 ▼4.85 |
Dashboard /wp-admin | 2,216 ▲28 | 5.95 ▲1.06 | 105.76 ▼1.44 | 42.69 ▲0.69 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.09 ▲0.07 | 40.41 ▼0.70 | 35.14 ▼2.34 |
Add New Post /wp-admin/post-new.php | 1,529 ▼3 | 22.24 ▲4.04 | 674.55 ▲72.87 | 60.39 ▲1.76 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.32 ▲0.09 | 100.52 ▲0.89 | 43.19 ▼0.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 5 tables in the database
- wp_dv_settings
- wp_dv_awb_no_details
- wp_dv_assign_awb
- wp_dv_my_warehouse
- wp_dv_logs
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/delhivery-logistics-courier/admin/config.php
- > /wp-content/plugins/delhivery-logistics-courier/delhivery-logistics-courier.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/delhivery-logistics-courier/admin/create_pickup_request.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/delhivery-logistics-courier/admin/invoice.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/delhivery-logistics-courier/admin/edit_order.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/delhivery-logistics-courier/admin/refresh_token.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/delhivery-logistics-courier/admin/awb_no_detail.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/delhivery-logistics-courier/admin/home.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/delhivery-logistics-courier/admin/track_order.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/delhivery-logistics-courier/admin/refresh_token.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/delhivery-logistics-courier/admin/wallet.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/delhivery-logistics-courier/admin/refresh_token.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Donate link: Invalid URI ("www.delhivery.com")
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Login.png), #2 (RateCalculator.png), #3 (WaybillList.png), #4 (AddWarehouse.png), #5 (WarehousesList.png), #6 (OrdersList.png), #7 (CreatePickupRequest.png), #8 (FAQ.png)
delhivery-logistics-courier/delhivery-logistics-courier.php 77% from 13 tests
The principal PHP file in "Delhivery Logistics Courier" v. 1.0.107 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: The plugin description must be longer than 10 characters (currently 9 characters long)
- Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "4.8")
- Domain Path: The domain path folder was not found ("/languages")
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
There were no executable files found in this plugin16,278 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 2,321 | 233 | 7,522 |
PHP | 17 | 665 | 285 | 7,090 |
JavaScript | 6 | 193 | 79 | 1,644 |
SVG | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 163.00 |
▷ Minimum class complexity | 163.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 7.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
11 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/warehouse.png | 9.86KB | 3.39KB | ▼ 65.62% |
images/delivery_icon.png | 0.53KB | 0.13KB | ▼ 74.73% |
images/checked.png | 0.61KB | 0.48KB | ▼ 20.13% |
images/Logo_Black.png | 5.79KB | 3.11KB | ▼ 46.24% |
images/shape.png | 1.04KB | 0.86KB | ▼ 17.79% |