90% disable-new-user-notification

Code Review | Disable New User Notification

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

About plugin

  • Plugin page: disable-new-user-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 6.3.1
  • First release: Sep 5, 2015
  • Latest release: May 20, 2016
  • Number of updates: 9
  • Update frequency: every 28.7 days
  • Top authors: mikakaltoft (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /4,082 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.00MB] [CPU: ▼4.51ms] Passed 4 tests

This is a short check of server-side resources used by Disable New User Notification
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0051.78 ▲6.19
Dashboard /wp-admin3.35 ▲0.0156.01 ▼1.29
Posts /wp-admin/edit.php3.40 ▲0.0052.40 ▼2.71
Add New Post /wp-admin/post-new.php5.93 ▲0.0090.34 ▼12.33
Media Library /wp-admin/upload.php3.27 ▲0.0039.00 ▼1.72

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Disable New User Notification
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.64 ▲0.371.82 ▲0.0745.70 ▲3.73
Dashboard /wp-admin2,189 ▲125.56 ▲0.0289.25 ▼10.7939.19 ▼6.63
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0236.74 ▼2.8334.47 ▼2.36
Add New Post /wp-admin/post-new.php1,531 ▲323.13 ▼0.10671.15 ▼37.1653.67 ▼13.20
Media Library /wp-admin/upload.php1,403 ▲34.13 ▼0.07101.40 ▼6.8544.79 ▼3.05

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 does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected 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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: email, user, notification, registration

disable-new-user-notification/disable-new-user-notification.php Passed 13 tests

The principal PHP file in "Disable New User Notification" v. 1.1 is loaded by WordPress automatically on each request
109 characters long description:
Disable the user notification email that is sent to the user, with a password reset link, after registration.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14146

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin