Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼4.32ms] Passed 4 tests
A check of server-side resources used by Automated USPS Shipping
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 36.87 ▼5.48 |
Dashboard /wp-admin | 3.57 ▲0.26 | 49.93 ▼3.51 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 54.09 ▲6.33 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 95.03 ▼9.45 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 38.25 ▲1.17 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Automated USPS Shipping
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.08 | 1.94 ▲0.09 | 42.75 ▼0.71 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▲0.05 | 90.82 ▼11.15 | 42.17 ▼4.84 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▲0.04 | 39.68 ▲5.55 | 33.69 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.00 ▼0.09 | 661.76 ▼29.71 | 71.13 ▲5.97 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.20 ▲0.01 | 106.66 ▼6.35 | 44.26 ▼7.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WeightPackStrategy' not found in wp-content/plugins/automated-usps-shipping-with-shipping-label/controllors/classes/weight_pack/class-hit-weight-strategy-descend.php:28
- > PHP Fatal error
Uncaught Error: Class 'WeightPackStrategy' not found in wp-content/plugins/automated-usps-shipping-with-shipping-label/controllors/classes/weight_pack/class-hit-weight-strategy-ascend.php:28
- > PHP Fatal error
Uncaught Error: Class 'WeightPackStrategy' not found in wp-content/plugins/automated-usps-shipping-with-shipping-label/controllors/classes/weight_pack/class-hit-weight-strategy-simple.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in automated-usps-shipping-with-shipping-label/assets to your readme.txt
automated-usps-shipping-with-shipping-label/a2z_usps_basic.php 77% from 13 tests
The main PHP script in "Automated USPS Shipping" version 1.0.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.1" instead of "2.6")
- Main file name: The principal plugin file should be the same as the plugin slug ("automated-usps-shipping-with-shipping-label.php" instead of "a2z_usps_basic.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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 detected4,150 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 392 | 659 | 3,953 |
XML | 4 | 0 | 0 | 197 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 209)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 34.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 5.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 209.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 91 | 91.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 8.08% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin