72% user-password-reset

Code Review | User Password Reset

WordPress plugin User Password Reset scored72%from 54 tests.

About plugin

  • Plugin page: user-password-reset
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Sep 20, 2017
  • Latest release: Jun 2, 2019
  • Number of updates: 8
  • Update frequency: every 77.5 days
  • Top authors: techdabang (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,226 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by User Password Reset
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.20 ▼4.60
Dashboard /wp-admin3.32 ▲0.0247.50 ▼7.69
Posts /wp-admin/edit.php3.38 ▲0.0250.12 ▼0.79
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.09 ▼1.78
Media Library /wp-admin/upload.php3.25 ▲0.0137.05 ▲1.74
Author /wp-admin/admin.php?page=user_password_reset_author3.2129.16
User Password Reset /wp-admin/admin.php?page=user_password_reset3.2430.11

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by User Password Reset
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.77 ▲0.421.82 ▲0.0145.18 ▼0.11
Dashboard /wp-admin2,227 ▲505.59 ▼0.0890.75 ▼8.2543.83 ▼1.08
Posts /wp-admin/edit.php2,132 ▲322.01 ▼0.0241.40 ▲5.0136.44 ▼0.23
Add New Post /wp-admin/post-new.php1,550 ▲1023.06 ▲0.04671.46 ▼52.9454.65 ▼14.89
Media Library /wp-admin/upload.php1,432 ▲324.17 ▼0.0093.31 ▼16.2145.52 ▼0.35
Author /wp-admin/admin.php?page=user_password_reset_author8382.1124.7726.36
User Password Reset /wp-admin/admin.php?page=user_password_reset1,0131.6625.3927.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=user_password_reset
    • > Notice in wp-content/plugins/user-password-reset/admin/tuning.php+59
    Undefined index: upr-searchUser

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/user-password-reset/user-password-reset.php
    • > /wp-content/plugins/user-password-reset/admin/author.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-password-reset/admin/menu.php:3

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 issues were found


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in user-password-reset/assets to your readme.txt
  • Tags: There are too many tags (19 tag instead of maximum 10)
You can take inspiration from this readme.txt

user-password-reset/user-password-reset.php Passed 13 tests

The entry point to "User Password Reset" version 1.0 is a PHP file that has certain tags in its header comment area
66 characters long description:
reset all and selected users password and also search user by role

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected336 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin