Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.61MB] [CPU: ▲5.87ms] Passed 4 tests
An overview of server-side resources used by Shipping Live Rates for FedEx for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.07 ▲1.61 | 43.67 ▲2.70 |
Dashboard /wp-admin | 4.94 ▲1.63 | 50.85 ▼0.82 |
Posts /wp-admin/edit.php | 4.96 ▲1.60 | 58.67 ▲11.46 |
Add New Post /wp-admin/post-new.php | 7.49 ▲1.60 | 101.30 ▲10.29 |
Media Library /wp-admin/upload.php | 4.94 ▲1.71 | 44.26 ▲11.30 |
Server storage [IO: ▲10.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3,527 new files
Database: no new tables, 8 new options
New WordPress options |
---|
plugin_activation_flexible-shipping-fedex/flexible-shipping-fedex.php |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
wpdesk_requirements_plugins_data |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Shipping Live Rates for FedEx for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.14 ▼0.21 | 1.71 ▼0.01 | 38.71 ▼7.94 |
Dashboard /wp-admin | 2,204 ▲24 | 5.62 ▼0.04 | 92.69 ▲5.17 | 41.60 ▲1.62 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.10 ▲0.13 | 38.84 ▼1.33 | 36.79 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.29 ▲0.27 | 637.54 ▲13.53 | 61.80 ▲13.66 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▲0.03 | 104.73 ▲6.57 | 45.99 ▲3.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- plugin_activation_flexible-shipping-fedex/flexible-shipping-fedex.php
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-custom-services.php
- > /wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/wpdesk/wp-fedex-shipping-method/src/WooCommerceShipping/views/settings-scrips.php
- > /wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-fallback.php
- > /wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-free-shipping.php
- > /wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/wpdesk/wp-woocommerce-shipping/src/WooCommerceShipping/ShippingMethod/Traits/view/shipping-method-java-script-custom-origin.php
- 3167× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FedExVendor\\FedEx\\AbstractComplexType' not found in wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/octolize/php-fedex-api-wrapper/src/FedEx/LocationsService/ComplexType/WebAuthenticationCredential.php:16
- > PHP Fatal error
Uncaught Error: Class 'FedExVendor\\FedEx\\AbstractSimpleType' not found in wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/octolize/php-fedex-api-wrapper/src/FedEx/TrackService/SimpleType/TrackDeliveryOptionType.php:13
- > PHP Fatal error
Uncaught Error: Class 'FedExVendor\\FedEx\\AbstractComplexType' not found in wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/octolize/php-fedex-api-wrapper/src/FedEx/AddressValidationService/ComplexType/WebAuthenticationDetail.php:16
- > PHP Fatal error
Uncaught Error: Class 'FedExVendor\\FedEx\\AbstractSimpleType' not found in wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/octolize/php-fedex-api-wrapper/src/FedEx/ValidationAvailabilityAndCommitmentService/SimpleType/CustomDeliveryWindowType.php:13
- > PHP Fatal error
Uncaught Error: Interface 'FedExVendor\\WPDesk\\AbstractShipping\\Settings\\SettingsValues' not found in wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/wpdesk/abstract-shipping/src/AbstractShipping/Settings/SettingsValuesAsArray.php:15
- > PHP Fatal error
Uncaught Error: Class 'FedExVendor\\FedEx\\AbstractSimpleType' not found in wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/octolize/php-fedex-api-wrapper/src/FedEx/PickupService/SimpleType/WebServiceEnvironment.php:13
- > PHP Fatal error
Uncaught Error: Class 'FedExVendor\\FedEx\\AbstractSimpleType' not found in wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/octolize/php-fedex-api-wrapper/src/FedEx/ValidationAvailabilityAndCommitmentService/SimpleType/DamageStatusType.php:13
- > PHP Fatal error
Uncaught Error: Class 'FedExVendor\\FedEx\\AbstractComplexType' not found in wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/octolize/php-fedex-api-wrapper/src/FedEx/ValidationAvailabilityAndCommitmentService/ComplexType/ShippingDocumentFormat.php:22
- > PHP Fatal error
Uncaught Error: Class 'FedExVendor\\FedEx\\AbstractSimpleType' not found in wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/octolize/php-fedex-api-wrapper/src/FedEx/ValidationAvailabilityAndCommitmentService/SimpleType/RequestedShippingDocumentType.php:13
- > PHP Fatal error
Uncaught Error: Class 'FedExVendor\\FedEx\\AbstractSimpleType' not found in wp-content/plugins/flexible-shipping-fedex/vendor_prefixed/octolize/php-fedex-api-wrapper/src/FedEx/PickupService/SimpleType/WeighingScaleType.php:13
- > 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)
Everything seems fine on the user side
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
10 plugin tags: shipping method, woocommerce fedex, live rates, fedex, fedex shipping...
flexible-shipping-fedex/flexible-shipping-fedex.php 92% from 13 tests
The main PHP file in "Shipping Live Rates for FedEx for WooCommerce" ver. 2.7.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Requires at least: The required version number did not 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 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected99,705 lines of code in 3,492 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3,418 | 7,051 | 103,787 | 94,067 |
XML | 3 | 0 | 0 | 3,735 |
JSON | 31 | 0 | 0 | 1,437 |
SVG | 22 | 0 | 0 | 179 |
CSS | 7 | 24 | 2 | 131 |
JavaScript | 9 | 8 | 1 | 131 |
Markdown | 2 | 5 | 0 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 1.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 152 | |
Interfaces | 97 | |
Traits | 23 | |
Classes | 3,258 | |
▷ Abstract classes | 18 | 0.55% |
▷ Concrete classes | 3,240 | 99.45% |
▷ Final classes | 25 | 0.77% |
Methods | 10,059 | |
▷ Static methods | 114 | 1.13% |
▷ Public methods | 9,573 | 95.17% |
▷ Protected methods | 213 | 2.12% |
▷ Private methods | 273 | 2.71% |
Functions | 49 | |
▷ Named functions | 14 | 28.57% |
▷ Anonymous functions | 35 | 71.43% |
Constants | 7,453 | |
▷ Global constants | 3 | 0.04% |
▷ Class constants | 7,450 | 99.96% |
▷ Public constants | 7,414 | 99.52% |
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/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/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% |