Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.38MB] [CPU: ▲11.18ms] Passed 4 tests
Server-side resources used by YaySMTP - Simple WP SMTP Mail
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.83 ▲2.37 | 56.27 ▲13.35 |
Dashboard /wp-admin | 5.76 ▲2.41 | 71.38 ▲13.11 |
Posts /wp-admin/edit.php | 5.81 ▲2.45 | 65.88 ▲16.14 |
Add New Post /wp-admin/post-new.php | 8.28 ▲2.39 | 101.35 ▲2.10 |
Media Library /wp-admin/upload.php | 5.60 ▲2.37 | 52.71 ▲17.30 |
Other plugins /wp-admin/admin.php?page=yaycommerce-other-plugins | 5.59 | 52.39 |
YaySMTP /wp-admin/admin.php?page=yaysmtp | 6.69 | 72.20 |
Help /wp-admin/admin.php?page=yaycommerce-help | 5.46 | 39.66 |
Server storage [IO: ▲5.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 813 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_yaysmtp_event_email_opened |
wp_yaysmtp_email_logs |
wp_yaysmtp_event_email_clicked_link |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
yaysmtp_settings |
yay_smtp_version |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YaySMTP - Simple WP SMTP Mail
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,229 ▲482 | 16.99 ▲2.34 | 53.53 ▲51.66 | 28.75 ▼13.61 |
Dashboard /wp-admin | 2,634 ▲454 | 7.59 ▲1.93 | 187.12 ▲97.90 | 52.91 ▲15.91 |
Posts /wp-admin/edit.php | 2,332 ▲232 | 3.91 ▲1.89 | 54.21 ▲13.47 | 29.58 ▼5.24 |
Add New Post /wp-admin/post-new.php | 1,565 ▲34 | 23.54 ▲0.72 | 649.48 ▲9.80 | 35.82 ▼12.84 |
Media Library /wp-admin/upload.php | 1,472 ▲72 | 5.11 ▲0.99 | 88.97 ▼7.14 | 41.63 ▼0.89 |
Other plugins /wp-admin/admin.php?page=yaycommerce-other-plugins | 1,311 | 3.73 | 58.03 | 30.35 |
YaySMTP /wp-admin/admin.php?page=yaysmtp | 5,763 | 4.68 | 92.51 | 37.44 |
Help /wp-admin/admin.php?page=yaycommerce-help | 28 | 0.41 | 0.06 | 3.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_yaysmtp_email_logs
- wp_yaysmtp_event_email_opened
- wp_yaysmtp_event_email_clicked_link
- Zombie WordPress options detected upon uninstall: 8 options
- yay_smtp_version
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- yaysmtp_settings
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=yaysmtp
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
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
Almost there! Just fix the following items
- 351× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/yaysmtp/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/yaysmtp/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/yaysmtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php:18
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/yaysmtp/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php:25
- > PHP Fatal error
Uncaught Error: Interface 'YaySMTP\\Aws3\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/yaysmtp/vendor_amazon/GuzzleHttp/Promise/FulfilledPromise.php:11
- > PHP Warning
Class 'Google\\Client' not found in wp-content/plugins/yaysmtp/vendor/google/apiclient/src/aliases.php on line 33
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\CredentialsLoader' not found in wp-content/plugins/yaysmtp/vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php:36
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/yaysmtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Draft.php:18
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/yaysmtp/vendor/guzzlehttp/promises/src/RejectedPromise.php:11
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/yaysmtp/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=yaycommerce-help
- > Network (severe)
wp-admin/admin.php?page=yaycommerce-help - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
yaysmtp/yay-smtp.php 92% from 13 tests
Analyzing the main PHP file in "YaySMTP - Simple WP SMTP Mail" version 2.5.5
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("yaysmtp.php" instead of "yay-smtp.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected102,802 lines of code in 777 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 713 | 10,976 | 39,821 | 90,624 |
Markdown | 27 | 1,566 | 0 | 4,715 |
CSS | 4 | 228 | 52 | 2,580 |
JavaScript | 8 | 230 | 171 | 2,430 |
JSON | 17 | 0 | 0 | 1,766 |
PO File | 2 | 186 | 206 | 553 |
Python | 1 | 22 | 25 | 72 |
YAML | 1 | 2 | 0 | 25 |
XML | 1 | 0 | 0 | 15 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
SVG | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 17.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 633.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 84 | |
Interfaces | 63 | |
Traits | 25 | |
Classes | 558 | |
▷ Abstract classes | 19 | 3.41% |
▷ Concrete classes | 539 | 96.59% |
▷ Final classes | 36 | 6.68% |
Methods | 4,682 | |
▷ Static methods | 566 | 12.09% |
▷ Public methods | 3,733 | 79.73% |
▷ Protected methods | 275 | 5.87% |
▷ Private methods | 674 | 14.40% |
Functions | 464 | |
▷ Named functions | 141 | 30.39% |
▷ Anonymous functions | 323 | 69.61% |
Constants | 609 | |
▷ Global constants | 75 | 12.32% |
▷ Class constants | 534 | 87.68% |
▷ Public constants | 534 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/postsmtp.png | 3.38KB | 3.49KB | 0.00% |
assets/img/mailbank.png | 1.21KB | 1.25KB | 0.00% |
assets/img/wpsmtp.png | 3.05KB | 3.19KB | 0.00% |
assets/img/mail-icon.png | 0.32KB | 0.32KB | 0.00% |
assets/img/failed-icon.png | 0.36KB | 0.37KB | 0.00% |