Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.30ms] Passed 4 tests
A check of server-side resources used by Split Order By Warehouse for Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.81 ▲0.50 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.25 ▼7.20 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.34 ▼3.20 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 83.41 ▼19.28 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.20 ▲2.99 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
split_by_warehouse_falg |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Split Order By Warehouse for Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.07 ▼0.04 | 1.77 ▲0.10 | 43.71 ▲2.05 |
Dashboard /wp-admin | 2,198 ▲21 | 5.64 ▲0.01 | 87.15 ▼1.36 | 41.26 ▼3.07 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.08 | 34.14 ▼2.70 | 33.96 ▼4.43 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.51 ▲0.27 | 674.44 ▼20.74 | 54.97 ▼2.06 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.21 ▲0.03 | 100.92 ▼2.93 | 46.30 ▲1.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- widget_recent-comments
- split_by_warehouse_falg
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- splitorderwarehouse
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
4 plugin tags: split, woo commerce, split order by warehouse, orders
split-order-by-warehouse/split_order_by_warehouse.php 85% from 13 tests
The primary PHP file in "Split Order By Warehouse for Woocommerce" version 1.1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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-warehouse.php" instead of "split_order_by_warehouse.php")
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
Good job! No executable or dangerous file extensions detected428 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 112 | 31 | 410 |
JavaScript | 1 | 0 | 2 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 2 | 22.22% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin