Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.84MB] [CPU: ▼6.42ms] Passed 4 tests
An overview of server-side resources used by Shipping Live rates for Australia Post for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.32 ▲0.86 | 40.74 ▼2.38 |
Dashboard /wp-admin | 4.16 ▲0.81 | 51.08 ▼14.02 |
Posts /wp-admin/edit.php | 4.27 ▲0.91 | 55.77 ▲7.79 |
Add New Post /wp-admin/post-new.php | 6.74 ▲0.85 | 89.33 ▼17.07 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 45.98 ▲10.56 |
Server storage [IO: ▲6.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,376 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
plugin_activation_octolize-australia-post-shipping/octolize-australia-post-shipping.php |
wpdesk_requirements_plugins_data |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Shipping Live rates for Australia Post for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲58 | 13.95 ▼0.41 | 1.77 ▲0.02 | 40.28 ▼2.61 |
Dashboard /wp-admin | 2,200 ▲23 | 5.57 ▼0.03 | 90.85 ▼1.34 | 39.09 ▼2.82 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 1.95 ▼0.08 | 40.32 ▲0.69 | 36.40 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.49 ▲0.33 | 684.05 ▼0.44 | 56.93 ▲1.69 |
Media Library /wp-admin/upload.php | 1,405 ▲2 | 4.19 ▼0.07 | 100.01 ▲0.64 | 41.82 ▼0.50 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- wpdesk_requirements_plugins_data
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- plugin_activation_octolize-australia-post-shipping/octolize-australia-post-shipping.php
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-free-shipping.php
- > /wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-fallback.php
- > /wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/wpdesk/wp-australia-post-shipping-method/src/WooCommerceShipping/AustraliaPost/view/shipping-method-script.php
- > /wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-custom-services.php
- > /wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-custom-origin.php
- 664× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'OctolizeShippingAustraliaPostVendor\\Http\\Client\\Common\\BatchClientInterface' not found in wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/php-http/client-common/src/BatchClient.php:9
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingAustraliaPostVendor\\Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector' not found in wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/symfony/translation/DataCollector/TranslationDataCollector.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/symfony/string/LazyString.php:18
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingAustraliaPostVendor\\Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/symfony/translation/Dumper/PoFileDumper.php:19
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingAustraliaPostVendor\\Symfony\\Component\\Console\\Output\\StreamOutput' not found in wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/symfony/console/Output/ConsoleSectionOutput.php:20
- > PHP Fatal error
Uncaught Error: Interface 'OctolizeShippingAustraliaPostVendor\\Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/monolog/monolog/src/Monolog/Processor/TagProcessor.php:18
- > PHP Fatal error
Uncaught Error: Interface 'OctolizeShippingAustraliaPostVendor\\Http\\Client\\HttpClient' not found in wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/php-http/client-common/src/HttpMethodsClientInterface.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/wpdesk/wp-helpscout-beacon/src/Beacon/templates/html-beacon-script.php:20
- > PHP Fatal error
Uncaught Error: Interface 'OctolizeShippingAustraliaPostVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' not found in wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/wpdesk/wp-wpdesk-rating-petition/src/RatingPetitionNotice.php:14
- > PHP Fatal error
Uncaught Error: Interface 'OctolizeShippingAustraliaPostVendor\\WPDesk\\AbstractShipping\\Rate\\ShipmentRating' not found in wp-content/plugins/octolize-australia-post-shipping/vendor_prefixed/wpdesk/abstract-shipping/src/AbstractShipping/Rate/ShipmentRatingImplementation.php:15
- > 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: australia post, australia post shipping, australia post live rates, australia post rates, australia post woocommerce
octolize-australia-post-shipping/octolize-australia-post-shipping.php 92% from 13 tests
The main file in "Shipping Live rates for Australia Post for WooCommerce" v. 1.5.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.5" instead of "5.8")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected71,069 lines of code in 1,353 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,245 | 2,802 | 41,452 | 67,379 |
JSON | 66 | 0 | 0 | 3,157 |
JavaScript | 10 | 19 | 31 | 188 |
SVG | 22 | 0 | 0 | 179 |
CSS | 8 | 25 | 2 | 141 |
Markdown | 2 | 5 | 0 | 25 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 248 | |
Interfaces | 180 | |
Traits | 41 | |
Classes | 943 | |
▷ Abstract classes | 44 | 4.67% |
▷ Concrete classes | 899 | 95.33% |
▷ Final classes | 210 | 23.36% |
Methods | 5,699 | |
▷ Static methods | 518 | 9.09% |
▷ Public methods | 4,474 | 78.51% |
▷ Protected methods | 423 | 7.42% |
▷ Private methods | 802 | 14.07% |
Functions | 505 | |
▷ Named functions | 229 | 45.35% |
▷ Anonymous functions | 276 | 54.65% |
Constants | 706 | |
▷ Global constants | 96 | 13.60% |
▷ Class constants | 610 | 86.40% |
▷ Public constants | 554 | 90.82% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.12MB with 0.04MB in potential savings
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.net.png | 2.36KB | 2.43KB | 0.00% |
assets/images/beacon.png | 2.98KB | 1.76KB | ▼ 40.99% |
assets/images/beacon-better-transparent.png | 9.82KB | 0.71KB | ▼ 92.75% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo@2x.png | 4.17KB | 4.47KB | 0.00% |
assets/images/beacon-transparent.png | 2.13KB | 1.17KB | ▼ 45.35% |