78% auto-logout-extended

Code Review | Auto Logout Extended

WordPress plugin Auto Logout Extended scored78%from 54 tests.

About plugin

  • Plugin page: auto-logout-extended
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Jul 1, 2021
  • Latest release: Sep 12, 2023
  • Number of updates: 25
  • Update frequency: every 32.1 days
  • Top authors: nbk45 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,905 total downloads

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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.54ms] Passed 4 tests

Server-side resources used by Auto Logout Extended
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.87 ▼2.19
Dashboard /wp-admin3.34 ▲0.0448.74 ▼4.84
Posts /wp-admin/edit.php3.46 ▲0.1049.28 ▲2.52
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.71 ▼3.27
Media Library /wp-admin/upload.php3.27 ▲0.0437.09 ▲0.15

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Auto Logout Extended
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.28 ▼0.012.33 ▲0.0443.53 ▼2.07
Dashboard /wp-admin2,212 ▲325.65 ▼0.0594.13 ▲4.2339.47 ▼2.36
Posts /wp-admin/edit.php2,120 ▲202.00 ▲0.0439.94 ▼2.4335.19 ▼3.10
Add New Post /wp-admin/post-new.php1,543 ▲823.55 ▲5.41651.09 ▲19.8454.25 ▼13.90
Media Library /wp-admin/upload.php1,423 ▲264.27 ▼0.03104.07 ▲1.3846.65 ▲1.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/auto-logout-extended/template/success.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: exclude_users in wp-content/plugins/auto-logout-extended/template/al_ext_user.php on line 1
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/auto-logout-extended/template/al_ext_user.php on line 1

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 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention: The official readme.txt might help

auto-logout-extended/auto-logout-extended.php 92% from 13 tests

The main file in "Auto Logout Extended" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 303 characters long)

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
Everything looks great! No dangerous files found in this plugin424 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP105767351
CSS110038
JavaScript18035

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits2
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods1565.22%
▷ Protected methods00.00%
▷ Private methods834.78%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin