Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.73MB] [CPU: ▼3.09ms] Passed 4 tests
Analyzing server-side resources used by FluentSMTP - WP Mail SMTP, Amazon SES, SendGrid, MailGun and Any SMTP Connector Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 47.30 ▲2.98 |
Dashboard /wp-admin | 4.17 ▲0.83 | 56.65 ▼9.46 |
Posts /wp-admin/edit.php | 4.10 ▲0.75 | 54.37 ▲4.33 |
Add New Post /wp-admin/post-new.php | 6.64 ▲0.75 | 91.38 ▼10.22 |
Media Library /wp-admin/upload.php | 3.97 ▲0.75 | 49.06 ▲11.23 |
Fluent SMTP /wp-admin/options-general.php?page=fluent-mail | 4.08 | 43.08 |
Server storage [IO: ▲7.20MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 573 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_fsmpt_email_logs |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for FluentSMTP - WP Mail SMTP, Amazon SES, SendGrid, MailGun and Any SMTP Connector Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲184 | 13.28 ▼0.99 | 1.88 ▼0.04 | 42.04 ▲0.36 |
Dashboard /wp-admin | 2,330 ▲139 | 4.86 ▼0.99 | 102.05 ▼16.11 | 39.05 ▼2.77 |
Posts /wp-admin/edit.php | 2,114 ▲10 | 1.98 ▼0.07 | 35.96 ▼1.79 | 33.39 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,560 ▲29 | 23.16 ▲0.12 | 637.31 ▲8.77 | 62.23 ▲4.12 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.09 ▼0.09 | 111.90 ▼5.36 | 49.24 ▲3.71 |
Fluent SMTP /wp-admin/options-general.php?page=fluent-mail | 1,162 | 6.92 | 241.97 | 64.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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_fsmpt_email_logs
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/fluent-smtp/app/views/admin/email_text.php
- > /wp-content/plugins/fluent-smtp/app/views/admin/menu.php
- > /wp-content/plugins/fluent-smtp/app/views/admin/digest_email.php
- 289× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FluentSmtpLib\\PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fluent-smtp/includes/libs/google-api-client/build/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'FluentSmtpLib\\Google\\Auth\\CredentialsLoader' not found in wp-content/plugins/fluent-smtp/includes/libs/google-api-client/build/vendor/google/auth/src/Credentials/UserRefreshCredentials.php:34
- > PHP Fatal error
Uncaught Error: Class 'FluentSmtpLib\\Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/fluent-smtp/includes/libs/google-api-client/build/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php:23
- > PHP Notice
Undefined variable: connection in wp-content/plugins/fluent-smtp/app/views/admin/ses_connection_info.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'FluentSmtpLib\\Google\\AuthHandler\\Guzzle6AuthHandler' not found in wp-content/plugins/fluent-smtp/includes/libs/google-api-client/build/vendor/google/apiclient/src/AuthHandler/Guzzle7AuthHandler.php:23
- > PHP Fatal error
Trait 'FluentMail\\App\\Services\\Mailer\\ValidatorTrait' not found in wp-content/plugins/fluent-smtp/app/Services/Mailer/Providers/AmazonSes/ValidatorTrait.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'FluentSmtpLib\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/fluent-smtp/includes/libs/google-api-client/build/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php:25
- > PHP Parse error
syntax error, unexpected '|', expecting '{' in wp-content/plugins/fluent-smtp/includes/libs/google-api-client/build/vendor/symfony/polyfill-intl-idn/bootstrap80.php on line 120
- > PHP Fatal error
Uncaught Error: Interface 'FluentSmtpLib\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/fluent-smtp/includes/libs/google-api-client/build/vendor/guzzlehttp/psr7/src/LimitStream.php:11
- > PHP Fatal error
Uncaught Error: Class 'FluentSmtpLib\\Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/fluent-smtp/includes/libs/google-api-client/build/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
fluent-smtp/fluent-smtp.php Passed 13 tests
The main PHP script in "FluentSMTP - WP Mail SMTP, Amazon SES, SendGrid, MailGun and Any SMTP Connector Plugin" version 2.2.6 is automatically included on every request by WordPress
50 characters long description:
The Ultimate SMTP Connection Plugin for WordPress.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected91,909 lines of code in 536 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 501 | 29,292 | 44,144 | 78,526 |
JavaScript | 10 | 2,555 | 2,521 | 11,342 |
JSON | 6 | 0 | 0 | 1,302 |
PO File | 1 | 201 | 225 | 551 |
XML | 1 | 0 | 0 | 77 |
CSS | 1 | 4 | 0 | 32 |
Bourne Shell | 1 | 3 | 4 | 31 |
YAML | 1 | 2 | 0 | 25 |
SVG | 13 | 0 | 0 | 13 |
Dockerfile | 1 | 8 | 0 | 10 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 18.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 634.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 82 | |
Interfaces | 40 | |
Traits | 24 | |
Classes | 406 | |
▷ Abstract classes | 11 | 2.71% |
▷ Concrete classes | 395 | 97.29% |
▷ Final classes | 28 | 7.09% |
Methods | 3,631 | |
▷ Static methods | 317 | 8.73% |
▷ Public methods | 2,955 | 81.38% |
▷ Protected methods | 359 | 9.89% |
▷ Private methods | 317 | 8.73% |
Functions | 270 | |
▷ Named functions | 93 | 34.44% |
▷ Anonymous functions | 177 | 65.56% |
Constants | 538 | |
▷ Global constants | 114 | 21.19% |
▷ Class constants | 424 | 78.81% |
▷ Public constants | 424 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/fluentsmtp.png | 13.44KB | 7.81KB | ▼ 41.88% |
assets/images/contributors.png | 82.09KB | 25.04KB | ▼ 69.50% |
assets/images/fluentsmtp-white.png | 31.66KB | 13.77KB | ▼ 56.50% |
assets/images/mail_signature.png | 6.78KB | 5.27KB | ▼ 22.31% |