79% remember-me-controls

Code Review | Remember Me Controls

WordPress plugin Remember Me Controls scored79%from 54 tests.

About plugin

  • Plugin page: remember-me-controls
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Sep 27, 2010
  • Latest release: Jun 20, 2023
  • Number of updates: 21
  • Update frequency: every 222.6 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

5,000+ active /38,828 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.25MB] [CPU: ▼3.11ms] Passed 4 tests

This is a short check of server-side resources used by Remember Me Controls
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2449.59 ▲7.72
Dashboard /wp-admin3.56 ▲0.2649.58 ▼3.95
Posts /wp-admin/edit.php3.67 ▲0.3247.19 ▼2.11
Add New Post /wp-admin/post-new.php6.14 ▲0.2581.62 ▼10.31
Media Library /wp-admin/upload.php3.48 ▲0.2537.13 ▲3.92
Remember Me /wp-admin/options-general.php?page=remember-me-controls/remember-me-controls.php3.4633.84

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Remember Me Controls: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▼0.081.79 ▲0.1344.32 ▼0.16
Dashboard /wp-admin2,207 ▲194.84 ▼0.22110.09 ▼8.9448.37 ▲4.92
Posts /wp-admin/edit.php2,101 ▲122.02 ▲0.0035.09 ▼0.3635.03 ▼1.98
Add New Post /wp-admin/post-new.php1,533 ▼023.27 ▲2.21668.95 ▼11.0056.09 ▼1.45
Media Library /wp-admin/upload.php1,403 ▲154.23 ▼0.0195.80 ▼5.3344.59 ▲4.67
Remember Me /wp-admin/options-general.php?page=remember-me-controls/remember-me-controls.php9992.0823.2336.83

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

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

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/remember-me-controls/tests/phpunit/bootstrap.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/remember-me-controls/tests/phpunit/bootstrap.php on line 29
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/remember-me-controls/tests/phpunit/bootstrap.php on line 29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: session, remember me, cookie, remember, login...

remember-me-controls/remember-me-controls.php Passed 13 tests

"Remember Me Controls" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
136 characters long description:
Have "Remember Me" checked by default on the login page and configure how long a login is remembered. Or disable the feature altogether.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,963 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP63947331,567
Markdown3540361
Bourne Shell16221
XML10014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity46.25
▷ Minimum class complexity6.00
▷ Maximum class complexity143.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes133.33%
Methods155
▷ Static methods74.52%
▷ Public methods14090.32%
▷ Protected methods159.68%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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
c2c_minilogo.png3.49KB1.91KB▼ 45.43%