Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.86ms] Passed 4 tests
A check of server-side resources used by WooCommerce Advanced Shipping
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.82 ▼2.18 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.43 ▼6.69 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.55 ▼0.41 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.04 ▼2.16 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.36 ▲2.26 |
Server storage [IO: ▲5.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 1,962 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Advanced Shipping
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.29 ▼1.01 | 4.59 ▲2.83 | 43.18 ▼2.55 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▲0.02 | 109.09 ▲2.34 | 37.90 ▼2.92 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.01 ▲0.02 | 41.94 ▲3.10 | 35.13 ▲0.30 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.20 ▼0.16 | 694.68 ▲3.52 | 53.05 ▼8.02 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.23 ▲0.07 | 100.87 ▲2.02 | 41.89 ▼2.65 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/pluginops-advanced-shipping/admin/views/settings/shipping-services.php
- > /wp-content/plugins/pluginops-advanced-shipping/admin/views/settings/services/ups.php
- > /wp-content/plugins/pluginops-advanced-shipping/admin/views/settings/services/fedex.php
- > /wp-content/plugins/pluginops-advanced-shipping/admin/views/settings/services/usps.php
- > /wp-content/plugins/pluginops-advanced-shipping/admin/views/settings/services/table-rate.php
- > /wp-content/plugins/pluginops-advanced-shipping/admin/views/settings/services/flat-box.php
- 1893× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FedEx\\AbstractSimpleType' not found in wp-content/plugins/pluginops-advanced-shipping/includes/FedEx/OpenShipService/SimpleType/CompletedEtdType.php:13
- > PHP Fatal error
Uncaught Error: Class 'FedEx\\AbstractComplexType' not found in wp-content/plugins/pluginops-advanced-shipping/includes/FedEx/OpenShipService/ComplexType/ExportDetail.php:19
- > PHP Fatal error
Uncaught Error: Class 'FedEx\\AbstractSimpleType' not found in wp-content/plugins/pluginops-advanced-shipping/includes/FedEx/CloseService/SimpleType/CloseWithDocumentsProcessingOptionType.php:13
- > PHP Fatal error
Uncaught Error: Class 'FedEx\\AbstractSimpleType' not found in wp-content/plugins/pluginops-advanced-shipping/includes/FedEx/RateService/SimpleType/BarcodeSymbologyType.php:13
- > PHP Fatal error
Uncaught Error: Class 'FedEx\\AbstractSimpleType' not found in wp-content/plugins/pluginops-advanced-shipping/includes/FedEx/TrackService/SimpleType/TrackReturnLabelType.php:13
- > PHP Fatal error
Uncaught Error: Class 'FedEx\\AbstractComplexType' not found in wp-content/plugins/pluginops-advanced-shipping/includes/FedEx/ShipService/ComplexType/CustomLabelGraphicEntry.php:18
- > PHP Fatal error
Uncaught Error: Class 'FedEx\\AbstractComplexType' not found in wp-content/plugins/pluginops-advanced-shipping/includes/FedEx/OpenShipService/ComplexType/Tax.php:18
- > PHP Fatal error
Uncaught Error: Class 'FedEx\\AbstractComplexType' not found in wp-content/plugins/pluginops-advanced-shipping/includes/FedEx/ShipService/ComplexType/ExportDeclarationDetail.php:17
- > PHP Fatal error
Uncaught Error: Class 'FedEx\\AbstractSimpleType' not found in wp-content/plugins/pluginops-advanced-shipping/includes/FedEx/OpenShipService/SimpleType/CustomerSpecifiedLabelGenerationOptionType.php:13
- > PHP Fatal error
Uncaught Error: Class 'FedEx\\AbstractComplexType' not found in wp-content/plugins/pluginops-advanced-shipping/includes/FedEx/PickupService/ComplexType/SpecialEquipmentLineItem.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: fedex, woocommerce, usps
pluginops-advanced-shipping/pluginops-advanced-shipping.php 85% from 13 tests
The main PHP file in "WooCommerce Advanced Shipping" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Git Repository: There should be no Git repositories present in your plugin
- Description: Please keep the plugin description shorter than 140 characters (currently 164 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin50,711 lines of code in 1,939 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,932 | 12,062 | 59,570 | 48,433 |
XML | 2 | 0 | 0 | 1,496 |
JavaScript | 3 | 81 | 72 | 464 |
CSS | 2 | 27 | 4 | 318 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 118)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 1.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 1.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 118.00 |
Code structure | ||
---|---|---|
Namespaces | 58 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 1,920 | |
▷ Abstract classes | 4 | 0.21% |
▷ Concrete classes | 1,916 | 99.79% |
▷ Final classes | 0 | 0.00% |
Methods | 5,666 | |
▷ Static methods | 25 | 0.44% |
▷ Public methods | 5,625 | 99.28% |
▷ Protected methods | 27 | 0.48% |
▷ Private methods | 14 | 0.25% |
Functions | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 4,732 | |
▷ Global constants | 1 | 0.02% |
▷ Class constants | 4,731 | 99.98% |
▷ Public constants | 4,731 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.37MB with 0.24MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/shipping-icon.png | 309.82KB | 99.85KB | ▼ 67.77% |
admin/images/save-help-text.png | 73.90KB | 30.69KB | ▼ 58.47% |