Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wp-mail/wp-mail.php+26
date_default_timezone_set(): Timezone ID '' is invalid
Server metrics [RAM: ▼1.78MB] [CPU: ▼53.23ms] Passed 4 tests
This is a short check of server-side resources used by WP Mail
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.25 | 5.06 ▼33.16 |
Dashboard /wp-admin | 2.23 ▼1.07 | 6.08 ▼47.95 |
Posts /wp-admin/edit.php | 2.23 ▼1.12 | 6.71 ▼39.14 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.65 | 7.23 ▼92.68 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 4.89 ▼30.85 |
Shortcodes /wp-admin/admin.php?page=wp_mail_shortcodes | 2.23 | 5.45 |
Compose /wp-admin/admin.php?page=wp_mail_compose | 2.23 | 7.87 |
View Message /wp-admin/admin.php?page=wp_mail_view_message | 2.23 | 7.15 |
Inbox 0 /wp-admin/admin.php?page=wp_mail_inbox | 2.23 | 6.95 |
Trashed /wp-admin/admin.php?page=wp_trashed_mails | 2.23 | 5.72 |
WP Mail /wp-admin/options-general.php?page=wp_mail_settings | 2.23 | 5.72 |
Draft /wp-admin/admin.php?page=wp_draft_mails | 2.23 | 5.73 |
Sent Messages /wp-admin/admin.php?page=wp_sent_mails | 2.23 | 7.05 |
WP Mail /wp-admin/admin.php?page=wp_mail_dash | 2.23 | 5.73 |
Server storage [IO: ▲1.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 65 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_mail_system |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
wp_mail_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Mail
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲97 | 14.80 ▲0.43 | 2.41 ▲0.42 | 44.09 ▲2.83 |
Dashboard /wp-admin | 2,241 ▲53 | 5.84 ▲0.92 | 96.01 ▼9.13 | 87.51 ▲44.48 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.01 ▲0.02 | 34.71 ▼2.63 | 34.08 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,701 ▲181 | 21.93 ▼1.37 | 757.37 ▲74.24 | 50.86 ▼1.00 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.20 ▼0.07 | 100.85 ▼1.67 | 72.69 ▲28.78 |
Shortcodes /wp-admin/admin.php?page=wp_mail_shortcodes | 860 | 2.06 | 27.47 | 80.61 |
Compose /wp-admin/admin.php?page=wp_mail_compose | 1,689 | 6.75 | 144.58 | 157.26 |
View Message /wp-admin/admin.php?page=wp_mail_view_message | 1,613 | 3.04 | 39.09 | 43.99 |
Inbox 0 /wp-admin/admin.php?page=wp_mail_inbox | 960 | 2.25 | 32.06 | 38.50 |
Trashed /wp-admin/admin.php?page=wp_trashed_mails | 960 | 2.24 | 31.64 | 36.08 |
WP Mail /wp-admin/options-general.php?page=wp_mail_settings | 898 | 2.19 | 24.68 | 22.51 |
Draft /wp-admin/admin.php?page=wp_draft_mails | 949 | 2.24 | 31.30 | 34.31 |
Sent Messages /wp-admin/admin.php?page=wp_sent_mails | 948 | 2.25 | 32.29 | 34.51 |
WP Mail /wp-admin/admin.php?page=wp_mail_dash | 954 | 2.25 | 31.62 | 38.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-mail/wp-mail.php+26
date_default_timezone_set(): Timezone ID '' is invalid
- Zombie tables detected upon uninstall: 1 table
- wp_mail_system
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- wp_mail_options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
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
Almost there, just fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp_mail_dash
- > Notice in wp-content/plugins/wp-mail/wp-mail.php+26
date_default_timezone_set(): Timezone ID '' is invalid
- > GET request to /wp-admin/admin.php?page=wp_mail_view_message
- > Notice in wp-content/plugins/wp-mail/inc/view_message.php+2
Undefined index: mid
- > GET request to /wp-admin/admin.php?page=wp_mail_view_message
- > Notice in wp-content/plugins/wp-mail/inc/view_message.php+2
Undefined index: view
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-mail/wp-mail.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
wp-mail/wp-mail.php Passed 13 tests
The main PHP script in "WP Mail" version 1.3 is automatically included on every request by WordPress
67 characters long description:
User can send and receive emails or messages on a Wordpress Network
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin16,626 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 2 | 263 | 10,972 |
JavaScript | 10 | 390 | 263 | 3,205 |
PHP | 13 | 38 | 113 | 1,348 |
SVG | 2 | 0 | 0 | 928 |
HTML | 1 | 27 | 19 | 173 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 29 | |
▷ Static methods | 12 | 41.38% |
▷ Public methods | 29 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 compressed PNG files occupy 0.04MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/icon.png | 0.35KB | 0.33KB | ▼ 6.16% |
inc/img/bg.png | 38.08KB | 28.53KB | ▼ 25.08% |
inc/img/icheck/grey.png | 1.12KB | 1.45KB | 0.00% |
inc/img/icheck/grey@2x.png | 1.37KB | 2.66KB | 0.00% |