Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/brozzme-multiple-admin-emails/multiple-admin-emails.php+73
Undefined property: wp_bmae::$plugin_slug
Server metrics [RAM: ▼1.84MB] [CPU: ▼56.93ms] Passed 4 tests
Server-side resources used by Brozzme Multiple admin emails
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.77 ▲0.33 |
Dashboard /wp-admin | 2.11 ▼1.23 | 7.47 ▼54.84 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 5.92 ▼46.71 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 6.82 ▼94.80 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.69 ▼31.35 |
Brozzme /wp-admin/admin.php?page=brozzme-plugins | 2.11 | 6.38 |
Notifications /wp-admin/admin.php?page=brozzme-multiple-admin-emails | 2.11 | 8.17 |
Server storage [IO: ▲0.13MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
bmae_settings |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Brozzme Multiple admin emails
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.24 ▼0.12 | 1.92 ▲0.18 | 44.47 ▲0.44 |
Dashboard /wp-admin | 2,215 ▲40 | 5.55 ▼0.12 | 88.34 ▼13.30 | 40.84 ▼6.35 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.97 ▼0.05 | 34.32 ▼1.69 | 37.61 ▼2.28 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 18.19 ▼5.09 | 614.33 ▼66.63 | 66.68 ▲13.00 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.19 ▼0.03 | 104.39 ▲5.50 | 46.76 ▲0.20 |
Brozzme /wp-admin/admin.php?page=brozzme-plugins | 1,131 | 2.16 | 23.45 | 47.04 |
Notifications /wp-admin/admin.php?page=brozzme-multiple-admin-emails | 971 | 1.99 | 27.11 | 28.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/brozzme-multiple-admin-emails/multiple-admin-emails.php+73
Undefined property: wp_bmae::$plugin_slug
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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 server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=brozzme-multiple-admin-emails
- > Notice in wp-content/plugins/brozzme-multiple-admin-emails/multiple-admin-emails.php+73
Undefined property: wp_bmae::$plugin_slug
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=brozzme-multiple-admin-emails
- > Notice in wp-content/plugins/brozzme-multiple-admin-emails/admin/bmae_admin.php+136
Undefined index: send_post_type
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=brozzme-multiple-admin-emails
- > Notice in wp-content/plugins/brozzme-multiple-admin-emails/admin/bmae_admin.php+157
Undefined index: event_email
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=brozzme-multiple-admin-emails
- > Notice in wp-content/plugins/brozzme-multiple-admin-emails/admin/bmae_admin.php+171
Undefined index: silent_mode
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/brozzme-multiple-admin-emails/admin/bmae_utilities.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/brozzme-multiple-admin-emails/multiple-admin-emails.php:261
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
brozzme-multiple-admin-emails/multiple-admin-emails.php 77% from 13 tests
"Brozzme Multiple admin emails" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("brozzme-multiple-admin-emails.php" instead of "multiple-admin-emails.php")
- Description: The description should be shorter than 140 characters (currently 302 characters long)
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin976 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 223 | 215 | 758 |
CSS | 1 | 22 | 5 | 218 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 23.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.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 | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 3 | 6.12% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/logo-wps-200x200px.png | 30.17KB | 7.41KB | ▼ 75.43% |