Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.91ms] Passed 4 tests
Server-side resources used by Shipping via Nova Poshta for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 45.12 ▼1.56 |
Dashboard /wp-admin | 3.31 ▲0.01 | 63.00 ▲8.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.00 ▼5.99 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.07 ▼20.27 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.09 ▲0.20 |
Server storage [IO: ▲0.35MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 49 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_novaposhta_warehouses |
wp_novaposhta_cities |
wp_novaposhta_areas |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Shipping via Nova Poshta for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲17 | 14.35 ▼0.05 | 1.86 ▲0.13 | 44.59 ▲2.92 |
Dashboard /wp-admin | 2,212 ▲35 | 5.64 ▲0.00 | 88.73 ▼1.73 | 44.47 ▼0.34 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 1.98 ▲0.01 | 35.65 ▼2.30 | 34.59 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.11 ▲0.11 | 682.33 ▲78.96 | 55.17 ▲3.45 |
Media Library /wp-admin/upload.php | 1,414 ▲17 | 4.18 ▼0.02 | 96.87 ▼10.38 | 44.71 ▼0.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% 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
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-nova-poshta-shipping/app/woocommerce-extensions/wnps-wc-shipping.php:6
- > PHP Fatal error
Uncaught Error: Class 'WooNovaPoshtaShipping\\App\\BaseRender' not found in wp-content/plugins/woo-nova-poshta-shipping/app/renders/wnps-order-details-render-admin.php:8
- > PHP Fatal error
Uncaught Error: Class 'WooNovaPoshtaShipping\\App\\BaseController' not found in wp-content/plugins/woo-nova-poshta-shipping/app/controllers/wnps-get-shipping-fields.php:10
- > PHP Fatal error
Uncaught Error: Class 'WooNovaPoshtaShipping\\App\\BaseRender' not found in wp-content/plugins/woo-nova-poshta-shipping/app/renders/wnps-settings-render.php:7
- > PHP Fatal error
Uncaught Error: Class 'WooNovaPoshtaShipping\\App\\BaseModel' not found in wp-content/plugins/woo-nova-poshta-shipping/app/models/wnps-settings-model.php:7
- > PHP Fatal error
Uncaught Error: Class 'WooNovaPoshtaShipping\\App\\BaseController' not found in wp-content/plugins/woo-nova-poshta-shipping/app/controllers/wnps-settings.php:11
- > PHP Fatal error
Uncaught Error: Class 'WooNovaPoshtaShipping\\App\\BaseRender' not found in wp-content/plugins/woo-nova-poshta-shipping/app/renders/wnps-checkout-select-render.php:7
- > PHP Fatal error
Uncaught Error: Class 'WooNovaPoshtaShipping\\App\\BaseRender' not found in wp-content/plugins/woo-nova-poshta-shipping/app/renders/wnps-checkout-gmap-render.php:7
- > PHP Fatal error
Uncaught Error: Class 'WooNovaPoshtaShipping\\App\\BaseHelper' not found in wp-content/plugins/woo-nova-poshta-shipping/app/helpers/wnps-helper.php:7
- > PHP Fatal error
Uncaught Error: Class 'WooNovaPoshtaShipping\\App\\BaseRender' not found in wp-content/plugins/woo-nova-poshta-shipping/app/renders/wnps-order-details-render-frontend.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 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Please fix this invalid url: "#"
woo-nova-poshta-shipping/nova-poshta-shipping.php 77% from 13 tests
"Shipping via Nova Poshta for WooCommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("###")
- Domain Path: The domain path must begin with a forward slash character ("/###")
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-nova-poshta-shipping.php" instead of "nova-poshta-shipping.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,316 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 369 | 345 | 1,551 |
JavaScript | 4 | 121 | 36 | 549 |
CSS | 3 | 28 | 0 | 194 |
JSON | 2 | 0 | 0 | 22 |
Sass | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 2 | 7.69% |
Methods | 98 | |
▷ Static methods | 6 | 6.12% |
▷ Public methods | 94 | 95.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 4.08% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.11MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) screenshot-1.png | 43.02KB | 0.00KB | ▼ 100.00% |
(invalid) screenshot-2.png | 49.90KB | 0.00KB | ▼ 100.00% |
(invalid) screenshot-3.png | 22.86KB | 0.00KB | ▼ 100.00% |
assets/images/novaposhta-logo.png | 1.49KB | 1.04KB | ▼ 30.48% |