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.46MB] [CPU: ▲1.43ms] Passed 4 tests
An overview of server-side resources used by Shipping Cost on Product Page Calculator for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 47.03 ▲5.56 |
Dashboard /wp-admin | 3.77 ▲0.46 | 50.21 ▼1.36 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 56.79 ▲4.62 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 94.71 ▼3.12 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 42.89 ▲8.37 |
Server storage [IO: ▲1.88MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 441 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wpdesk_requirements_plugins_data |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
plugin_activation_octolize-shipping-cost-on-product-page/octolize-shipping-cost-on-product-page.php |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Shipping Cost on Product Page Calculator for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲33 | 14.25 ▼0.46 | 1.85 ▲0.15 | 41.17 ▼5.31 |
Dashboard /wp-admin | 2,200 ▲26 | 5.60 ▲0.06 | 91.43 ▼0.53 | 43.12 ▲3.50 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.02 ▲0.00 | 40.76 ▲2.73 | 38.81 ▲2.18 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.19 ▼1.96 | 600.10 ▼30.87 | 52.40 ▼22.13 |
Media Library /wp-admin/upload.php | 1,396 ▼7 | 4.19 ▲0.01 | 98.60 ▲1.73 | 41.94 ▼0.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- wpdesk_requirements_plugins_data
- plugin_activation_octolize-shipping-cost-on-product-page/octolize-shipping-cost-on-product-page.php
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 186× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingCostOnProductPageVendor\\Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/octolize-shipping-cost-on-product-page/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ElasticsearchFormatter.php:20
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingCostOnProductPageVendor\\Psr\\Log\\AbstractLogger' not found in wp-content/plugins/octolize-shipping-cost-on-product-page/vendor_prefixed/psr/log/Psr/Log/Test/TestLogger.php:56
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingCostOnProductPageVendor\\Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/octolize-shipping-cost-on-product-page/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PushoverHandler.php:27
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingCostOnProductPageVendor\\Monolog\\Handler\\MailHandler' not found in wp-content/plugins/octolize-shipping-cost-on-product-page/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php:28
- > PHP Fatal error
Uncaught Error: Interface 'OctolizeShippingCostOnProductPageVendor\\Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/octolize-shipping-cost-on-product-page/vendor_prefixed/monolog/monolog/src/Monolog/Processor/GitProcessor.php:25
- > PHP Fatal error
Uncaught Error: Interface 'OctolizeShippingCostOnProductPageVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' not found in wp-content/plugins/octolize-shipping-cost-on-product-page/vendor_prefixed/octolize/wp-shipping-cost-on-product-page/src/Octolize/Shipping/CostOnProductPage/Assets.php:12
- > PHP Fatal error
Uncaught Error: Interface 'OctolizeShippingCostOnProductPageVendor\\Octolize\\Shipping\\CostOnProductPage\\SettingsFields' not found in wp-content/plugins/octolize-shipping-cost-on-product-page/vendor_prefixed/octolize/wp-shipping-cost-on-product-page/src/Octolize/Shipping/CostOnProductPage/WooCommerceSettings/GeneralSettingsFields.php:13
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingCostOnProductPageVendor\\Monolog\\Handler\\Handler' not found in wp-content/plugins/octolize-shipping-cost-on-product-page/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FilterHandler.php:30
- > PHP Fatal error
Uncaught Error: Interface 'OctolizeShippingCostOnProductPageVendor\\Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/octolize-shipping-cost-on-product-page/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php:22
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingCostOnProductPageVendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/octolize-shipping-cost-on-product-page/vendor_prefixed/monolog/monolog/src/Monolog/Handler/StreamHandler.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: shipping estimate, shipping calculator, woocommerce product page shipping calculator, woocommerce product page, product page shipping calculator...
octolize-shipping-cost-on-product-page/octolize-shipping-cost-on-product-page.php 92% from 13 tests
The entry point to "Shipping Cost on Product Page Calculator for WooCommerce" version 1.4.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.7" instead of "5.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected17,295 lines of code in 426 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 368 | 983 | 11,975 | 15,783 |
JSON | 23 | 0 | 0 | 1,063 |
SVG | 20 | 0 | 0 | 157 |
JavaScript | 7 | 13 | 5 | 142 |
CSS | 6 | 24 | 2 | 125 |
Markdown | 2 | 5 | 0 | 25 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 5.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 59 | |
Interfaces | 68 | |
Traits | 12 | |
Classes | 258 | |
▷ Abstract classes | 11 | 4.26% |
▷ Concrete classes | 247 | 95.74% |
▷ Final classes | 6 | 2.43% |
Methods | 1,448 | |
▷ Static methods | 95 | 6.56% |
▷ Public methods | 1,106 | 76.38% |
▷ Protected methods | 181 | 12.50% |
▷ Private methods | 161 | 11.12% |
Functions | 50 | |
▷ Named functions | 14 | 28.00% |
▷ Anonymous functions | 36 | 72.00% |
Constants | 164 | |
▷ Global constants | 3 | 1.83% |
▷ Class constants | 161 | 98.17% |
▷ Public constants | 123 | 76.40% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.pl.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo@2x.png | 4.17KB | 4.47KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.net.png | 2.36KB | 2.43KB | 0.00% |
assets/img/bg-upsell-metabox.png | 4.56KB | 1.18KB | ▼ 74.11% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo.png | 2.36KB | 2.43KB | 0.00% |