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.02MB] [CPU: ▼5.21ms] Passed 4 tests
Server-side resources used by Order Splitter for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 35.86 ▼5.22 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.70 ▼3.20 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.97 ▲3.28 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.65 ▼12.64 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.75 ▲0.22 |
Server storage [IO: ▲6.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 87 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Order Splitter for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.20 ▼0.03 | 1.61 ▲0.03 | 43.21 ▼1.90 |
Dashboard /wp-admin | 2,198 ▲17 | 5.60 ▼0.08 | 92.87 ▼22.92 | 37.86 ▼4.84 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▲0.05 | 39.75 ▲1.19 | 36.08 ▲2.64 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.26 ▼1.84 | 682.75 ▲46.39 | 47.71 ▼16.66 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.15 ▼0.04 | 97.50 ▼9.44 | 40.75 ▼4.78 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 36× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woo-order-splitter/inc/sections/customization.php:1
- > PHP Notice
Undefined variable: current in wp-content/plugins/woo-order-splitter/inc/sections/wc_os_pagination.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-order-splitter/inc/wos-taxonomies.php:47
- > PHP Notice
Undefined variable: wc_os_settings in wp-content/plugins/woo-order-splitter/inc/settings/general-settings.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-order-splitter/inc/wos_mailer.php:10
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/woo-order-splitter/inc/settings/general-settings.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-order-splitter/inc/wos-emails.php:1155
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woo-order-splitter/inc/settings/cat-qty-split-settings.php:1
- > PHP Notice
Undefined variable: wc_os_per_page in wp-content/plugins/woo-order-splitter/inc/settings/groups_by_meta.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woo-order-splitter/inc/settings/general-settings.php on line 2
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: split orders, orders, preorder, duplicate, split...
woo-order-splitter/index.php 92% from 13 tests
The main file in "Order Splitter for WooCommerce" v. 4.9.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-order-splitter.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected36,884 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 9,759 | 626 | 14,951 |
SVG | 3 | 0 | 0 | 9,546 |
PO File | 4 | 2,513 | 3,179 | 6,243 |
JavaScript | 8 | 1,223 | 435 | 3,248 |
CSS | 8 | 278 | 76 | 2,896 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 461)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 243.60 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 902.00 |
Average method complexity | 11.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 461.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 1 | 0.94% |
▷ Public methods | 97 | 91.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 8.49% |
Functions | 235 | |
▷ Named functions | 225 | 95.74% |
▷ Anonymous functions | 10 | 4.26% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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
17 PNG files occupy 0.43MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/mailbox.png | 3.64KB | 2.14KB | ▼ 41.26% |
img/shipping-class-1.png | 20.79KB | 9.63KB | ▼ 53.67% |
img/cbqse-2.png | 92.57KB | 26.40KB | ▼ 71.48% |
img/cbqse-1.png | 61.53KB | 20.94KB | ▼ 65.97% |
img/premium.png | 6.20KB | 3.67KB | ▼ 40.68% |