Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.49ms] Passed 4 tests
Server-side resources used by WP Mail Logger
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.23 ▼0.12 |
Dashboard /wp-admin | 3.46 ▲0.11 | 44.16 ▼19.71 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.33 ▲0.66 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 88.84 ▼2.80 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.83 ▲2.39 |
Dashboard /wp-admin/admin.php?page=rtm-mail-dashboard | 3.51 | 36.58 |
Debug Events /wp-admin/admin.php?page=rtm-mail-events | 3.34 | 31.56 |
Settings /wp-admin/admin.php?page=rtm-mail-settings | 3.37 | 31.01 |
Details /wp-admin/admin.php?page=rtm-mail-details | 3.39 | 32.37 |
Overview /wp-admin/admin.php?page=rtm-mail-overview | 3.45 | 32.06 |
Mail SMTP /wp-admin/admin.php?page=rtm-mail-mailsmtp | 3.36 | 33.57 |
Server storage [IO: ▲1.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 333 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_rtm_mail_logs |
New WordPress options |
---|
rtm_mail_migration_version |
rtm_mail_smtp_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
rtm_mail_smtp_key |
widget_recent-posts |
rtm_mail_settings |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
WP Mail Logger: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.31 ▼1.07 | 1.72 ▲0.06 | 38.67 ▼1.97 |
Dashboard /wp-admin | 2,245 ▲60 | 5.84 ▲0.95 | 102.80 ▼0.94 | 37.13 ▼4.63 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.02 ▼0.00 | 40.45 ▲5.63 | 34.77 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,573 ▲31 | 17.89 ▼0.67 | 595.42 ▼49.18 | 47.71 ▼3.37 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.26 ▲0.08 | 94.94 ▼7.96 | 42.07 ▼3.67 |
Dashboard /wp-admin/admin.php?page=rtm-mail-dashboard | 1,443 | 2.21 | 34.57 | 80.41 |
Debug Events /wp-admin/admin.php?page=rtm-mail-events | 1,030 | 2.09 | 39.24 | 39.02 |
Settings /wp-admin/admin.php?page=rtm-mail-settings | 1,590 | 2.23 | 30.24 | 49.92 |
Details /wp-admin/admin.php?page=rtm-mail-details | 831 | 2.08 | 25.69 | 21.92 |
Overview /wp-admin/admin.php?page=rtm-mail-overview | 1,496 | 2.51 | 32.06 | 27.30 |
Mail SMTP /wp-admin/admin.php?page=rtm-mail-mailsmtp | 1,165 | 2.32 | 28.54 | 37.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_rtm_mail_logs
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- rtm_mail_smtp_key
- rtm_mail_migration_version
- rtm_mail_smtp_settings
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 221× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/rtm-mail-wp-mail-logger/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php:28
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rtm-mail-wp-mail-logger/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/rtm-mail-wp-mail-logger/vendor/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php:36
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rtm-mail-wp-mail-logger/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rtm-mail-wp-mail-logger/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php:11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rtm-mail-wp-mail-logger/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rtm-mail-wp-mail-logger/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rtm-mail-wp-mail-logger/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rtm-mail-wp-mail-logger/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/rtm-mail-wp-mail-logger/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: mailer, wordpress logger, wordpress smtp, mail logger, logger...
rtm-mail-wp-mail-logger/rtm-mail.php 77% from 13 tests
"WP Mail Logger" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("rtm-mail-wp-mail-logger.php" instead of "rtm-mail.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin17,956 lines of code in 315 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 286 | 3,447 | 7,077 | 13,845 |
JSON | 9 | 0 | 0 | 1,884 |
CSS | 1 | 276 | 13 | 1,161 |
Markdown | 9 | 283 | 0 | 684 |
JavaScript | 3 | 30 | 10 | 214 |
YAML | 5 | 30 | 0 | 118 |
XML | 2 | 2 | 0 | 50 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 16 | |
Traits | 6 | |
Classes | 249 | |
▷ Abstract classes | 9 | 3.61% |
▷ Concrete classes | 240 | 96.39% |
▷ Final classes | 18 | 7.50% |
Methods | 981 | |
▷ Static methods | 60 | 6.12% |
▷ Public methods | 694 | 70.74% |
▷ Protected methods | 182 | 18.55% |
▷ Private methods | 105 | 10.70% |
Functions | 62 | |
▷ Named functions | 4 | 6.45% |
▷ Anonymous functions | 58 | 93.55% |
Constants | 117 | |
▷ Global constants | 5 | 4.27% |
▷ Class constants | 112 | 95.73% |
▷ Public constants | 112 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.50MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 19.66KB | 9.73KB | ▼ 50.53% |
assets/images/rtm-logo.png | 10.07KB | 3.83KB | ▼ 61.94% |
assets/images/event-overview.png | 251.04KB | 79.95KB | ▼ 68.15% |
assets/images/event-details.png | 222.49KB | 64.38KB | ▼ 71.06% |
assets/images/logo-icon.png | 11.28KB | 5.54KB | ▼ 50.92% |