63% chris-force-password-reset

Code Review | Force Password Reset

WordPress plugin Force Password Reset scored 63% from 54 tests.

About plugin

  • Plugin page: chris-force-passw...
  • Plugin version: 4.3.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.2
  • WordPress version: 6.3.1
  • First release: Aug 22, 2018
  • Latest release: Aug 22, 2018
  • Number of updates: 13
  • Update frequency: every 0.1 days
  • Top authors: nwachuku (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,104 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.83MB] [CPU: ▼28.43ms] Passed 4 tests

A check of server-side resources used by Force Password Reset
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0935.95 ▼9.74
Dashboard /wp-admin3.11 ▼0.1922.63 ▼22.97
Posts /wp-admin/edit.php3.11 ▼0.2524.95 ▼20.29
Add New Post /wp-admin/post-new.php3.11 ▼2.7824.05 ▼60.26
Media Library /wp-admin/upload.php3.11 ▼0.1223.54 ▼10.19
FWP Password Reset /wp-admin/options-general.php?page=fpr-settings-page-slug3.1124.51

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Force Password Reset
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.58 ▼1.074.51 ▲2.8039.03 ▼0.93
Dashboard /wp-admin2,211 ▲565.82 ▲0.2696.20 ▲1.7637.39 ▲2.00
Posts /wp-admin/edit.php2,097 ▲82.03 ▼0.0139.18 ▲5.1034.42 ▼6.63
Add New Post /wp-admin/post-new.php1,536 ▲2223.45 ▲5.93722.72 ▲4.7152.98 ▼11.63
Media Library /wp-admin/upload.php1,396 ▲114.39 ▲0.1796.64 ▼14.1343.64 ▼3.61
FWP Password Reset /wp-admin/options-general.php?page=fpr-settings-page-slug8772.0624.3530.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/chris-force-password-reset/admin/class-chris-force-password-reset-admin.php+263
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=fpr-settings-page-slug
    • > Notice in wp-content/plugins/chris-force-password-reset/admin/partials/chris-force-password-reset-admin-display.php+31
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/chris-force-password-reset/public/partials/chris-force-password-reset-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/chris-force-password-reset/admin/partials/chris-force-password-reset-admin-display.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: login, reset, security, password

chris-force-password-reset/chris-force-password-reset.php Passed 13 tests

The principal PHP file in "Force Password Reset" v. 4.3.2 is loaded by WordPress automatically on each request
103 characters long description:
This plugin is designed to remind WordPress users to reset their password after certain number of days.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin386 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12209667380
JavaScript24546
CSS2080

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity9.71
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods2777.14%
▷ Protected methods00.00%
▷ Private methods822.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin