84% longer-login

Code Review | Longer Login ("Remember Me" Extension)

WordPress plugin Longer Login ("Remember Me" Extension) scored84%from 54 tests.

About plugin

  • Plugin page: longer-login
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.2.1
  • WordPress version: 6.3.1
  • First release: Jun 2, 2015
  • Latest release: Jun 2, 2015
  • Number of updates: 7
  • Update frequency: every 110.3 days
  • Top authors: jtmorris (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,294 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.78ms] Passed 4 tests

Analyzing server-side resources used by Longer Login ("Remember Me" Extension)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0146.76 ▲6.43
Dashboard /wp-admin3.32 ▲0.0244.09 ▼9.97
Posts /wp-admin/edit.php3.37 ▲0.0245.61 ▼0.43
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.22 ▼0.92
Media Library /wp-admin/upload.php3.25 ▲0.0235.76 ▲4.19

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Longer Login ("Remember Me" Extension)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.72 ▼0.971.69 ▼0.3139.24 ▼5.13
Dashboard /wp-admin2,206 ▲185.83 ▲0.9394.60 ▼20.7643.24 ▼3.30
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0439.15 ▲3.6336.73 ▲0.50
Add New Post /wp-admin/post-new.php1,514 ▼1917.54 ▼5.75612.25 ▼57.7847.44 ▼6.70
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.0392.07 ▼10.6541.91 ▼2.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/longer-login/longer-login.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: login, remember, expiration, cookie, remember me

longer-login/longer-login.php Passed 13 tests

The main file in "Longer Login ("Remember Me" Extension)" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
114 characters long description:
Tired of WordPress logging you out after 14 days, even if you check "Remember Me"? Use this plugin to remedy that!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin67 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1185767

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin