79% remind-me-to-change-my-password

Code Review | Remind me to change my password

WordPress plugin Remind me to change my password scored79%from 54 tests.

About plugin

  • Plugin page: remind-me-to-chan...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Jan 6, 2022
  • Latest release: Jan 26, 2022
  • Number of updates: 3
  • Update frequency: every 32.0 days
  • Top authors: leprincenoir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /792 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▲1.58ms] Passed 4 tests

Analyzing server-side resources used by Remind me to change my password
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3345.05 ▲1.17
Dashboard /wp-admin3.68 ▲0.3856.09 ▲3.64
Posts /wp-admin/edit.php3.74 ▲0.3852.16 ▲1.12
Add New Post /wp-admin/post-new.php6.20 ▲0.32105.33 ▲14.89
Media Library /wp-admin/upload.php3.54 ▲0.3238.87 ▲0.37
Suspended account(s) /wp-admin/users.php?page=blocked-users3.5438.48
Password Reset Manager /wp-admin/users.php?page=remind_me_password3.5242.26

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Remind me to change my password
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8114.22 ▼0.141.76 ▲0.0343.40 ▼4.13
Dashboard /wp-admin2,233 ▲535.55 ▼0.0985.01 ▼7.0440.90 ▼9.60
Posts /wp-admin/edit.php2,138 ▲352.01 ▲0.0335.50 ▼5.0235.12 ▼2.06
Add New Post /wp-admin/post-new.php1,556 ▲1922.94 ▲4.76599.97 ▼38.6652.18 ▼16.97
Media Library /wp-admin/upload.php1,438 ▲354.19 ▼0.0698.68 ▼3.3042.57 ▼1.04
Suspended account(s) /wp-admin/users.php?page=blocked-users9541.6925.8426.10
Password Reset Manager /wp-admin/users.php?page=remind_me_password1,1192.3943.3327.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 10× PHP files output text when accessed directly:
    • > /wp-content/plugins/remind-me-to-change-my-password/views/admin/index.php
    • > /wp-content/plugins/remind-me-to-change-my-password/remind-me-to-change-my-password.php
    • > /wp-content/plugins/remind-me-to-change-my-password/views/admin/blocked-users-list.php
    • > /wp-content/plugins/remind-me-to-change-my-password/views/admin/admin-page.php
    • > /wp-content/plugins/remind-me-to-change-my-password/core/utility/index.php
    • > /wp-content/plugins/remind-me-to-change-my-password/core/admin/index.php
    • > /wp-content/plugins/remind-me-to-change-my-password/languages/index.php
    • > /wp-content/plugins/remind-me-to-change-my-password/core/user/index.php
    • > /wp-content/plugins/remind-me-to-change-my-password/core/index.php
    • > /wp-content/plugins/remind-me-to-change-my-password/views/index.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'RMTCMP\\User\\User' not found in wp-content/plugins/remind-me-to-change-my-password/core/user/Views.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RMTCMP\\User\\User' not found in wp-content/plugins/remind-me-to-change-my-password/core/user/Actions.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RMTCMP\\User\\User' not found in wp-content/plugins/remind-me-to-change-my-password/core/user/Password.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RMTCMP\\Admin\\Menu' not found in wp-content/plugins/remind-me-to-change-my-password/core/admin/MenuSettings.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RMTCMP\\User\\User' not found in wp-content/plugins/remind-me-to-change-my-password/core/user/Login.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: reset password, manage passwords, password

remind-me-to-change-my-password/remind-me-to-change-my-password.php Passed 13 tests

The principal PHP file in "Remind me to change my password" v. 1.0 is loaded by WordPress automatically on each request
87 characters long description:
The plugin allows you to force users into changing their password after a certain time.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,617 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP203912871,435
PO File172126160
JSON10018
SVG2002
CSS1101
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity16.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods75
▷ Static methods810.67%
▷ Public methods6485.33%
▷ Protected methods912.00%
▷ Private methods22.67%
Functions12
▷ Named functions18.33%
▷ Anonymous functions1191.67%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin