90% htp-smtp

Code Review | HTP SMTP - WP Mail SMTP, Amazon SES, SendGrid, MailGun and Any SMTP Connector Plugin

WordPress plugin HTP SMTP - WP Mail SMTP, Amazon SES, SendGrid, MailGun and Any SMTP Connector Plugin scored90%from 54 tests.

About plugin

  • Plugin page: htp-smtp
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 30, 2021
  • Latest release: Jun 4, 2022
  • Number of updates: 10
  • Update frequency: every 31.1 days
  • Top authors: hutanatu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /994 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼6.17ms] Passed 4 tests

Analyzing server-side resources used by HTP SMTP - WP Mail SMTP, Amazon SES, SendGrid, MailGun and Any SMTP Connector Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.2344.71 ▼0.35
Dashboard /wp-admin3.81 ▲0.1850.96 ▼16.05
Posts /wp-admin/edit.php3.86 ▲0.1853.33 ▼0.26
Add New Post /wp-admin/post-new.php6.33 ▲0.1897.53 ▼8.03
Media Library /wp-admin/upload.php3.67 ▲0.1842.99 ▲3.22

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
htp-smtp
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for HTP SMTP - WP Mail SMTP, Amazon SES, SendGrid, MailGun and Any SMTP Connector Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.24 ▲0.292.01 ▲0.1541.85 ▼3.84
Dashboard /wp-admin2,214 ▲375.64 ▼0.0584.82 ▼9.4538.44 ▼5.38
Posts /wp-admin/edit.php2,116 ▲132.03 ▲0.0639.76 ▼0.0035.68 ▼1.65
Add New Post /wp-admin/post-new.php1,558 ▲1823.08 ▼0.19595.02 ▼54.6556.45 ▲11.04
Media Library /wp-admin/upload.php1,416 ▲194.22 ▲0.03103.29 ▲0.5843.61 ▲0.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: wp mail smtp, mail, smtp, mail smtp, gmail...

htp-smtp/htp-smtp.php Passed 13 tests

"HTP SMTP - WP Mail SMTP, Amazon SES, SendGrid, MailGun and Any SMTP Connector Plugin" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
106 characters long description:
HTP SMTP can help us to send emails via SMTP instead of the PHP mail() function and email logger built-in.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,591 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP152441681,266
PO File4140156320
JSON1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity22.25
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods63
▷ Static methods2234.92%
▷ Public methods6095.24%
▷ Protected methods00.00%
▷ Private methods34.76%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants10
▷ Global constants330.00%
▷ Class constants770.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin