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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼9.80ms] Passed 4 tests
A check of server-side resources used by Shipping Methods By Classes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.93 ▼3.15 |
Dashboard /wp-admin | 3.31 ▼0.03 | 49.57 ▼18.50 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.25 ▼5.00 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.09 ▼12.53 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.00 ▲1.04 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Shipping Methods By Classes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 14.84 ▲0.47 | 1.97 ▲0.21 | 46.27 ▲2.23 |
Dashboard /wp-admin | 2,221 ▲21 | 5.86 ▲0.97 | 99.89 ▼17.29 | 39.63 ▼6.86 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.01 | 40.25 ▲2.28 | 35.72 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,550 ▲10 | 23.03 ▲4.55 | 627.18 ▼9.29 | 55.80 ▼4.18 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.19 ▼0.04 | 97.60 ▼6.63 | 42.93 ▼5.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shipping-methods-by-classes/shipping-methods-by-classes.php:12
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: shipping method, woocommerce, conditional shipping, woocommerce shipping, shipping-zone...
shipping-methods-by-classes/shipping-methods-by-classes.php Passed 13 tests
The primary PHP file in "Shipping Methods By Classes" version 1.0 is used by WordPress to initiate all plugin functionality
59 characters long description:
Disable some shipping methods depending on shipping classes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected475 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 2 | 0 | 379 |
PHP | 1 | 13 | 31 | 80 |
YAML | 1 | 1 | 0 | 14 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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/icon-128x128.png | 5.30KB | 2.27KB | ▼ 57.13% |
_assets/icon-256x256.png | 11.61KB | 4.14KB | ▼ 64.37% |