100% wp-login-timeout-settings

Code Review | WP Login Timeout Settings

WordPress plugin WP Login Timeout Settings scored 100% from 53 tests.

About plugin

  • Plugin page: wp-login-timeout-...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 5.8.1
  • First release: Jul 9, 2014
  • Latest release: Dec 21, 2017
  • Number of updates: 13
  • Update frequency: every 97.0 days
  • Top authors: Yslo (100%)

Code review

53 tests

User reviews

8 reviews

Install metrics

1,000+ active / 11,814 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.80MB] [CPU: ▼302.27ms] Passed 4 tests

This is a short check of server-side resources used by WP Login Timeout Settings
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1931.82 ▲9.97
Dashboard /wp-admin3.15 ▲0.1042.13 ▲2.02
Posts /wp-admin/edit.php2.75 ▼0.3617.18 ▼25.29
Add New Post /wp-admin/post-new.php2.74 ▼2.6917.98 ▼1,164.71
Media Library /wp-admin/upload.php2.74 ▼0.2614.97 ▼21.11
Login timeout /wp-admin/options-general.php?page=wp-login-timeout-settings/wp-login-timeout-settings.php2.7515.53

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options
wp_login_timeout_options

Browser metrics Passed 4 tests

WP Login Timeout Settings: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲7215.92 ▲0.418.81 ▼1.3846.65 ▲1.47
Dashboard /wp-admin2,935 ▲826.14 ▲0.33145.33 ▲15.77111.95 ▲10.28
Posts /wp-admin/edit.php272 ▼2,4348.66 ▲5.9976.80 ▲11.7351.63 ▼33.74
Add New Post /wp-admin/post-new.php272 ▼1,3818.57 ▼10.1463.47 ▼313.4848.01 ▼56.84
Media Library /wp-admin/upload.php272 ▼1,5038.57 ▲3.5666.47 ▼80.7353.93 ▼58.59
Login timeout /wp-admin/options-general.php?page=wp-login-timeout-settings/wp-login-timeout-settings.php2728.5767.5251.21

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
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wp-login-timeout-settings/wp-login-timeout-settings.php Passed 13 tests

Analyzing the main PHP file in "WP Login Timeout Settings" version 1.1.3
62 characters long description:
Configure WordPress Login Timeout through UI (User Interface).

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
No dangerous file extensions were detected336 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36331245
PO File1202388
CSS1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity59.00
▷ Minimum class complexity59.00
▷ Maximum class complexity59.00
Average method complexity4.22
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin