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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼297.04ms] Passed 4 tests
Analyzing server-side resources used by Ade Custom Shipping
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.24 | 57.35 ▲10.07 |
Dashboard /wp-admin | 3.59 ▲0.19 | 33.19 ▼6.12 |
Posts /wp-admin/edit.php | 3.82 ▲0.18 | 37.87 ▼0.42 |
Add New Post /wp-admin/post-new.php | 7.06 ▲0.09 | 89.51 ▼1,177.69 |
Media Library /wp-admin/upload.php | 3.48 ▲0.18 | 23.83 ▼3.94 |
Server storage [IO: ▲0.06MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 3 new options
New WordPress options |
---|
ade_custom_gh |
ade_custom_ng |
ade_custom_time |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ade Custom Shipping
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,804 ▲50 | 15.95 ▼0.06 | 5.99 ▼0.44 | 2.13 ▼1.00 |
Dashboard /wp-admin | 2,934 ▲73 | 6.26 ▼0.06 | 114.89 ▼21.52 | 181.25 ▲16.28 |
Posts /wp-admin/edit.php | 2,727 ▲39 | 3.13 ▼0.11 | 67.34 ▲3.85 | 148.93 ▲7.39 |
Add New Post /wp-admin/post-new.php | 1,690 ▼62 | 16.09 ▼5.51 | 391.83 ▼50.14 | 177.21 ▲20.00 |
Media Library /wp-admin/upload.php | 1,734 ▲36 | 5.69 ▲0.18 | 122.56 ▼6.50 | 207.12 ▲17.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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 were found after uninstall: 3 options
- ade_custom_time
- ade_custom_ng
- ade_custom_gh
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ade-custom-shipping/inc/pro/dashboard.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ade-custom-shipping/inc/plugin_data.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ade-custom-shipping/inc/auth/ajax.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ade-custom-shipping/inc/pro/loader.php:2
- > PHP Fatal error
Uncaught Error: Class 'AdeCustomSHipping' not found in wp-content/plugins/ade-custom-shipping/inc/plugin_path.php:3
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2 in ade-custom-shipping/assets to your readme.txt
ade-custom-shipping/ade-custom-shipping.php Passed 13 tests
The primary PHP file in "Ade Custom Shipping" version 2.6.4 is used by WordPress to initiate all plugin functionality
47 characters long description:
Add shipping zones 3 levels deep for ecommerce.
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
Success! There were no dangerous files found in this plugin351 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 36 | 30 | 310 |
JavaScript | 1 | 1 | 2 | 34 |
CSS | 1 | 0 | 1 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 5 | 45.45% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ade_logo.png | 22.26KB | 3.79KB | ▼ 82.96% |
assets/img/ade_logo_new.png | 1.18KB | 0.67KB | ▼ 42.87% |