Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼7.90ms] Passed 4 tests
Server-side resources used by Expire User Passwords
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 54.97 ▲9.46 |
Dashboard /wp-admin | 3.42 ▲0.12 | 52.56 ▼0.61 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.30 ▼0.58 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 87.92 ▼29.99 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.53 ▼0.43 |
Expire User Passwords /wp-admin/users.php?page=Expire_User_passwords | 3.39 | 32.37 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Expire User Passwords: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.69 ▲0.34 | 1.76 ▼0.20 | 43.53 ▲1.36 |
Dashboard /wp-admin | 2,196 ▲15 | 5.61 ▼0.04 | 98.49 ▼5.35 | 42.23 ▼3.24 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.02 ▲0.04 | 36.32 ▲0.05 | 35.25 ▼2.34 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.78 ▲0.14 | 679.23 ▲0.44 | 65.27 ▲3.77 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.17 ▲0.02 | 93.42 ▼9.90 | 41.42 ▼2.57 |
Expire User Passwords /wp-admin/users.php?page=Expire_User_passwords | 859 | 2.16 | 25.39 | 27.97 |
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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: profile, security, passwords, login, admin...
expire-user-passwords/expire-user-passwords.php Passed 13 tests
The main PHP file in "Expire User Passwords" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
Require certain users to change their passwords on a regular basis.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin679 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 221 | 228 | 420 |
PO File | 5 | 75 | 94 | 259 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 4 | 100.00% |
Methods | 31 | |
▷ Static methods | 10 | 32.26% |
▷ Public methods | 28 | 90.32% |
▷ Protected methods | 1 | 3.23% |
▷ Private methods | 2 | 6.45% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin