84% mass-users-password-reset

Code Review | MASS Users Password Reset

WordPress plugin MASS Users Password Reset scored84%from 54 tests.

About plugin

  • Plugin page: mass-users-passwo...
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.2
  • WordPress version: 6.3.1
  • First release: Aug 28, 2017
  • Latest release: Jul 3, 2023
  • Number of updates: 44
  • Update frequency: every 48.6 days
  • Top authors: krishaweb (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /20,663 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.95ms] Passed 4 tests

Server-side resources used by MASS Users Password Reset
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.73 ▼0.86
Dashboard /wp-admin3.39 ▲0.0943.64 ▼3.01
Posts /wp-admin/edit.php3.44 ▲0.0943.80 ▼3.14
Add New Post /wp-admin/post-new.php5.97 ▲0.0991.58 ▼10.84
Media Library /wp-admin/upload.php3.32 ▲0.0934.90 ▼2.80
Mass Users Password Reset /wp-admin/users.php?page=mass_users_password_reset_options3.3931.26

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

MASS Users Password Reset: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.35 ▼0.021.90 ▲0.1843.45 ▲2.12
Dashboard /wp-admin2,199 ▲195.63 ▼0.0382.66 ▼2.7938.28 ▼7.60
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0232.87 ▼4.8233.60 ▼0.86
Add New Post /wp-admin/post-new.php1,540 ▲518.60 ▲0.26648.00 ▲4.4269.94 ▼0.86
Media Library /wp-admin/upload.php1,401 ▲74.21 ▼0.16103.38 ▲7.5345.44 ▲3.55
Mass Users Password Reset /wp-admin/users.php?page=mass_users_password_reset_options1,0802.2439.2062.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/mass-users-password-reset/includes/class-mupr.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mass-users-password-reset/includes/class-mupr.php on line 4
    • > PHP Warning
      Use of undefined constant MASS_USERS_PASSWORD_RESET_PLUGIN_URL - assumed 'MASS_USERS_PASSWORD_RESET_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mass-users-password-reset/admin/template/mupr-pro.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mass-users-password-reset/admin/template/mupr-pro.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mass-users-password-reset/admin/template/user-list.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/mass-users-password-reset/admin/template/mupr-admin.php:17
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/mass-users-password-reset/includes/class-mupr.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: password reset, bulk reset password, reset password, password

mass-users-password-reset/mass-users-password-reset.php 92% from 13 tests

"MASS Users Password Reset" version 1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,938 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript35812132,588
CSS220221,577
PHP749133773

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/client-logo2.png14.40KB4.71KB▼ 67.28%
assets/images/mass-user-password-pro-logo.png6.99KB3.29KB▼ 52.85%
assets/images/client-logo4.png10.01KB4.03KB▼ 59.79%
assets/images/tick-mark.png0.45KB0.32KB▼ 27.41%
assets/images/tick-mark1.png0.39KB0.27KB▼ 30.10%