Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼290.53ms] Passed 4 tests
This is a short check of server-side resources used by Multiple Shipping Options for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.15 | 61.08 ▲9.56 |
Dashboard /wp-admin | 3.48 ▲0.08 | 35.69 ▲4.07 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 39.77 ▼2.14 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.02 | 96.72 ▼1,173.59 |
Media Library /wp-admin/upload.php | 3.37 ▲0.07 | 37.08 ▲11.00 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Multiple Shipping Options for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,805 ▲61 | 15.63 ▼0.02 | 6.73 ▲0.33 | 2.53 ▲0.48 |
Dashboard /wp-admin | 2,898 ▲37 | 6.15 ▲0.06 | 151.09 ▲13.81 | 177.84 ▼10.48 |
Posts /wp-admin/edit.php | 2,696 ▲11 | 3.25 ▲0.02 | 66.48 ▲3.09 | 209.99 ▲60.12 |
Add New Post /wp-admin/post-new.php | 1,630 ▼130 | 19.93 ▼2.18 | 496.87 ▲60.56 | 176.98 ▼11.90 |
Media Library /wp-admin/upload.php | 1,705 ▲7 | 5.55 ▲0.01 | 162.23 ▼57.04 | 218.77 ▲23.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/multiple-shipping-options-for-woocommerce/mso-install.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Tags: There are too many tags (30 tag instead of maximum 10)
multiple-shipping-options-for-woocommerce/multiple-shipping-options-for-woocommerce.php 85% from 13 tests
The primary PHP file in "Multiple Shipping Options for WooCommerce" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.7" instead of "5.0.0")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected11,126 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 1,237 | 13 | 5,961 |
PHP | 33 | 513 | 799 | 4,592 |
JavaScript | 1 | 91 | 41 | 562 |
JSON | 2 | 0 | 0 | 11 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 18.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 5.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 33 | 27.05% |
▷ Public methods | 120 | 98.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.64% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bin.png | 39.40KB | 16.74KB | ▼ 57.51% |