84% baw-force-new-password

Code Review | Force New Password

WordPress plugin Force New Password scored84%from 54 tests.

About plugin

  • Plugin page: baw-force-new-pas...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Apr 30, 2014
  • Latest release: Aug 12, 2015
  • Number of updates: 3
  • Update frequency: every 156.7 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,843 total downloads


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.01MB] [CPU: ▼4.61ms] Passed 4 tests

This is a short check of server-side resources used by Force New Password
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0238.99 ▼1.71
Dashboard /wp-admin3.32 ▲0.0143.73 ▼7.77
Posts /wp-admin/edit.php3.37 ▲0.0147.50 ▲0.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.64 ▼8.96
Media Library /wp-admin/upload.php3.24 ▲0.0135.68 ▼0.00

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Force New Password
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.23 ▼0.771.89 ▲0.0937.28 ▼7.30
Dashboard /wp-admin2,203 ▲155.79 ▲0.9197.58 ▼8.6637.55 ▼7.20
Posts /wp-admin/edit.php2,092 ▼02.12 ▲0.1139.35 ▼2.8233.61 ▼0.83
Add New Post /wp-admin/post-new.php1,513 ▼2017.50 ▼5.62587.67 ▼4.9637.48 ▼8.49
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0196.37 ▼3.7043.31 ▼0.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/baw-force-new-password/baw-force-new-password.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: member, security, user, password

baw-force-new-password/baw-force-new-password.php Passed 13 tests

This is the main PHP file of "Force New Password" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Force new users to change their password on their first login.

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
Success! There were no dangerous files found in this plugin61 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File12225

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.53
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 functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin