Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼143.26ms] Passed 4 tests
Analyzing server-side resources used by Expire Passwords
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.07 | 35.00 ▲6.27 |
Dashboard /wp-admin | 3.14 ▲0.08 | 43.63 ▲2.17 |
Posts /wp-admin/edit.php | 3.25 ▲0.13 | 36.76 ▼16.70 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 84.74 ▼554.57 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 31.52 ▼3.95 |
Expire Passwords /wp-admin/users.php?page=expire_passwords | 3.12 | 29.24 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Expire Passwords
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲47 | 15.80 ▲0.28 | 8.73 ▲0.67 | 44.40 ▼3.01 |
Dashboard /wp-admin | 2,978 ▲47 | 6.12 ▼0.02 | 144.28 ▼4.98 | 110.37 ▲3.10 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.00 | 66.87 ▲4.83 | 98.30 ▲3.90 |
Add New Post /wp-admin/post-new.php | 2,060 ▲388 | 19.37 ▲0.43 | 369.76 ▼7.45 | 107.42 ▼0.73 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▲0.01 | 156.03 ▲9.85 | 114.77 ▼4.54 |
Expire Passwords /wp-admin/users.php?page=expire_passwords | 1,080 | 2.09 | 55.20 | 70.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: users, admin, security, passwords, profile...
expire-passwords/expire-passwords.php Passed 13 tests
"Expire Passwords" version 0.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin506 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 215 | 207 | 350 |
PO File | 3 | 46 | 57 | 156 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 4 | 100.00% |
Methods | 28 | |
▷ Static methods | 10 | 35.71% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.14% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin