Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.57ms] Passed 4 tests
A check of server-side resources used by Additional Email for order by Category
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 38.79 ▼14.55 |
Dashboard /wp-admin | 3.36 ▲0.05 | 46.10 ▼7.67 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.20 ▲1.80 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.50 ▼1.11 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.14 ▲1.04 |
Add Template /wp-admin/admin.php?page=aefo_edit | 3.22 | 34.78 |
Add Template /wp-admin/admin.php?page=aefo_add | 3.22 | 31.74 |
Additional Email /wp-admin/admin.php?page=aefo_list | 3.27 | 30.55 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_woocommerce_order_additional_email_by_category |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
aefo_version |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Additional Email for order by Category
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.26 ▼1.37 | 1.70 ▼2.12 | 40.98 ▼15.06 |
Dashboard /wp-admin | 2,236 ▲48 | 4.85 ▼0.05 | 99.12 ▼17.28 | 37.46 ▼5.88 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 1.99 ▲0.00 | 33.96 ▼3.36 | 33.66 ▲3.87 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 17.39 ▼5.91 | 680.33 ▼17.51 | 48.17 ▼5.91 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.27 ▼0.02 | 104.83 ▼5.38 | 44.96 ▼3.17 |
Add Template /wp-admin/admin.php?page=aefo_edit | 700 | 1.14 | 8.65 | 18.32 |
Add Template /wp-admin/admin.php?page=aefo_add | 701 | 1.14 | 6.39 | 15.78 |
Additional Email /wp-admin/admin.php?page=aefo_list | 701 | 1.14 | 6.63 | 19.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_woocommerce_order_additional_email_by_category
- The uninstall procedure has failed, leaving 8 options in the database
- aefo_version
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aefo_add
- > Notice in wp-content/plugins/additional-email-for-order-by-category/index.php+54
Undefined index: submit
- > GET request to /wp-admin/admin.php?page=aefo_edit
- > Notice in wp-content/plugins/additional-email-for-order-by-category/index.php+155
Undefined index: aefo_item
- > GET request to /wp-admin/admin.php?page=aefo_edit
- > Error in wp-content/plugins/additional-email-for-order-by-category/index.php+202
Uncaught Error: Call to undefined function WC() in wp-content/plugins/additional-email-for-order-by-category/index.php:202
Stack trace:
#0 wp-includes/class-wp-hook.php(310): AdditionalEmailForOrder->aefo_edit()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown- > GET request to /wp-admin/admin.php?page=aefo_add
- > Error in wp-content/plugins/additional-email-for-order-by-category/index.php+106
Uncaught Error: Call to undefined function WC() in wp-content/plugins/additional-email-for-order-by-category/index.php:106
Stack trace:
#0 wp-includes/class-wp-hook.php(310): AdditionalEmailForOrder->aefo_add()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown- > GET request to /wp-admin/admin.php?page=aefo_list
- > Error in wp-content/plugins/additional-email-for-order-by-category/class.php+15
Uncaught Error: Call to undefined function WC() in wp-content/plugins/additional-email-for-order-by-category/class.php:15
Stack trace:
#0 wp-content/plugins/additional-email-for-order-by-category/index.php(270): AEFO_List->__construct()
#1 wp-includes/class-wp-hook.php(310): AdditionalEmailForOrder->aefo_list()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/additional-email-for-order-by-category/index.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/additional-email-for-order-by-category/class.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Requires at least: The plugin version is formatted incorrectly
additional-email-for-order-by-category/index.php 92% from 13 tests
The primary PHP file in "Additional Email for order by Category" version 2.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("additional-email-for-order-by-category.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected360 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 38 | 18 | 360 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin