Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.86ms] Passed 4 tests
This is a short check of server-side resources used by Via.Delivery: Shipping service for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.78 ▼2.37 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.87 ▼5.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.42 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.43 ▲0.62 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.91 ▼0.29 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Via.Delivery: Shipping service for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.26 ▼1.32 | 1.87 ▲0.31 | 41.64 ▲0.98 |
Dashboard /wp-admin | 2,203 ▲11 | 5.82 ▲0.89 | 93.43 ▼14.93 | 37.93 ▼4.04 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.05 | 35.87 ▼2.30 | 38.29 ▲6.42 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 22.94 ▼0.07 | 650.68 ▼30.67 | 51.51 ▲0.77 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▲0.02 | 95.08 ▼13.52 | 40.41 ▼4.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/via-delivery-us/views/backend/settings/tab-main.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Ipol\\Woo\\ViaDelivery\\Api\\Provider\\ProviderInterface' not found in wp-content/plugins/via-delivery-us/includes/api/provider/base.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/via-delivery-us/views/backend/dashboard/index.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function isCreated() on null in wp-content/plugins/via-delivery-us/views/backend/order/tab-map.php:1
- > PHP Fatal error
Uncaught Error: Class 'Ipol\\Woo\\ViaDelivery\\Api\\Provider\\Base' not found in wp-content/plugins/via-delivery-us/includes/api/provider/map.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Ipol\\Woo\\ViaDelivery\\Api\\Service\\ServiceInterface' not found in wp-content/plugins/via-delivery-us/includes/api/service/geocode.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/via-delivery-us/views/backend/settings/settings.php:12
- > PHP Fatal error
Uncaught Error: Class 'Ipol\\Woo\\ViaDelivery\\Controllers\\Base' not found in wp-content/plugins/via-delivery-us/includes/controllers/adminsettings.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Ipol\\Woo\\ViaDelivery\\Api\\Service\\ServiceInterface' not found in wp-content/plugins/via-delivery-us/includes/api/service/pointlist.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/via-delivery-us/views/backend/dashboard/dash-cities.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (/assets/screenshot/settings-en.png)
via-delivery-us/via-delivery-us.php 92% from 13 tests
"Via.Delivery: Shipping service for WooCommerce" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,581 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 598 | 772 | 2,871 |
PO File | 2 | 151 | 277 | 356 |
JavaScript | 2 | 66 | 12 | 276 |
SVG | 1 | 0 | 1 | 42 |
CSS | 2 | 5 | 0 | 36 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 8.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 180 | |
▷ Static methods | 67 | 37.22% |
▷ Public methods | 155 | 86.11% |
▷ Protected methods | 22 | 12.22% |
▷ Private methods | 3 | 1.67% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.32MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/Close-icon.png | 0.41KB | 0.34KB | ▼ 17.22% |
assets/screenshot/checkout-en.png | 219.05KB | 109.11KB | ▼ 50.19% |
assets/screenshot/charts-en.png | 50.21KB | 22.21KB | ▼ 55.77% |
assets/screenshot/settings-en.png | 54.94KB | 27.27KB | ▼ 50.36% |