90% sar-friendly-smtp

Code Review | SAR Friendly SMTP

WordPress plugin SAR Friendly SMTP scored90%from 54 tests.

About plugin

  • Plugin page: sar-friendly-smtp
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2015
  • Latest release: Oct 5, 2023
  • Number of updates: 51
  • Update frequency: every 62.4 days
  • Top authors: samuelaguilera (100%)

Code review

54 tests

User reviews

43 reviews

Install metrics

3,000+ active /30,418 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼1.24ms] Passed 4 tests

A check of server-side resources used by SAR Friendly SMTP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1342.79 ▲6.38
Dashboard /wp-admin3.45 ▲0.1547.31 ▼0.40
Posts /wp-admin/edit.php3.57 ▲0.2148.71 ▲4.68
Add New Post /wp-admin/post-new.php6.03 ▲0.1497.06 ▼12.62
Media Library /wp-admin/upload.php3.38 ▲0.1437.35 ▲3.39
Send Email Test /wp-admin/admin.php?page=sar_fsmtp_email_test3.3433.91
Settings /wp-admin/admin.php?page=sar_friendly_smtp3.3431.06

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SAR Friendly SMTP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲7713.24 ▼1.341.86 ▼0.1240.25 ▲0.26
Dashboard /wp-admin2,229 ▲435.80 ▲0.8598.68 ▼8.3337.00 ▼6.65
Posts /wp-admin/edit.php2,112 ▲232.00 ▲0.0237.60 ▲1.4035.09 ▼1.87
Add New Post /wp-admin/post-new.php1,533 ▼917.45 ▼0.51643.16 ▼8.0654.41 ▼9.86
Media Library /wp-admin/upload.php1,414 ▲294.21 ▼0.02108.19 ▼1.0344.01 ▲0.49
Send Email Test /wp-admin/admin.php?page=sar_fsmtp_email_test8212.0223.3431.72
Settings /wp-admin/admin.php?page=sar_friendly_smtp9132.0524.8132.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output 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
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: phpmailer, sendmail, smtp, notifications, email...

sar-friendly-smtp/sar-friendly-smtp.php Passed 13 tests

The principal PHP file in "SAR Friendly SMTP" v. 1.2.6 is loaded by WordPress automatically on each request
98 characters long description:
A friendly SMTP plugin for WordPress. No third-party, simply using WordPress native possibilities.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected727 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2123173466
PO File15161258
CSS1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin