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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼175.73ms] Passed 4 tests
Server-side resources used by Via.Delivery: Shipping service for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 33.00 ▲5.47 |
Dashboard /wp-admin | 3.06 ▼0.00 | 37.77 ▼6.37 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 39.72 ▲2.23 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 76.53 ▼701.22 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 28.18 ▲2.45 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Via.Delivery: Shipping service for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 15.99 ▲0.35 | 10.34 ▲5.52 | 74.90 ▼2.03 |
Dashboard /wp-admin | 2,929 ▲36 | 6.09 ▼0.11 | 114.97 ▼15.62 | 165.41 ▼12.78 |
Posts /wp-admin/edit.php | 2,740 ▼0 | 3.23 ▲0.01 | 65.30 ▲0.27 | 140.65 ▼0.70 |
Add New Post /wp-admin/post-new.php | 3,807 ▲46 | 18.81 ▼0.04 | 424.33 ▼19.75 | 160.08 ▼3.03 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.52 ▲0.01 | 133.90 ▼10.98 | 185.19 ▼5.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Please take a closer look at the following
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/via-delivery/views/backend/settings/tab-main.php
- > /wp-content/plugins/via-delivery/views/backend/dashboard/dash-payment.php
- > /wp-content/plugins/via-delivery/views/backend/dashboard/dash-shipments-per-day.php
- > /wp-content/plugins/via-delivery/views/backend/dashboard/dash-cities.php
- > /wp-content/plugins/via-delivery/views/backend/dashboard/dash-status.php
- 32× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Ipol\\Woo\\ViaDelivery\\Api\\Provider\\ProviderInterface' not found in wp-content/plugins/via-delivery/includes/api/provider/base.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/via-delivery/views/backend/order/form.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/via-delivery/views/backend/dashboard/index.php:4
- > PHP Notice
Undefined variable: locale in wp-content/plugins/via-delivery/views/backend/dashboard/dash-status.php on line 40
- > PHP Fatal error
Uncaught Error: Interface 'Ipol\\Woo\\ViaDelivery\\Api\\Service\\ServiceInterface' not found in wp-content/plugins/via-delivery/includes/api/service/geocode.php:7
- > PHP Notice
Undefined variable: settings in wp-content/plugins/via-delivery/views/backend/dashboard/dash-shipments-per-day.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/via-delivery/views/backend/dashboard/auth.php:1
- > PHP Fatal error
Uncaught Error: Interface 'Ipol\\Woo\\ViaDelivery\\Api\\Service\\ServiceInterface' not found in wp-content/plugins/via-delivery/includes/api/service/order.php:7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/via-delivery/views/backend/settings/tab-main.php on line 9
- > PHP Fatal error
Uncaught Error: Interface 'Ipol\\Woo\\ViaDelivery\\Api\\Service\\ServiceInterface' not found in wp-content/plugins/via-delivery/includes/api/service/pointlist.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (/assets/screenshot/settings-en.png)
via-delivery/via-delivery.php 92% from 13 tests
"Via.Delivery: Shipping service for WooCommerce" version 1.0.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,162 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 555 | 729 | 2,620 |
JavaScript | 2 | 64 | 2 | 258 |
PO File | 2 | 97 | 281 | 248 |
CSS | 2 | 5 | 0 | 36 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 2 | 7.69% |
▷ Concrete classes | 24 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 177 | |
▷ Static methods | 67 | 37.85% |
▷ Public methods | 153 | 86.44% |
▷ Protected methods | 22 | 12.43% |
▷ Private methods | 2 | 1.13% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 10 | |
▷ Global constants | 3 | 30.00% |
▷ Class constants | 7 | 70.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.32MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot/charts-en.png | 50.21KB | 22.21KB | ▼ 55.77% |
assets/screenshot/settings-en.png | 54.94KB | 27.27KB | ▼ 50.36% |
assets/screenshot/checkout-en.png | 219.05KB | 109.11KB | ▼ 50.19% |