90% send-plain-mail

Code Review | Send Plain Mail

WordPress plugin Send Plain Mail scored90%from 54 tests.

About plugin

  • Plugin page: send-plain-mail
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 29, 2020
  • Latest release: Mar 25, 2020
  • Number of updates: 16
  • Update frequency: every 1.6 days
  • Top authors: plainplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /426 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.41ms] Passed 4 tests

Analyzing server-side resources used by Send Plain Mail
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.75 ▼6.07
Dashboard /wp-admin3.35 ▲0.0551.17 ▼1.56
Posts /wp-admin/edit.php3.47 ▲0.1153.19 ▲2.46
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.75 ▼11.84
Media Library /wp-admin/upload.php3.27 ▲0.0537.57 ▲1.82
PlainMail Options /wp-admin/admin.php?page=plain-mail-options3.2432.67
PlainMail /wp-admin/admin.php?page=plain-mail3.2832.66

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Send Plain Mail
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.23 ▼0.051.90 ▲0.1040.67 ▼6.36
Dashboard /wp-admin2,225 ▲455.57 ▼0.0984.44 ▼3.1439.18 ▼3.81
Posts /wp-admin/edit.php2,127 ▲241.96 ▼0.0439.57 ▲0.5139.94 ▲3.44
Add New Post /wp-admin/post-new.php1,548 ▲2223.45 ▼0.17685.40 ▲32.7357.89 ▲1.42
Media Library /wp-admin/upload.php1,427 ▲274.26 ▲0.0893.92 ▼7.4341.15 ▼3.57
PlainMail Options /wp-admin/admin.php?page=plain-mail-options8072.0324.3920.01
PlainMail /wp-admin/admin.php?page=plain-mail1,4015.97123.2056.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: email, list, mail, simple, send...

send-plain-mail/send-plain-mail.php Passed 13 tests

"Send Plain Mail" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
Easily send emails from your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin707 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods110.00%
▷ Public methods110.00%
▷ Protected methods00.00%
▷ Private methods990.00%
▷ Named functions00.00%
▷ Anonymous functions10100.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin