90% send-mail-on-user-delete

Code Review | Send Mail on User Delete

WordPress plugin Send Mail on User Delete scored90%from 54 tests.

About plugin

  • Plugin page: send-mail-on-user...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 10, 2016
  • Latest release: Aug 17, 2016
  • Number of updates: 8
  • Update frequency: every 1.0 days
  • Top authors: hussainarsh (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active /827 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.11ms] Passed 4 tests

Server-side resources used by Send Mail on User Delete
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.41 ▼4.48
Dashboard /wp-admin3.32 ▲0.0244.58 ▼5.52
Posts /wp-admin/edit.php3.37 ▲0.0250.06 ▲2.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.32 ▼8.87
Media Library /wp-admin/upload.php3.24 ▲0.0240.98 ▲4.84

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Send Mail on User Delete
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.30 ▼1.081.68 ▲0.0443.27 ▲1.07
Dashboard /wp-admin2,222 ▲304.83 ▼0.12112.65 ▲1.3340.92 ▼2.92
Posts /wp-admin/edit.php2,108 ▲192.02 ▼0.0241.64 ▲3.9036.09 ▲0.49
Add New Post /wp-admin/post-new.php1,527 ▲1317.54 ▼0.01673.27 ▼5.5461.07 ▲1.90
Media Library /wp-admin/upload.php1,407 ▲194.23 ▲0.00108.74 ▲4.6247.14 ▲2.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

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
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
No browser issues were found

Optimizations

Plugin configuration Passed 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
5 plugin tags: user delete, delete, send mail to user, mail, send mail to admin

send-mail-on-user-delete/send-mail-on-user-delete.php Passed 13 tests

The main PHP file in "Send Mail on User Delete" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
102 characters long description:
This plugin is used to send email notification to those users whose account has been deleted by admin.

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
Everything looks great! No dangerous files found in this plugin147 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23817147

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin