84% easy-timeout-session

Code Review | Easy Timeout Session

WordPress plugin Easy Timeout Session scored84%from 54 tests.

About plugin

  • Plugin page: easy-timeout-session
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Jul 11, 2014
  • Latest release: Nov 2, 2015
  • Number of updates: 4
  • Update frequency: every 120.0 days
  • Top authors: jokioki (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /5,956 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.41ms] Passed 4 tests

This is a short check of server-side resources used by Easy Timeout Session
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.66 ▼1.62
Dashboard /wp-admin3.34 ▲0.0448.01 ▼3.62
Posts /wp-admin/edit.php3.45 ▲0.1044.35 ▼3.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.84 ▼9.08
Media Library /wp-admin/upload.php3.26 ▲0.0334.75 ▲1.78

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Easy Timeout Session: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.27 ▼1.111.77 ▼0.3940.50 ▼5.55
Dashboard /wp-admin2,219 ▲285.80 ▲0.0095.79 ▼9.1041.59 ▼5.17
Posts /wp-admin/edit.php2,108 ▲192.00 ▼0.0536.34 ▼0.6334.71 ▲0.47
Add New Post /wp-admin/post-new.php1,546 ▲223.35 ▲5.11653.53 ▲48.5960.29 ▲4.44
Media Library /wp-admin/upload.php1,407 ▲164.16 ▼0.02100.51 ▼2.1242.43 ▼3.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/easy-timeout-session/admin/partials/easy-timeout-session.php:93

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: timeout session cookie user wordpress login logout

easy-timeout-session/easy-timeout-session.php Passed 13 tests

Analyzing the main PHP file in "Easy Timeout Session" version 1.1
30 characters long description:
Changes Timeout Session length

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin317 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP565200253
CSS20464

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 code0.20
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1482.35%
▷ Protected methods00.00%
▷ Private methods317.65%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/title.png3.89KB2.17KB▼ 44.15%