Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.59ms] Passed 4 tests
An overview of server-side resources used by Idle User Logout
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.31 ▼2.27 |
Dashboard /wp-admin | 3.43 ▲0.13 | 44.37 ▼4.69 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.31 ▲4.28 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 81.43 ▼17.28 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.17 ▲1.89 |
Idle User Logout /wp-admin/options-general.php?page=iul-settings | 3.32 | 33.28 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
iul_behavior |
iul_data |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Idle User Logout
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲228 | 14.27 ▼0.08 | 10.28 ▲8.68 | 39.99 ▲1.52 |
Dashboard /wp-admin | 2,252 ▲77 | 6.00 ▲0.17 | 87.48 ▼10.45 | 39.46 ▼0.95 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.29 ▲0.28 | 38.89 ▲4.90 | 31.95 ▼5.47 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.47 ▲0.37 | 624.74 ▼45.16 | 54.34 ▼0.14 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.51 ▲0.25 | 106.71 ▲7.90 | 46.72 ▲3.01 |
Idle User Logout /wp-admin/options-general.php?page=iul-settings | 850 | 2.27 | 33.71 | 31.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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
9 plugin tags: idle time, auto logout, idle user, signout, automatic...
idle-user-logout/idle-user-logout.php Passed 13 tests
The entry point to "Idle User Logout" version 3.0 is a PHP file that has certain tags in its header comment area
122 characters long description:
This plugin automatically logs out the user after a period of idle time. The time period can be configured from admin end.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected786 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 115 | 17 | 560 |
CSS | 1 | 16 | 3 | 135 |
JavaScript | 4 | 16 | 4 | 91 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 1.67KB | 0.66KB | ▼ 60.30% |