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.09MB] [CPU: ▼1.52ms] Passed 4 tests
This is a short check of server-side resources used by Splitter Orders For Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 49.16 ▲6.95 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.74 ▼0.60 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 51.12 ▼0.36 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 94.54 ▼1.92 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 37.22 ▼3.18 |
Order_Splitter /wp-admin/admin.php?page=order-splitter | 3.26 | 35.77 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
lisg_ordersplitterpro |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Splitter Orders For Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.88 ▼0.35 | 1.61 ▼1.04 | 41.27 ▼1.62 |
Dashboard /wp-admin | 2,227 ▲39 | 5.02 ▲0.14 | 109.91 ▲4.67 | 39.29 ▼2.82 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.30 ▲0.33 | 40.95 ▲2.08 | 35.28 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,530 ▲10 | 23.48 ▲0.23 | 678.77 ▼13.11 | 37.13 ▼21.87 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.38 ▲0.26 | 101.10 ▼13.83 | 43.48 ▼7.08 |
Order_Splitter /wp-admin/admin.php?page=order-splitter | 855 | 1.96 | 27.67 | 23.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- lisg_auto_forced
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- lisg_ordersplitterpro
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/splitter-orders-for-woocommerce/inc/configuration.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/splitter-orders-for-woocommerce/inc/emails_all.php:3
- > 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: split order, orders, split, woocommerce
splitter-orders-for-woocommerce/index.php 92% from 13 tests
This is the main PHP file of "Splitter Orders For Woocommerce" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("splitter-orders-for-woocommerce.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin681 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 141 | 35 | 629 |
CSS | 1 | 3 | 0 | 34 |
JavaScript | 1 | 0 | 2 | 18 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 13.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin