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 gracefully, with no errors
Server metrics [RAM: ▲0.63MB] [CPU: ▼0.22ms] Passed 4 tests
Server-side resources used by Shipping Live Rates for Royal Mail for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.64 | 49.66 ▲7.37 |
Dashboard /wp-admin | 3.94 ▲0.63 | 51.06 ▼1.76 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 49.55 ▲0.60 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.63 | 89.98 ▼5.76 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 41.18 ▲6.06 |
Server storage [IO: ▲4.62MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 1,152 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
wpdesk_requirements_plugins_data |
can_compress_scripts |
plugin_activation_octolize-royal-mail-shipping/octolize-royal-mail-shipping.php |
Browser metrics Passed 4 tests
A check of browser resources used by Shipping Live Rates for Royal Mail for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲33 | 14.67 ▲0.39 | 1.68 ▼0.11 | 43.31 ▼0.40 |
Dashboard /wp-admin | 2,197 ▲16 | 5.62 ▼0.07 | 90.99 ▼15.19 | 38.56 ▼6.16 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 1.94 ▼0.02 | 39.79 ▼2.11 | 36.19 ▲3.73 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.20 ▲0.00 | 683.10 ▲72.82 | 51.08 ▲0.17 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.13 ▼0.05 | 94.28 ▼5.75 | 41.30 ▼7.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- can_compress_scripts
- plugin_activation_octolize-royal-mail-shipping/octolize-royal-mail-shipping.php
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- wpdesk_requirements_plugins_data
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-custom-origin.php
- > /wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/octolize/wp-royal-mail-shipping-method/src/WooCommerceShipping/RoyalMail/view/shipping-method-script.php
- > /wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-fallback.php
- > /wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-free-shipping.php
- > /wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-custom-services.php
- 512× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'OctolizeShippingRoyalMailVendor\\WPDesk\\WooCommerceShipping\\CustomFields\\CustomField' not found in wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/CustomFields/ApiStatus/FieldApiStatus.php:17
- > PHP Fatal error
Uncaught Error: Interface 'OctolizeShippingRoyalMailVendor\\WPDesk\\Persistence\\PersistentContainer' not found in wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/wpdesk/wp-persistence/src/Adapter/ArrayContainer.php:13
- > PHP Fatal error
Uncaught Error: Interface 'OctolizeShippingRoyalMailVendor\\Symfony\\Contracts\\Translation\\TranslatorInterface' not found in wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/symfony/translation/IdentityTranslator.php:21
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingRoyalMailVendor\\Symfony\\Component\\Console\\Input\\ArgvInput' not found in wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/symfony/console/Input/StringInput.php:23
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingRoyalMailVendor\\Symfony\\Component\\DomCrawler\\AbstractUriElement' not found in wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/symfony/dom-crawler/Image.php:16
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingRoyalMailVendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RedisHandler.php:30
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingRoyalMailVendor\\Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/symfony/console/Command/LazyCommand.php:23
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingRoyalMailVendor\\RoyalMailPriceCalculator\\Services\\DomesticService' not found in wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/octolize/royal-mail-price-calculator/src/Services/SignedForSecondClassService.php:5
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingRoyalMailVendor\\Symfony\\Component\\Translation\\Provider\\AbstractProviderFactory' not found in wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/symfony/translation/Provider/NullProviderFactory.php:17
- > PHP Fatal error
Uncaught Error: Class 'OctolizeShippingRoyalMailVendor\\RoyalMailPriceCalculator\\Services\\InternationalService' not found in wp-content/plugins/octolize-royal-mail-shipping/vendor_prefixed/octolize/royal-mail-price-calculator/src/Services/InternationalSigned.php:5
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: royal mail rates, royal mail live rates, royal mail woocommerce, royal mail, uk shipping...
octolize-royal-mail-shipping/octolize-royal-mail-shipping.php 85% from 13 tests
The principal PHP file in "Shipping Live Rates for Royal Mail for WooCommerce" v. 1.3.15 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: The required version number did 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 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected55,029 lines of code in 1,092 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 935 | 2,172 | 31,186 | 50,790 |
JSON | 52 | 0 | 0 | 2,407 |
YAML | 63 | 1 | 3 | 1,299 |
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
A short review of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 140)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 9.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 140.00 |
Code structure | ||
---|---|---|
Namespaces | 187 | |
Interfaces | 151 | |
Traits | 29 | |
Classes | 690 | |
▷ Abstract classes | 42 | 6.09% |
▷ Concrete classes | 648 | 93.91% |
▷ Final classes | 72 | 11.11% |
Methods | 4,333 | |
▷ Static methods | 334 | 7.71% |
▷ Public methods | 3,348 | 77.27% |
▷ Protected methods | 395 | 9.12% |
▷ Private methods | 590 | 13.62% |
Functions | 313 | |
▷ Named functions | 164 | 52.40% |
▷ Anonymous functions | 149 | 47.60% |
Constants | 494 | |
▷ Global constants | 17 | 3.44% |
▷ Class constants | 477 | 96.56% |
▷ Public constants | 398 | 83.44% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.10MB with 0.02MB 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.pl.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/flexibleshipping.com.png | 5.63KB | 3.68KB | ▼ 34.58% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/octolize.com.png | 88.91KB | 39.07KB | ▼ 56.06% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo.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% |