94% always-remember-me

Code Review | Always Remember Me

WordPress plugin Always Remember Me scored 94% from 54 tests.

About plugin

  • Plugin page: always-remember-me
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4.1
  • WordPress version: 5.8.1
  • First release: Dec 19, 2012
  • Latest release: Jun 7, 2020
  • Number of updates: 4
  • Update frequency: every 681.7 days
  • Top authors: ozh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 3,688 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.00MB] [CPU: ▼141.37ms] Passed 4 tests

Server-side resources used by Always Remember Me
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1232.05 ▲6.74
Dashboard /wp-admin3.07 ▲0.0145.08 ▼1.02
Posts /wp-admin/edit.php3.12 ▲0.0148.27 ▲0.69
Add New Post /wp-admin/post-new.php5.43 ▼0.0193.21 ▼567.44
Media Library /wp-admin/upload.php3.01 ▲0.0035.82 ▲2.31

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Always Remember Me
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.78 ▲0.2211.75 ▲0.3245.91 ▼5.93
Dashboard /wp-admin2,967 ▲365.91 ▼0.08140.55 ▼1.63106.51 ▼6.22
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0062.36 ▼4.8291.03 ▼0.77
Add New Post /wp-admin/post-new.php1,498 ▼218.82 ▲0.40401.19 ▲26.89121.34 ▲10.18
Media Library /wp-admin/upload.php1,810 ▼05.01 ▼0.02147.35 ▼11.38120.62 ▼7.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/always-remember-me/plugin.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: login, remember, cookie, checkbox, ozh

always-remember-me/plugin.php 92% from 13 tests

The main file in "Always Remember Me" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("always-remember-me.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin21 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP131317
Markdown1404

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin