Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.06MB] [CPU: ▼11.29ms] Passed 4 tests
Server-side resources used by Shipping for Nova Poshta
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.63 | 41.94 ▲0.55 |
Dashboard /wp-admin | 3.93 ▲0.63 | 50.05 ▲0.86 |
Posts /wp-admin/edit.php | 3.98 ▲0.63 | 50.27 ▲5.37 |
Add New Post /wp-admin/post-new.php | 3.75 ▼2.13 | 37.89 ▼49.25 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 36.89 ▲2.67 |
Server storage [IO: ▲2.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 358 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_nova_poshta_city |
wp_novaposhta_ttn_invoices |
wp_nova_poshta_region |
wp_nova_poshta_warehouse |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
mrkv_nova_poshta_free_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Shipping for Nova Poshta
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲95 | 14.14 ▼0.57 | 1.75 ▲0.04 | 39.07 ▼7.60 |
Dashboard /wp-admin | 2,265 ▲85 | 5.68 ▲0.02 | 88.51 ▼11.47 | 86.74 ▲41.85 |
Posts /wp-admin/edit.php | 2,174 ▲77 | 2.09 ▲0.14 | 35.33 ▼1.72 | 33.53 ▼6.23 |
Add New Post /wp-admin/post-new.php | 1,611 ▲85 | 24.19 ▲1.12 | 677.71 ▲42.55 | 45.20 ▼14.67 |
Media Library /wp-admin/upload.php | 1,467 ▲64 | 4.13 ▼0.00 | 97.42 ▲1.90 | 80.19 ▲36.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie tables detected upon uninstall: 3 tables
- wp_nova_poshta_city
- wp_nova_poshta_warehouse
- wp_nova_poshta_region
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- mrkv_nova_poshta_free_version
- db_upgraded
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)
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/nova-poshta-ttn/admin/partials/morkvanp-plugin-admin-display.php
- > /wp-content/plugins/nova-poshta-ttn/admin/partials/plugin-name-admin-display.php
- 206× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function showFormBlockTitle() on null in wp-content/plugins/nova-poshta-ttn/public/partials/invoice/view/invoice_sender.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/nova-poshta-ttn/vendor/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/nova-poshta-ttn/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php:28
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/nova-poshta-ttn/vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/nova-poshta-ttn/vendor/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/nova-poshta-ttn/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php:20
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/nova-poshta-ttn/vendor/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/nova-poshta-ttn/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/nova-poshta-ttn/vendor/monolog/monolog/tests/Monolog/Formatter/ScalarFormatterTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' not found in wp-content/plugins/nova-poshta-ttn/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php:21
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: nova poshta, nova post
nova-poshta-ttn/nova-poshta-ttn.php 92% from 13 tests
"Shipping for Nova Poshta" version 1.18.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "3.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin31,362 lines of code in 297 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 254 | 5,003 | 9,828 | 24,896 |
JavaScript | 15 | 359 | 198 | 2,565 |
CSS | 10 | 75 | 69 | 2,317 |
Markdown | 10 | 245 | 0 | 998 |
JSON | 4 | 0 | 0 | 317 |
PO File | 2 | 90 | 96 | 249 |
XML | 1 | 3 | 0 | 16 |
SVG | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 170.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 5 | |
Traits | 2 | |
Classes | 246 | |
▷ Abstract classes | 10 | 4.07% |
▷ Concrete classes | 236 | 95.93% |
▷ Final classes | 0 | 0.00% |
Methods | 1,773 | |
▷ Static methods | 94 | 5.30% |
▷ Public methods | 1,398 | 78.85% |
▷ Protected methods | 241 | 13.59% |
▷ Private methods | 134 | 7.56% |
Functions | 124 | |
▷ Named functions | 44 | 35.48% |
▷ Anonymous functions | 80 | 64.52% |
Constants | 101 | |
▷ Global constants | 12 | 11.88% |
▷ Class constants | 89 | 88.12% |
▷ Public constants | 89 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
35 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/partials/img/001-shopping-bag.png | 0.32KB | 0.32KB | 0.00% |
includes/img/003-barcode.png | 0.26KB | 0.26KB | 0.00% |
public/partials/img/003-shopping-cart-1.png | 0.33KB | 0.33KB | 0.29% |
includes/nova_poshta_grey_25px.png | 0.37KB | 0.37KB | 0.00% |
public/partials/img/006-user-1.png | 0.34KB | 0.34KB | 0.00% |