90% stop-logging-me-out

Code Review | Stop Logging Me Out

WordPress plugin Stop Logging Me Out scored90%from 54 tests.

About plugin

  • Plugin page: stop-logging-me-out
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 20, 2023
  • Latest release: Jun 20, 2023
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: lev0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Stop Logging Me Out
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.38 ▼4.62
Dashboard /wp-admin3.35 ▲0.0446.02 ▼6.21
Posts /wp-admin/edit.php3.40 ▲0.0446.05 ▼3.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.41 ▼7.16
Media Library /wp-admin/upload.php3.27 ▲0.0438.63 ▲0.70

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Stop Logging Me Out
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.121.82 ▲0.0040.16 ▼7.09
Dashboard /wp-admin2,195 ▲275.59 ▲0.0286.20 ▼28.7442.73 ▼3.51
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0736.59 ▼16.1635.80 ▼2.40
Add New Post /wp-admin/post-new.php1,526 ▼022.74 ▼0.24630.42 ▼16.8061.58 ▲10.80
Media Library /wp-admin/upload.php1,397 ▼34.24 ▲0.02102.96 ▼13.5342.58 ▼2.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: login, annoyances, sessions

stop-logging-me-out/stop-logging-me-out.php Passed 13 tests

"Stop Logging Me Out" version 0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
WordPress logs you out again when you revisit a tab/window where a previous session had expired.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin192 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11013192

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions00.00%
▷ Anonymous functions10100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin