Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼301.06ms] Passed 4 tests
An overview of server-side resources used by Add to order
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 50.65 ▼1.63 |
Dashboard /wp-admin | 3.46 ▲0.05 | 33.29 ▼4.09 |
Posts /wp-admin/edit.php | 3.68 ▲0.05 | 39.31 ▲0.98 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.05 | 95.50 ▼1,198.60 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 24.07 ▲0.09 |
Add to order /wp-admin/options-general.php?page=mjato | 3.28 | 24.39 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add to order
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 15.98 ▲0.27 | 6.03 ▼0.33 | 2.37 ▼0.36 |
Dashboard /wp-admin | 2,897 ▲36 | 6.13 ▼0.04 | 120.61 ▼15.35 | 155.14 ▼10.33 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.23 ▼0.02 | 63.71 ▲0.76 | 139.99 ▼4.96 |
Add New Post /wp-admin/post-new.php | 1,714 ▲46 | 20.85 ▲2.28 | 431.85 ▲25.00 | 161.07 ▲5.36 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.51 ▼0.02 | 136.53 ▼1.37 | 186.99 ▲3.20 |
Add to order /wp-admin/options-general.php?page=mjato | 857 | 2.15 | 42.39 | 96.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=mjato
- > Error in wp-content/plugins/add-to-order/options.php+73
Uncaught Error: Call to undefined function MJATO\wc_get_order_statuses() in wp-content/plugins/add-to-order/options.php:73
Stack trace:
#0 wp-admin/includes/template.php(1743): MJATO\Options->default_status()
#1 wp-admin/includes/template.php(1701): do_settings_fields()
#2 wp-content/plugins/add-to-order/options.php(38): do_settings_sections()
#3 wp-includes/class-wp-hook.php(307): MJATO\Options->options_page()
#4 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(474): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#8 {main}
thrown
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function MJATO\\add_action() in wp-content/plugins/add-to-order/options.php:16
- > PHP Fatal error
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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: woocommerce order, wc, add to cart, woocommerce, order...
add-to-order/add_to_order.php 85% from 13 tests
"Add to order" version 1.0.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("add-to-order.php" instead of "add_to_order.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 detected185 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 19 | 16 | 148 |
PO File | 1 | 6 | 10 | 31 |
Markdown | 1 | 3 | 0 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin