Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼297.47ms] Passed 4 tests
Analyzing server-side resources used by Advanced USPS Shipping Method
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 53.20 ▲4.55 |
Dashboard /wp-admin | 3.41 ▲0.01 | 32.86 ▲0.44 |
Posts /wp-admin/edit.php | 3.64 ▲0.01 | 34.82 ▼0.47 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 108.31 ▼1,191.37 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.76 ▲1.51 |
Server storage [IO: ▲4.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 220 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_debug_mode |
fs_gdpr |
fs_accounts |
Browser metrics Passed 4 tests
Advanced USPS Shipping Method: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲41 | 16.19 ▲0.62 | 5.78 ▼0.71 | 2.19 ▲0.03 |
Dashboard /wp-admin | 2,892 ▲34 | 6.14 ▲0.01 | 119.47 ▼16.49 | 158.22 ▼0.74 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.25 ▲0.01 | 65.54 ▼3.08 | 154.42 ▲3.56 |
Add New Post /wp-admin/post-new.php | 1,708 ▲47 | 20.48 ▲4.09 | 501.67 ▲76.22 | 175.25 ▲19.68 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.54 ▲0.09 | 146.33 ▲10.78 | 198.00 ▲8.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 4 options
- fs_debug_mode
- fs_active_plugins
- fs_gdpr
- fs_accounts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/advanced-usps-shipping-method/public/partials/advanced-usps-shipping-method-public-display.php
- > /wp-content/plugins/advanced-usps-shipping-method/admin/partials/advanced-usps-shipping-method-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #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 Passed 13 tests
"Advanced USPS Shipping Method" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
This plugin will help you to connect with USPS API and fetch shipping services rate.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected34,549 lines of code in 154 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 127 | 7,535 | 16,894 | 32,645 |
CSS | 16 | 24 | 51 | 849 |
SVG | 5 | 0 | 0 | 689 |
JavaScript | 5 | 53 | 121 | 282 |
Markdown | 1 | 38 | 0 | 84 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 79.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,186 | |
▷ Static methods | 175 | 14.76% |
▷ Public methods | 838 | 70.66% |
▷ Protected methods | 15 | 1.26% |
▷ Private methods | 333 | 28.08% |
Functions | 98 | |
▷ Named functions | 98 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 135 | |
▷ Global constants | 110 | 81.48% |
▷ Class constants | 25 | 18.52% |
▷ Public constants | 25 | 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
17 PNG files occupy 0.35MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
admin/images/thedotstore-images/popular-plugins/WooCommerce-Category-Banner-Management.png | 3.00KB | 3.00KB | 0.10% |
admin/images/advanced-usps-shipping-method.png | 10.88KB | 4.33KB | ▼ 60.23% |
admin/images/thedotstore-images/popular-plugins/WooCommerce-Blocker-Prevent-Fake-Orders.png | 6.83KB | 6.87KB | 0.00% |
admin/images/thedotstore-images/popular-plugins/Product-Size-Charts-for-WooCommerce.png | 3.32KB | 3.31KB | 0.26% |