Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.83ms] Passed 4 tests
An overview of server-side resources used by Multiple Shipping Options for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.21 ▼3.41 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.50 ▲0.40 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 51.90 ▲1.65 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 83.74 ▼17.97 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.64 ▲4.16 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Multiple Shipping Options for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 14.81 ▲0.45 | 1.62 ▼0.08 | 40.78 ▲0.44 |
Dashboard /wp-admin | 2,212 ▲24 | 5.06 ▲0.18 | 107.54 ▼2.46 | 39.58 ▼6.76 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.00 ▼0.01 | 40.59 ▲0.34 | 35.55 ▲2.43 |
Add New Post /wp-admin/post-new.php | 1,540 ▲11 | 22.91 ▲4.53 | 663.90 ▲53.75 | 57.81 ▼1.39 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.29 ▲0.01 | 101.92 ▲3.61 | 43.80 ▲0.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/multiple-shipping-options-for-woocommerce/mso-install.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% 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
Attributes that require attention:
- Tags: You are using too many tags: 30 tag instead of maximum 10
multiple-shipping-options-for-woocommerce/multiple-shipping-options-for-woocommerce.php 77% from 13 tests
The primary PHP file in "Multiple Shipping Options for WooCommerce" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 238 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("6.0" instead of "7.0.0")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected14,386 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1,403 | 237 | 6,644 |
PHP | 36 | 723 | 1,749 | 6,008 |
JavaScript | 4 | 365 | 278 | 1,723 |
JSON | 2 | 0 | 0 | 11 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 101)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 25.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 283.00 |
Average method complexity | 6.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 101.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 146 | |
▷ Static methods | 38 | 26.03% |
▷ Public methods | 144 | 98.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.37% |
Functions | 21 | |
▷ Named functions | 19 | 90.48% |
▷ Anonymous functions | 2 | 9.52% |
Constants | 24 | |
▷ Global constants | 24 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pallet.png | 31.82KB | 31.82KB | 0.00% |
images/bin.png | 39.40KB | 16.74KB | ▼ 57.51% |
images/pdf.png | 7.72KB | 4.09KB | ▼ 46.98% |