84% wp-simple-mail-sender

Code Review | WP Simple Mail Sender

WordPress plugin WP Simple Mail Sender scored84%from 54 tests.

About plugin

  • Plugin page: wp-simple-mail-se...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.1
  • WordPress version: 6.3.1
  • First release: Aug 8, 2014
  • Latest release: Mar 2, 2019
  • Number of updates: 22
  • Update frequency: every 76.0 days
  • Top authors: Tmeister (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

5,000+ active /34,089 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by WP Simple Mail Sender
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.61 ▼0.14
Dashboard /wp-admin3.36 ▲0.0650.26 ▼6.40
Posts /wp-admin/edit.php3.47 ▲0.1247.86 ▼6.04
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.87 ▼12.53
Media Library /wp-admin/upload.php3.28 ▲0.0538.01 ▲1.93
WP Single Email /wp-admin/options-general.php?page=wp-simple-mail-sender3.2533.22

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Simple Mail Sender
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.11 ▼0.241.97 ▲0.0244.49 ▲0.21
Dashboard /wp-admin2,199 ▲195.63 ▼0.0585.46 ▼15.2143.25 ▼0.70
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0335.54 ▼1.1435.96 ▼0.42
Add New Post /wp-admin/post-new.php1,529 ▼723.22 ▲0.08666.15 ▼8.1853.91 ▼2.07
Media Library /wp-admin/upload.php1,401 ▼24.19 ▲0.07103.70 ▼5.8445.31 ▼1.05
WP Single Email /wp-admin/options-general.php?page=wp-simple-mail-sender8142.0025.1426.19

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-simple-mail-sender/admin/views/admin.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: from name, mail, outgoing mail, email, email from address...

wp-simple-mail-sender/wp-simple-mail-sender.php 85% from 13 tests

The main PHP file in "WP Simple Mail Sender" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 168 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected191 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP587241191
CSS1010

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.50
▷ Minimum class complexity10.00
▷ Maximum class complexity15.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods210.53%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.21MB with 0.16MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png217.69KB58.72KB▼ 73.02%