Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.34MB] [CPU: ▲0.59ms] 75% from 4 tests
Analyzing server-side resources used by SMTP.com
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,164.60ms on /wp-admin/options-general.php?page=smtpcommail-setting)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 45.95 ▲6.67 |
Dashboard /wp-admin | 3.68 ▲0.37 | 49.42 ▲1.75 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 47.40 ▲1.78 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 93.57 ▼7.70 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 41.10 ▲6.53 |
SMTP.com /wp-admin/options-general.php?page=smtpcommail-setting | 4.53 | 1,164.60 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 463 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_smtp_com_mail |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SMTP.com
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 13.42 ▼0.96 | 1.76 ▲0.17 | 42.83 ▲2.97 |
Dashboard /wp-admin | 2,213 ▲28 | 5.22 ▲0.32 | 104.37 ▼1.61 | 37.29 ▼3.86 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.25 ▲0.12 | 36.89 ▲0.65 | 33.81 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,365 ▼177 | 17.21 ▼0.90 | 566.39 ▼79.68 | 45.47 ▼11.82 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.29 ▲0.10 | 115.10 ▲0.33 | 46.53 ▼0.15 |
SMTP.com /wp-admin/options-general.php?page=smtpcommail-setting | 1,150 | 1.93 | 29.58 | 28.42 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=smtpcommail-setting
- > Warning in wp-content/plugins/smtpcom/includes/settings.php+235
fsockopen(): unable to connect to send.smtp.com:25 (Connection timed out)
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 items
- 210× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/smtpcom/vendor/php-http/client-common/src/Plugin/DecoderPlugin.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/smtpcom/vendor/php-http/client-common/src/Plugin/CookiePlugin.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/smtpcom/vendor/php-http/client-common/src/Plugin/AddPathPlugin.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Buzz\\Middleware\\MiddlewareInterface' not found in wp-content/plugins/smtpcom/vendor/kriswallsmith/buzz/lib/Middleware/ContentTypeMiddleware.php:12
- > PHP Fatal error
Cannot declare class JsonException, because the name is already in use in wp-content/plugins/smtpcom/vendor/symfony/polyfill-php73/Resources/stubs/JsonException.php on line 12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/smtpcom/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/smtpcom/vendor/smtpcom/smtpcom-php/tests/Response/ReportsIndexTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/smtpcom/vendor/smtpcom/smtpcom-php/tests/Response/CallbackIndexTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Http\\Client\\Exception\\TransferException' not found in wp-content/plugins/smtpcom/vendor/php-http/client-common/src/Exception/HttpClientNotFoundException.php:14
- > PHP Fatal error
Uncaught Error: Class 'Http\\Client\\Common\\HttpClientPool\\HttpClientPool' not found in wp-content/plugins/smtpcom/vendor/php-http/client-common/src/HttpClientPool/LeastUsedClientPool.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
smtpcom/smtp-com-mail.php 92% from 13 tests
"SMTP.com" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("smtpcom.php" instead of "smtp-com-mail.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin21,635 lines of code in 414 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 345 | 4,373 | 10,904 | 16,888 |
JSON | 23 | 0 | 0 | 2,160 |
Markdown | 33 | 1,061 | 0 | 1,982 |
JavaScript | 2 | 27 | 4 | 269 |
CSS | 2 | 4 | 5 | 225 |
XML | 4 | 0 | 0 | 58 |
YAML | 4 | 13 | 24 | 45 |
Bourne Shell | 1 | 4 | 4 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 213.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 74 | |
Interfaces | 46 | |
Traits | 13 | |
Classes | 263 | |
▷ Abstract classes | 8 | 3.04% |
▷ Concrete classes | 255 | 96.96% |
▷ Final classes | 93 | 36.47% |
Methods | 1,387 | |
▷ Static methods | 203 | 14.64% |
▷ Public methods | 1,222 | 88.10% |
▷ Protected methods | 47 | 3.39% |
▷ Private methods | 118 | 8.51% |
Functions | 86 | |
▷ Named functions | 36 | 41.86% |
▷ Anonymous functions | 50 | 58.14% |
Constants | 115 | |
▷ Global constants | 5 | 4.35% |
▷ Class constants | 110 | 95.65% |
▷ Public constants | 103 | 93.64% |
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
14 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-bg_glass_75_d0e5f5_1x400.png | 0.38KB | 0.16KB | ▼ 59.39% |
admin/css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.38KB | 0.15KB | ▼ 61.54% |
admin/css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png | 0.38KB | 0.13KB | ▼ 66.24% |
admin/css/images/ui-icons_6da8d5_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
admin/images/logoSMTP.png | 2.73KB | 1.54KB | ▼ 43.69% |