Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.56ms] Passed 4 tests
A check of server-side resources used by Display wp_mail Error Messages
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.94 ▼9.04 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.73 ▼0.56 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.86 ▼7.83 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.60 ▼16.82 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.39 ▲0.53 |
Settings /wp-admin/admin.php?page=wonderplugin_wperror_edit_settings | 3.21 | 32.97 |
Show Errors /wp-admin/admin.php?page=wonderplugin_wperror_overview | 3.21 | 33.70 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Display wp_mail Error Messages
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 14.10 ▼0.61 | 1.72 ▼0.36 | 41.88 ▼2.56 |
Dashboard /wp-admin | 2,224 ▲47 | 5.56 ▼0.10 | 85.17 ▼16.68 | 66.86 ▲23.54 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.99 ▲0.00 | 38.80 ▲0.25 | 37.22 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,563 ▲35 | 23.20 ▲0.27 | 706.96 ▲9.25 | 54.44 ▲0.41 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.24 ▲0.05 | 99.75 ▼6.08 | 65.57 ▲18.48 |
Settings /wp-admin/admin.php?page=wonderplugin_wperror_edit_settings | 835 | 2.00 | 23.87 | 26.23 |
Show Errors /wp-admin/admin.php?page=wonderplugin_wperror_overview | 806 | 1.99 | 24.59 | 24.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
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
Good news, no errors were detected
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/display-wp-mail-error-messages/wonderplugin-wperror.php:11
- > 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 96% 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
3 plugin tags: error messages, phpmailer, wp_mail
display-wp-mail-error-messages/wonderplugin-wperror.php 92% from 13 tests
"Display wp_mail Error Messages" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("display-wp-mail-error-messages.php" instead of "wonderplugin-wperror.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin101 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 8 | 96 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo-16.png | 0.43KB | 0.40KB | ▼ 7.42% |
logo-32.png | 0.69KB | 0.63KB | ▼ 8.78% |