90% disable-new-user-notifications

Code Review | Disable New User Notification Emails

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

About plugin

  • Plugin page: disable-new-user-...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Sep 10, 2012
  • Latest release: Jul 19, 2021
  • Number of updates: 13
  • Update frequency: every 248.9 days
  • Top authors: peterwilsoncc (46.15%)griffinjt (46.15%)deb255 (23.08%)

Code review

54 tests

User reviews

16 reviews

Install metrics

8,000+ active /69,836 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: ▼9.75ms] Passed 4 tests

This is a short check of server-side resources used by Disable New User Notification Emails
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.43 ▼5.55
Dashboard /wp-admin3.35 ▲0.0446.74 ▼4.71
Posts /wp-admin/edit.php3.40 ▲0.0449.57 ▼2.93
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.50 ▼25.82
Media Library /wp-admin/upload.php3.27 ▲0.0439.82 ▲2.51

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable New User Notification Emails
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.54 ▼1.031.84 ▲0.1144.68 ▼0.44
Dashboard /wp-admin2,209 ▲215.85 ▲0.9797.16 ▼8.5243.57 ▲1.76
Posts /wp-admin/edit.php2,086 ▼02.00 ▼0.0035.70 ▼2.3834.08 ▼2.57
Add New Post /wp-admin/post-new.php1,533 ▲1422.88 ▼0.53677.61 ▼7.3649.70 ▼12.59
Media Library /wp-admin/upload.php1,382 ▼34.25 ▲0.0398.68 ▼14.9341.45 ▼8.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, 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 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: email, disable notification, disable admin notifications, disable notifications, disable user notification emails...

disable-new-user-notifications/cwwp-disable-new-user-emails.php 92% from 13 tests

Analyzing the main PHP file in "Disable New User Notification Emails" version 2.0.0
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disable-new-user-notifications.php" instead of "cwwp-disable-new-user-emails.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
There were no executable files found in this plugin118 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP238157118

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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
Namespaces1
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin