62% password-change-reminder

Code Review | Password Change Reminder

WordPress plugin Password Change Reminder scored62%from 54 tests.

About plugin

  • Plugin page: password-change-r...
  • Plugin version: 0.2.20131123
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 24, 2013
  • Latest release: Nov 24, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: OoroonBai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /998 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.82MB] [CPU: ▼33.16ms] Passed 4 tests

Server-side resources used by Password Change Reminder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1439.81 ▲1.67
Dashboard /wp-admin3.12 ▼0.1826.28 ▼26.79
Posts /wp-admin/edit.php3.13 ▼0.2424.31 ▼22.38
Add New Post /wp-admin/post-new.php3.12 ▼2.7722.79 ▼76.81
Media Library /wp-admin/upload.php3.12 ▼0.1125.09 ▼6.67
PW Change Reminder /wp-admin/options-general.php?page=pwcr3.1324.58

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
PwCR
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Password Change Reminder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▲0.071.68 ▼0.0142.96 ▼1.22
Dashboard /wp-admin2,199 ▲225.61 ▲0.0394.42 ▲4.5941.97 ▲0.13
Posts /wp-admin/edit.php2,104 ▲42.07 ▲0.1033.33 ▼5.4635.49 ▼3.81
Add New Post /wp-admin/post-new.php1,529 ▼823.02 ▲4.97671.74 ▲25.6463.64 ▼18.80
Media Library /wp-admin/upload.php1,401 ▲44.22 ▲0.01109.09 ▲12.3747.08 ▲4.04
PW Change Reminder /wp-admin/options-general.php?page=pwcr9852.0024.2428.73

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=pwcr
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/password-change-reminder/pwchangereminder.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'PwCR\\Options_Handler\\Options_Handler' not found in wp-content/plugins/password-change-reminder/classes/pwcr.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: admin, security, password

password-change-reminder/pwchangereminder.php 85% from 13 tests

The main PHP script in "Password Change Reminder" version 0.2.20131123 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("password-change-reminder.php" instead of "pwchangereminder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin705 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP4249298484
PO File1337192
HTML84063
CSS24440
JavaScript261226

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity23.00
▷ Minimum class complexity14.00
▷ Maximum class complexity30.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods516.67%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin