84% custom-new-user-email-template

Code Review | Custom New User Email Template

WordPress plugin Custom New User Email Template scored84%from 54 tests.

About plugin

  • Plugin page: custom-new-user-e...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Oct 31, 2018
  • Latest release: Mar 23, 2023
  • Number of updates: 9
  • Update frequency: every 178.6 days
  • Top authors: logicrays (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,114 total downloads

Benchmarks

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.04MB] [CPU: ▼2.15ms] Passed 4 tests

An overview of server-side resources used by Custom New User Email Template
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.55 ▲3.36
Dashboard /wp-admin3.35 ▲0.0448.66 ▼0.88
Posts /wp-admin/edit.php3.40 ▲0.0446.29 ▼5.35
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.95 ▼3.11
Media Library /wp-admin/upload.php3.27 ▲0.0436.08 ▲0.75
Registration Email /wp-admin/options-general.php?page=custom-new-user-notification3.3138.63

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom New User Email Template
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.17 ▼0.101.94 ▲0.4045.16 ▲3.52
Dashboard /wp-admin2,201 ▲245.61 ▲0.0594.00 ▼3.1541.24 ▲2.22
Posts /wp-admin/edit.php2,106 ▲61.98 ▼0.0635.38 ▼1.6734.32 ▲0.02
Add New Post /wp-admin/post-new.php1,540 ▲1418.32 ▼4.83603.27 ▼60.7774.49 ▲14.77
Media Library /wp-admin/upload.php1,409 ▲64.28 ▲0.0792.89 ▼9.3942.43 ▼0.32
Registration Email /wp-admin/options-general.php?page=custom-new-user-notification1,8988.20181.7865.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-new-user-email-template/admin/includes.php:123
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/custom-new-user-email-template/custom-new-user-template.php:14

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

Optimizations

Plugin configuration 96% from 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
5 plugin tags: new user, welcome mail, user registration, registration email, new user notification

custom-new-user-email-template/custom-new-user-template.php 92% from 13 tests

The primary PHP file in "Custom New User Email Template" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-new-user-email-template.php" instead of "custom-new-user-template.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected179 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP210645170
CSS1639

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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