90% disable-user-registration-notification-emails

Code Review | Disable User Registration Notification Emails

WordPress plugin Disable User Registration Notification Emails scored90%from 54 tests.

About plugin

  • Plugin page: disable-user-regi...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 26, 2016
  • Latest release: Dec 17, 2022
  • Number of updates: 11
  • Update frequency: every 206.7 days
  • Top authors: hearken (63.64%)aspengrovestudios (36.36%)annaqq (18.18%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active /6,232 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.63ms] Passed 4 tests

Analyzing server-side resources used by Disable User Registration Notification Emails
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0050.12 ▲4.98
Dashboard /wp-admin3.57 ▼0.0660.02 ▼7.32
Posts /wp-admin/edit.php3.68 ▲0.0052.47 ▼1.15
Add New Post /wp-admin/post-new.php6.15 ▲0.0087.75 ▼19.03
Media Library /wp-admin/upload.php3.49 ▲0.0043.72 ▲5.14

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

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

Browser metrics Passed 4 tests

Disable User Registration Notification Emails: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.211.70 ▼0.1642.44 ▼1.59
Dashboard /wp-admin2,198 ▲215.62 ▼0.0283.47 ▼6.6541.23 ▼2.43
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0339.75 ▲1.3336.42 ▼0.24
Add New Post /wp-admin/post-new.php1,526 ▼1317.43 ▼5.71676.75 ▲12.2963.98 ▲1.85
Media Library /wp-admin/upload.php1,397 ▼34.25 ▲0.11115.59 ▲0.5347.29 ▼2.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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)
Good news, no errors were detected

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

disable-user-registration-notification-emails/disable-user-registration-notification-emails.php Passed 13 tests

The entry point to "Disable User Registration Notification Emails" version 1.0.1 is a PHP file that has certain tags in its header comment area
113 characters long description:
Turns off the notification sent to the admin email when a new user account is registered. Works with WP >= 4.6.0.

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
There were no executable files found in this plugin18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151318

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There were not PNG files found in your plugin