Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/split-order-by-weight-for-woocommerce/index.php+80
in_array() expects parameter 2 to be array, bool given
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.41ms] Passed 4 tests
Server-side resources used by Split order by weight for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.36 ▼5.33 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.52 ▼0.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.38 ▼5.47 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 100.96 ▼1.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.36 ▲0.37 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
sow_auto_forced |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
sow_splitorderbyweight |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Split order by weight for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 14.80 ▲0.43 | 1.64 ▼0.35 | 39.11 ▼4.30 |
Dashboard /wp-admin | 2,200 ▲9 | 5.81 ▲0.74 | 98.72 ▼5.36 | 39.26 ▼5.26 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.04 | 38.99 ▼3.11 | 35.79 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,514 ▼30 | 17.47 ▼0.71 | 646.10 ▲41.88 | 69.55 ▲18.86 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.24 ▲0.03 | 96.48 ▼4.10 | 43.85 ▼1.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- sow_splitorderbyweight
- widget_theysaidso_widget
- sow_auto_forced
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
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 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: split order by weight, split, orders, woocommerce
split-order-by-weight-for-woocommerce/index.php 85% from 13 tests
"Split order by weight for WooCommerce" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("split-order-by-weight-for-woocommerce.php" instead of "index.php")
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
Good job! No executable or dangerous file extensions detected1,271 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 165 | 318 | 1,193 |
JavaScript | 1 | 1 | 4 | 44 |
CSS | 1 | 3 | 0 | 34 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 5 | 16.13% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 5 | 16.13% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin