78% bulk-password-reset

Code Review | Bulk Password Reset

WordPress plugin Bulk Password Reset scored78%from 54 tests.

About plugin

  • Plugin page: bulk-password-reset
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.3
  • WordPress version: 6.3.1
  • First release: Dec 7, 2009
  • Latest release: Sep 5, 2015
  • Number of updates: 31
  • Update frequency: every 67.7 days
  • Top authors: rubenw (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /16,121 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.10MB] [CPU: ▼6.74ms] Passed 4 tests

A check of server-side resources used by Bulk Password Reset
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1135.77 ▼8.21
Dashboard /wp-admin3.46 ▲0.0750.53 ▼13.70
Posts /wp-admin/edit.php3.63 ▲0.2449.86 ▼1.41
Add New Post /wp-admin/post-new.php6.04 ▲0.1196.09 ▼3.62
Media Library /wp-admin/upload.php3.38 ▲0.1136.48 ▼1.36
Bulk Password Reset /wp-admin/users.php?page=bulk_password_reset3.3334.90

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
bpr_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Bulk Password Reset
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.33 ▼0.261.73 ▲0.1943.00 ▲0.03
Dashboard /wp-admin2,199 ▲195.55 ▼0.0986.09 ▼0.1740.29 ▼3.70
Posts /wp-admin/edit.php2,101 ▲11.98 ▲0.0436.80 ▼0.4234.05 ▼1.80
Add New Post /wp-admin/post-new.php1,531 ▲323.27 ▲0.38647.88 ▼16.6159.00 ▼11.94
Media Library /wp-admin/upload.php1,407 ▲74.20 ▼0.0197.27 ▼15.7944.94 ▼3.29
Bulk Password Reset /wp-admin/users.php?page=bulk_password_reset1,2284.8451.8833.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • bpr_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/users.php?page=bulk_password_reset
    • > Notice in wp-content/plugins/bulk-password-reset/bulk_password_reset.php+217
    Undefined variable: user_ID
    • > GET request to /wp-admin/users.php?page=bulk_password_reset
    • > Notice in wp-content/plugins/bulk-password-reset/bulk_password_reset.php+222
    Undefined variable: send_roles
    • > GET request to /wp-admin/users.php?page=bulk_password_reset
    • > Notice in wp-content/plugins/bulk-password-reset/bulk_password_reset.php+289
    Undefined variable: upload
    • > GET request to /wp-admin/users.php?page=bulk_password_reset
    • > Notice in wp-content/plugins/bulk-password-reset/bulk_password_reset.php+289
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/bulk-password-reset/bulk_password_reset.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Screen shot Admin Area)
The official readme.txt might help

bulk-password-reset/bulk_password_reset.php 85% from 13 tests

The main PHP script in "Bulk Password Reset" version 1.3.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bulk-password-reset.php" instead of "bulk_password_reset.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 186 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
Everything looks great! No dangerous files found in this plugin831 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1109103506
PO File297248268
CSS112057

PHP code Passed 2 tests

This is a very shot review 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.35
Average class complexity70.00
▷ Minimum class complexity70.00
▷ Maximum class complexity70.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 files were detected