94% rb-autologin

Code Review | (rb) AutoLogin

WordPress plugin (rb) AutoLogin scored 94% from 54 tests.

About plugin

  • Plugin page: rb-autologin
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 5.8.1
  • First release: Jun 12, 2020
  • Latest release: Jun 16, 2020
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: ryanbriscall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 196 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼146.83ms] Passed 4 tests

This is a short check of server-side resources used by (rb) AutoLogin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.78 ▲16.92
Dashboard /wp-admin3.08 ▲0.0245.21 ▼4.84
Posts /wp-admin/edit.php3.13 ▲0.0244.34 ▼0.91
Add New Post /wp-admin/post-new.php5.44 ▲0.0199.00 ▼571.11
Media Library /wp-admin/upload.php3.02 ▲0.0131.48 ▼10.47

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for (rb) AutoLogin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.76 ▲0.228.63 ▼1.9952.80 ▼1.50
Dashboard /wp-admin2,970 ▲395.89 ▼0.13163.62 ▲8.82110.06 ▼3.25
Posts /wp-admin/edit.php2,736 ▼32.68 ▲0.0068.90 ▼8.0994.97 ▼5.53
Add New Post /wp-admin/post-new.php1,683 ▼016.58 ▼2.16405.42 ▲18.95114.58 ▲0.91
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.01167.99 ▲11.95131.24 ▼3.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller 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)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/rb-autologin/rb-autologin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: wp-admin, admin

rb-autologin/rb-autologin.php Passed 13 tests

The main file in "(rb) AutoLogin" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
Auto login (using AUTO_LOGIN_USERNAME constant in wp-config.php)

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
Good job! No executable or dangerous file extensions detected58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201258

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin