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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 39.81 ▲1.67 |
Dashboard /wp-admin | 3.12 ▼0.18 | 26.28 ▼26.79 |
Posts /wp-admin/edit.php | 3.13 ▼0.24 | 24.31 ▼22.38 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 22.79 ▼76.81 |
Media Library /wp-admin/upload.php | 3.12 ▼0.11 | 25.09 ▼6.67 |
PW Change Reminder /wp-admin/options-general.php?page=pwcr | 3.13 | 24.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.35 ▲0.07 | 1.68 ▼0.01 | 42.96 ▼1.22 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▲0.03 | 94.42 ▲4.59 | 41.97 ▲0.13 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.07 ▲0.10 | 33.33 ▼5.46 | 35.49 ▼3.81 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.02 ▲4.97 | 671.74 ▲25.64 | 63.64 ▼18.80 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.22 ▲0.01 | 109.09 ▲12.37 | 47.08 ▲4.04 |
PW Change Reminder /wp-admin/options-general.php?page=pwcr | 985 | 2.00 | 24.24 | 28.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 249 | 298 | 484 |
PO File | 1 | 33 | 71 | 92 |
HTML | 8 | 4 | 0 | 63 |
CSS | 2 | 4 | 4 | 40 |
JavaScript | 2 | 6 | 12 | 26 |
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 code | 0.32 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 5 | 16.67% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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