84% disable-email-notifications-for-new-user-registration

Code Review | Disable Email Notifications in Wordpress 4.x for new user registration

WordPress plugin Disable Email Notifications in Wordpress 4.x for new user registration scored 84% from 54 tests.

About plugin

  • Plugin page: disable-email-not...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 18, 2015
  • Latest release: Jul 18, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: waqasraza123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,676 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.82ms] Passed 4 tests

An overview of server-side resources used by Disable Email Notifications in Wordpress 4.x for new user registration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.20 ▲4.06
Dashboard /wp-admin3.31 ▲0.0045.00 ▼10.34
Posts /wp-admin/edit.php3.36 ▲0.0043.92 ▼3.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.34 ▼6.58
Media Library /wp-admin/upload.php3.23 ▲0.0033.58 ▼2.60

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Disable Email Notifications in Wordpress 4.x for new user registration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.041.65 ▼0.2742.04 ▼2.87
Dashboard /wp-admin2,206 ▲185.88 ▲0.9793.17 ▼11.5337.82 ▼8.86
Posts /wp-admin/edit.php2,089 ▲212.02 ▼0.0233.49 ▼0.4436.85 ▲1.51
Add New Post /wp-admin/post-new.php1,528 ▲518.53 ▼4.63590.42 ▼97.5951.09 ▼25.67
Media Library /wp-admin/upload.php1,385 ▼34.18 ▲0.0197.21 ▼7.0845.39 ▼1.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/disable-email-notifications-for-new-user-registration/disable.php

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: stop new user registration emails, stop new user emails sent to admin, disable email notifications in wordpress 4x for new user registration, disable new user notification, disable new user registration emails...

disable-email-notifications-for-new-user-registration/disable.php 92% from 13 tests

The entry point to "Disable Email Notifications in Wordpress 4.x for new user registration" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("disable-email-notifications-for-new-user-registration.php" instead of "disable.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1131132

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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
PNG images were not found in this plugin