84% disable-user-password-reset-emails

Code Review | Disable User Password Reset Admin Notifications

WordPress plugin Disable User Password Reset Admin Notifications scored84%from 54 tests.

About plugin

  • Plugin page: disable-user-pass...
  • Plugin version: 1.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2022
  • Latest release: Sep 18, 2023
  • Number of updates: 25
  • Update frequency: every 24.5 days
  • Top authors: cccamuseme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /7,143 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
Installer ran successfully

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

A check of server-side resources used by Disable User Password Reset Admin Notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.57 ▲0.15
Dashboard /wp-admin3.31 ▲0.0144.55 ▼4.65
Posts /wp-admin/edit.php3.36 ▲0.0049.42 ▲5.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.57 ▲11.24
Media Library /wp-admin/upload.php3.23 ▲0.0038.77 ▲3.19

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
myplugin_activation_date
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Disable User Password Reset Admin Notifications: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.32 ▼0.991.75 ▲0.0544.08 ▼1.73
Dashboard /wp-admin2,218 ▲305.79 ▲0.9399.92 ▼17.2243.81 ▼2.90
Posts /wp-admin/edit.php2,103 ▲171.98 ▼0.0539.14 ▲2.8036.04 ▲0.26
Add New Post /wp-admin/post-new.php1,529 ▼417.55 ▼5.62582.94 ▼41.1064.15 ▲10.18
Media Library /wp-admin/upload.php1,406 ▲214.31 ▲0.0397.65 ▼4.5943.16 ▼2.20

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
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • myplugin_activation_date

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/disable-user-password-reset-emails/disable-user-password-reset-emails.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: admin, disable, emails, notifications, users...

disable-user-password-reset-emails/disable-user-password-reset-emails.php 92% from 13 tests

"Disable User Password Reset Admin Notifications" version 1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 183 characters long)

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
Success! There were no dangerous files found in this plugin40 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1374040

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin