Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/woo-shipping-for-nova-poshta/classes/base/Options.php+126
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.93ms] Passed 4 tests
This is a short check of server-side resources used by Woo Shipping for Nova Poshta
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.87 ▼4.46 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.36 ▼10.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.22 ▲2.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.96 ▼7.00 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.84 ▲5.38 |
Server storage [IO: ▲0.98MB] [DB: ▲9.41MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 253 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_nova_poshta_warehouse |
wp_nova_poshta_region |
wp_nova_poshta_city |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
_nova_poshta_locations_last_update_date |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Woo Shipping for Nova Poshta
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.74 ▲0.36 | 1.74 ▼0.01 | 42.18 ▼1.99 |
Dashboard /wp-admin | 2,206 ▲15 | 4.89 ▼0.99 | 109.16 ▼0.76 | 39.12 ▼8.48 |
Posts /wp-admin/edit.php | 2,089 ▲18 | 2.02 ▼0.03 | 35.87 ▲1.24 | 34.18 ▲0.34 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.69 ▼0.80 | 697.53 ▲98.11 | 57.94 ▲6.97 |
Media Library /wp-admin/upload.php | 1,385 ▲3 | 4.25 ▲0.02 | 103.15 ▲3.95 | 46.56 ▲5.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.92MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 175× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'plugins\ovaPoshta\\classes\\base\\Base' not found in wp-content/plugins/woo-shipping-for-nova-poshta/classes/repository/AreaRepositoryFactory.php:14
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/woo-shipping-for-nova-poshta/vendor/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/woo-shipping-for-nova-poshta/vendor/monolog/monolog/tests/Monolog/Handler/NativeMailerHandlerTest.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/woo-shipping-for-nova-poshta/vendor/monolog/monolog/tests/Monolog/Handler/BufferHandlerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'plugins\ovaPoshta\\classes\\repository\\AbstractAreaRepository' not found in wp-content/plugins/woo-shipping-for-nova-poshta/classes/repository/CityRepository.php:11
- > PHP Fatal error
Uncaught Error: Class 'plugins\ovaPoshta\\classes\\base\\Base' not found in wp-content/plugins/woo-shipping-for-nova-poshta/classes/base/DatabaseSync.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/woo-shipping-for-nova-poshta/vendor/monolog/monolog/tests/Monolog/Processor/WebProcessorTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/woo-shipping-for-nova-poshta/vendor/monolog/monolog/tests/Monolog/Handler/SlackWebhookHandlerTest.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/woo-shipping-for-nova-poshta/vendor/monolog/monolog/tests/Monolog/Handler/FleepHookHandlerTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/woo-shipping-for-nova-poshta/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
woo-shipping-for-nova-poshta/woo-shipping-for-nova-poshta.php Passed 13 tests
The main file in "Woo Shipping for Nova Poshta" v. 2.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
Plugin for administrating Nova Poshta shipping method within Woocommerce Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin18,726 lines of code in 238 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 213 | 3,544 | 7,964 | 15,959 |
JavaScript | 6 | 217 | 54 | 1,225 |
Markdown | 9 | 245 | 0 | 997 |
JSON | 5 | 0 | 0 | 323 |
PO File | 2 | 62 | 68 | 200 |
XML | 1 | 3 | 0 | 16 |
CSS | 2 | 0 | 0 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 5 | |
Traits | 2 | |
Classes | 213 | |
▷ Abstract classes | 10 | 4.69% |
▷ Concrete classes | 203 | 95.31% |
▷ Final classes | 0 | 0.00% |
Methods | 1,385 | |
▷ Static methods | 70 | 5.05% |
▷ Public methods | 1,057 | 76.32% |
▷ Protected methods | 219 | 15.81% |
▷ Private methods | 109 | 7.87% |
Functions | 76 | |
▷ Named functions | 10 | 13.16% |
▷ Anonymous functions | 66 | 86.84% |
Constants | 87 | |
▷ Global constants | 6 | 6.90% |
▷ Class constants | 81 | 93.10% |
▷ Public constants | 81 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected