Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼6.62ms] Passed 4 tests
An overview of server-side resources used by WP Mail SES
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 35.35 ▼3.87 |
Dashboard /wp-admin | 3.55 ▲0.20 | 45.35 ▼13.84 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 44.24 ▲0.55 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 91.93 ▼9.07 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 34.13 ▲0.30 |
WP Mail SES /wp-admin/options-general.php?page=wp-mail-ses/controllers/admin.php | 3.38 | 30.62 |
SES Statistics /wp-admin/index.php?page=wp-mail-ses/controllers/stats.php | 3.38 | 30.33 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
recovery_mode_email_last_sent |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Mail SES
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.25 ▼0.48 | 1.62 ▼0.03 | 41.45 ▲4.85 |
Dashboard /wp-admin | 2,218 ▲41 | 5.54 ▼0.06 | 82.77 ▼6.20 | 39.58 ▼1.27 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.13 ▲0.09 | 37.55 ▲1.63 | 37.66 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,550 ▲14 | 23.03 ▲4.49 | 635.78 ▼1.11 | 49.94 ▼33.34 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.24 ▲0.07 | 98.01 ▼1.23 | 45.07 ▼2.45 |
WP Mail SES /wp-admin/options-general.php?page=wp-mail-ses/controllers/admin.php | 858 | 2.18 | 23.35 | 28.99 |
SES Statistics /wp-admin/index.php?page=wp-mail-ses/controllers/stats.php | 712 | 1.51 | 6.39 | 19.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/index.php?page=wp-mail-ses/controllers/stats.php
- > Error in wp-content/plugins/wp-mail-ses/controllers/class-wp-mail-ses-statistics.php+29
Uncaught Error: Call to a member function getSendQuota() on null in wp-content/plugins/wp-mail-ses/controllers/class-wp-mail-ses-statistics.php:29
Stack trace:
#0 wp-content/plugins/wp-mail-ses/controllers/class-wp-mail-ses-statistics.php(16): WP_Mail_SES_Statistics->index()
#1 wp-content/plugins/wp-mail-ses/models/class-wp-mail-ses.php(149): WP_Mail_SES_Statistics->handle()
#2 wp-includes/class-wp-hook.php(310): WP_Mail_SES->controller_statistics()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/index.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
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 fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-mail-ses/views/settings/index.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-mail-ses/views/statistics/index.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-mail-ses/models/class-wp-mail-ses.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: mail, ses, wp_mail
wp-mail-ses/wp-mail-ses.php Passed 13 tests
"WP Mail SES" version 0.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Uses Amazon's Simple Email Service (SES) to send emails
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
There were no executable files found in this plugin1,213 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 282 | 446 | 1,175 |
Markdown | 1 | 4 | 0 | 17 |
JSON | 1 | 0 | 0 | 11 |
XML | 1 | 3 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 30.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 2 | 33.33% |
Methods | 90 | |
▷ Static methods | 3 | 3.33% |
▷ Public methods | 84 | 93.33% |
▷ Protected methods | 2 | 2.22% |
▷ Private methods | 4 | 4.44% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected