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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.17ms] Passed 4 tests
An overview of server-side resources used by Advanced USPS Shipping Method
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 36.12 ▼3.52 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.00 ▼4.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.38 ▲1.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.47 ▲0.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.41 ▼0.81 |
Server storage [IO: ▲4.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 245 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
fs_accounts |
widget_recent-posts |
fs_active_plugins |
widget_recent-comments |
widget_theysaidso_widget |
fs_debug_mode |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced USPS Shipping Method
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.43 ▼0.03 | 1.63 ▼0.28 | 38.70 ▼14.71 |
Dashboard /wp-admin | 2,200 ▲15 | 5.85 ▲0.94 | 95.89 ▼17.02 | 38.65 ▼2.59 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.97 ▼0.07 | 39.36 ▼4.84 | 34.18 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.15 ▼4.90 | 635.63 ▼31.06 | 49.73 ▼7.01 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▼0.01 | 98.01 ▼8.39 | 40.16 ▼6.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- fs_accounts
- widget_recent-comments
- theysaidso_admin_options
- fs_active_plugins
- db_upgraded
- can_compress_scripts
- fs_debug_mode
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/advanced-usps-shipping-method/admin/partials/advanced-usps-shipping-method-admin-display.php
- > /wp-content/plugins/advanced-usps-shipping-method/public/partials/advanced-usps-shipping-method-public-display.php
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 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Enable/Disable USPS shipping API), #2 (Developer mode), #3 (Connection with USPS shipping), #4 (Verify API connection), #5 (Postcode of warehouse/store), #6 (Cheapest shipping rates), #7 (Shipping services settings), #8 (Services on cart page)
advanced-usps-shipping-method/advanced-usps-shipping-method.php 92% from 13 tests
"Advanced USPS Shipping Method" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.9" instead of "3.0")
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
Everything looks great! No dangerous files found in this plugin38,080 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 137 | 8,256 | 18,026 | 35,297 |
PO File | 4 | 604 | 759 | 1,528 |
SVG | 5 | 0 | 0 | 689 |
JavaScript | 7 | 54 | 136 | 313 |
CSS | 18 | 19 | 43 | 252 |
Markdown | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 82.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,313 | |
▷ Static methods | 199 | 15.16% |
▷ Public methods | 916 | 69.76% |
▷ Protected methods | 17 | 1.29% |
▷ Private methods | 380 | 28.94% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 157 | |
▷ Global constants | 110 | 70.06% |
▷ Class constants | 47 | 29.94% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.41MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/thedotstore-images/popular-plugins/Product-Attachment-For-WooCommerce.png | 10.81KB | 4.42KB | ▼ 59.06% |
admin/images/getting-started/Screenshot-1.png | 77.25KB | 24.34KB | ▼ 68.49% |
admin/images/thedotstore-images/popular-plugins/Product-Sample-for-WooCommerce.png | 11.96KB | 4.80KB | ▼ 59.83% |
admin/images/thedotstore-images/popular-plugins/WooCommerce-Category-Banner-Management.png | 3.00KB | 3.00KB | 0.10% |
admin/images/plugin-videodemo.png | 20.62KB | 9.30KB | ▼ 54.90% |