Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▲5.54ms] Passed 4 tests
An overview of server-side resources used by Inactive Logout
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.40 | 47.68 ▲6.21 |
Dashboard /wp-admin | 3.68 ▲0.38 | 51.43 ▲0.09 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 55.23 ▲7.29 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 100.92 ▲8.55 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 46.19 ▲10.34 |
Inactive Logout /wp-admin/options-general.php?page=inactive-logout | 3.61 | 43.06 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 110 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
__ina_logout_message |
widget_recent-posts |
__ina_after_logout_message |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
__ina_warn_message |
widget_recent-comments |
__ina_logout_time |
Browser metrics Passed 4 tests
Checking browser requirements for Inactive Logout
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 14.37 ▼0.01 | 6.98 ▲5.17 | 43.62 ▲3.14 |
Dashboard /wp-admin | 2,233 ▲45 | 5.63 ▲0.80 | 115.57 ▲7.43 | 37.32 ▼9.26 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.46 ▲0.44 | 44.17 ▲6.53 | 35.45 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 18.69 ▼4.28 | 594.10 ▼119.73 | 33.29 ▼25.59 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.96 ▲0.77 | 98.43 ▼3.90 | 41.37 ▼2.56 |
Inactive Logout /wp-admin/options-general.php?page=inactive-logout | 2,214 | 8.96 | 181.03 | 99.98 |
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 detected upon uninstall: 10 options
- __ina_warn_message
- __ina_logout_message
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- __ina_after_logout_message
- widget_recent-posts
- __ina_logout_time
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/inactive-logout/inactive-logout.php
- > /wp-content/plugins/inactive-logout/legacy/class-inactive-logout-helpers.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Codemanas\\InactiveLogout\\Helpers' not found in wp-content/plugins/inactive-logout/views/tabs/tpl-inactive-logout-advanced.php:10
- > PHP Fatal error
Uncaught Error: Class 'Codemanas\\InactiveLogout\\Helpers' not found in wp-content/plugins/inactive-logout/views/tabs/tpl-inactive-logout-basic.php:9
- > PHP Fatal error
Uncaught Error: Class 'Codemanas\\InactiveLogout\\Helpers' not found in wp-content/plugins/inactive-logout/views/tabs/tpl-inactive-logout-support.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/inactive-logout/views/tpl-inactive-logout-settings.php:4
- > PHP Warning
Use of undefined constant INACTIVE_LOGOUT_REQUIRED_PHP - assumed 'INACTIVE_LOGOUT_REQUIRED_PHP' (this will throw an Error in a future version of PHP) in wp-content/plugins/inactive-logout/core/Bootstrap.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function Codemanas\\InactiveLogout\\add_action() in wp-content/plugins/inactive-logout/core/Bootstrap.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
inactive-logout/inactive-logout.php Passed 13 tests
This is the main PHP file of "Inactive Logout" version 3.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
Automatically logout idle user sessions, even if they are on the front end! Fully configurable & easy to use.
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
No dangerous file extensions were detected13,550 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 65 | 2,578 | 777 | 9,756 |
PHP | 23 | 373 | 847 | 1,963 |
PO File | 6 | 492 | 582 | 1,398 |
CSS | 4 | 56 | 0 | 428 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 22.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 44 | 39.64% |
▷ Public methods | 104 | 93.69% |
▷ Protected methods | 4 | 3.60% |
▷ Private methods | 3 | 2.70% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 9 | |
▷ Global constants | 9 | 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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/logo-purple-300x135.png | 5.38KB | 3.47KB | ▼ 35.55% |