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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 35.95 ▼9.74 |
Dashboard /wp-admin | 3.11 ▼0.19 | 22.63 ▼22.97 |
Posts /wp-admin/edit.php | 3.11 ▼0.25 | 24.95 ▼20.29 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.78 | 24.05 ▼60.26 |
Media Library /wp-admin/upload.php | 3.11 ▼0.12 | 23.54 ▼10.19 |
FWP Password Reset /wp-admin/options-general.php?page=fpr-settings-page-slug | 3.11 | 24.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲145 | 13.58 ▼1.07 | 4.51 ▲2.80 | 39.03 ▼0.93 |
Dashboard /wp-admin | 2,211 ▲56 | 5.82 ▲0.26 | 96.20 ▲1.76 | 37.39 ▲2.00 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▼0.01 | 39.18 ▲5.10 | 34.42 ▼6.63 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.45 ▲5.93 | 722.72 ▲4.71 | 52.98 ▼11.63 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.39 ▲0.17 | 96.64 ▼14.13 | 43.64 ▼3.61 |
FWP Password Reset /wp-admin/options-general.php?page=fpr-settings-page-slug | 877 | 2.06 | 24.35 | 30.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 209 | 667 | 380 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
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 code | 0.37 |
Average class complexity | 9.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 27 | 77.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 22.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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