Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.24ms] Passed 4 tests
An overview of server-side resources used by WooCommerce UPS Shipping – Live Rates and Access Points
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 44.06 ▲5.77 |
Dashboard /wp-admin | 3.40 ▲0.05 | 45.06 ▼14.48 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.75 ▲2.24 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.29 ▼10.91 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.49 ▲2.19 |
Server storage [IO: ▲4.98MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,037 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
plugin_activation_flexible-shipping-ups/flexible-shipping-ups.php |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce UPS Shipping – Live Rates and Access Points
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲46 | 14.24 ▼0.11 | 1.81 ▲0.08 | 38.24 ▼6.09 |
Dashboard /wp-admin | 2,192 ▲12 | 5.49 ▼0.17 | 88.01 ▼12.56 | 39.99 ▼4.54 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.01 | 38.96 ▲1.22 | 35.21 ▲2.88 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.36 ▼0.15 | 665.68 ▼35.86 | 55.62 ▼5.13 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.24 ▲0.00 | 98.48 ▼2.09 | 42.92 ▼0.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- plugin_activation_flexible-shipping-ups/flexible-shipping-ups.php
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 7× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/flexible-shipping-ups/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-free-shipping.php
- > /wp-content/plugins/flexible-shipping-ups/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-fallback.php
- > /wp-content/plugins/flexible-shipping-ups/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-custom-services.php
- > /wp-content/plugins/flexible-shipping-ups/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-custom-origin.php
- > /wp-content/plugins/flexible-shipping-ups/vendor_prefixed/wpdesk/wp-ups-shipping-method/src/WooCommerceShipping/Ups/view/surepost-shipping-method-script.php
- > /wp-content/plugins/flexible-shipping-ups/vendor_prefixed/wpdesk/wp-forms/templates/form-end.php
- > /wp-content/plugins/flexible-shipping-ups/vendor_prefixed/wpdesk/wp-ups-shipping-method/src/WooCommerceShipping/Ups/view/shipping-method-script.php
- 508× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'UpsFreeVendor\\GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/flexible-shipping-ups/vendor_prefixed/guzzlehttp/promises/src/AggregateException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'UpsFreeVendor\\WPDesk\\Persistence\\PersistentContainer' not found in wp-content/plugins/flexible-shipping-ups/vendor_prefixed/wpdesk/wp-persistence/src/DeferredPersistentContainer.php:10
- > PHP Fatal error
Uncaught Error: Interface 'UpsFreeVendor\\Ups\odeInterface' not found in wp-content/plugins/flexible-shipping-ups/vendor_prefixed/wpdesk/ups-api/src/Entity/InternationalForms.php:9
- > PHP Fatal error
Uncaught Error: Class 'UpsFreeVendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/flexible-shipping-ups/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php:23
- > PHP Fatal error
Uncaught Error: Class 'UpsFreeVendor\\Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/flexible-shipping-ups/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackHandler.php:26
- > PHP Fatal error
Uncaught Error: Class 'UpsFreeVendor\\WPDesk\\WooCommerceShipping\\CustomOrigin\\CustomOriginFields' not found in wp-content/plugins/flexible-shipping-ups/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/CustomOrigin/InstanceCustomOriginFields.php:10
- > PHP Fatal error
Uncaught Error: Interface 'UpsFreeVendor\\Ups\odeInterface' not found in wp-content/plugins/flexible-shipping-ups/vendor_prefixed/wpdesk/ups-api/src/Entity/GeoCode.php:7
- > PHP Fatal error
Uncaught Error: Interface 'UpsFreeVendor\\Ups\odeInterface' not found in wp-content/plugins/flexible-shipping-ups/vendor_prefixed/wpdesk/ups-api/src/Entity/DeliveryTimeInformation.php:11
- > PHP Fatal error
Uncaught Error: Interface 'UpsFreeVendor\\WPDesk\\WooCommerceShipping\\ShippingBuilder\\AddressProvider' not found in wp-content/plugins/flexible-shipping-ups/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingBuilder/CustomOriginAddressSender.php:16
- > PHP Fatal error
Uncaught Error: Class 'UpsFreeVendor\\GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/flexible-shipping-ups/vendor_prefixed/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: A description for screenshot #8 is missing in flexible-shipping-ups/assets to your readme.txt
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
flexible-shipping-ups/flexible-shipping-ups.php 85% from 13 tests
The main PHP script in "WooCommerce UPS Shipping – Live Rates and Access Points" version 2.1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Requires PHP: The required version number must match the one declared in readme.txt ("7.3" instead of "7.4")
- Requires at least: The required version number must match the one declared in readme.txt ("4.5" instead of "5.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected48,072 lines of code in 1,003 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 889 | 2,145 | 28,516 | 43,873 |
JSON | 37 | 0 | 0 | 1,923 |
Sass | 8 | 133 | 0 | 785 |
JSX | 15 | 101 | 114 | 573 |
JavaScript | 19 | 64 | 8 | 454 |
SVG | 23 | 0 | 1 | 306 |
CSS | 10 | 25 | 2 | 133 |
Markdown | 2 | 5 | 0 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 129 | |
Interfaces | 110 | |
Traits | 30 | |
Classes | 675 | |
▷ Abstract classes | 20 | 2.96% |
▷ Concrete classes | 655 | 97.04% |
▷ Final classes | 44 | 6.72% |
Methods | 4,104 | |
▷ Static methods | 229 | 5.58% |
▷ Public methods | 3,376 | 82.26% |
▷ Protected methods | 250 | 6.09% |
▷ Private methods | 478 | 11.65% |
Functions | 199 | |
▷ Named functions | 70 | 35.18% |
▷ Anonymous functions | 129 | 64.82% |
Constants | 768 | |
▷ Global constants | 3 | 0.39% |
▷ Class constants | 765 | 99.61% |
▷ Public constants | 729 | 95.29% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.19MB with 0.03MB 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/logo.png | 2.36KB | 2.43KB | 0.00% |
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/wpdesk.net.png | 2.36KB | 2.43KB | 0.00% |
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% |