84% custom-user-emails

Code Review | Custom User Email

WordPress plugin Custom User Email scored84%from 54 tests.

About plugin

  • Plugin page: custom-user-emails
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-4.0
  • WordPress version: 6.3.1
  • First release: Sep 4, 2014
  • Latest release: Sep 5, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: CreativePixelPress (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /4,394 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Custom User Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.10 ▼3.62
Dashboard /wp-admin3.36 ▲0.0250.79 ▼18.78
Posts /wp-admin/edit.php3.41 ▲0.0650.07 ▼3.27
Add New Post /wp-admin/post-new.php5.94 ▲0.0697.58 ▼0.93
Media Library /wp-admin/upload.php3.28 ▲0.0641.66 ▲7.04
Custom User Emails /wp-admin/admin.php?page=cpp_cue3.3135.16

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables
wp_mailer_templates
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Custom User Email
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.38 ▲0.001.67 ▼0.0743.39 ▲5.11
Dashboard /wp-admin2,221 ▲475.63 ▼0.0393.03 ▼5.8038.73 ▼5.78
Posts /wp-admin/edit.php2,123 ▲232.02 ▲0.0440.98 ▼2.3736.96 ▲2.39
Add New Post /wp-admin/post-new.php1,554 ▲2818.22 ▼4.85632.35 ▲5.9671.20 ▲25.83
Media Library /wp-admin/upload.php1,423 ▲234.15 ▼0.10100.64 ▼7.9342.57 ▼0.06
Custom User Emails /wp-admin/admin.php?page=cpp_cue1,5236.01124.1261.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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 50% from 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
Please fix the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/custom-user-emails/includes/password-reminder.php:47
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/custom-user-emails/includes/welcome-email.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-user-emails/useremails.php:16
    • > PHP Notice
      Trying to get property 'base_prefix' of non-object in wp-content/plugins/custom-user-emails/includes/password-reminder.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-user-emails/includes/shortcodes.php:44
    • > PHP Notice
      Trying to get property 'base_prefix' of non-object in wp-content/plugins/custom-user-emails/includes/welcome-email.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: email, welcome email, creativepixelpress, custom email

custom-user-emails/useremails.php 92% from 13 tests

Analyzing the main PHP file in "Custom User Email" version 1.1.1
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-user-emails.php" instead of "useremails.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected460 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4309100460

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected