94% auto-login-user-on-register

Code Review | Auto Login User on Register Wordpress

WordPress plugin Auto Login User on Register Wordpress scored 94% from 54 tests.

About plugin

  • Plugin page: auto-login-user-o...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 5.8.1
  • First release: Dec 25, 2014
  • Latest release: Jan 6, 2015
  • Number of updates: 17
  • Update frequency: every 0.8 days
  • Top authors: kostikpenzin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active / 1,794 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼143.56ms] Passed 4 tests

Server-side resources used by Auto Login User on Register Wordpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.04 ▲12.70
Dashboard /wp-admin3.06 ▲0.0137.51 ▼5.61
Posts /wp-admin/edit.php3.11 ▲0.0131.31 ▼11.75
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.69 ▼563.16
Media Library /wp-admin/upload.php3.01 ▲0.0042.73 ▲6.27

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Auto Login User on Register Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.83 ▲0.287.69 ▲0.1246.94 ▼2.31
Dashboard /wp-admin2,992 ▲645.98 ▲0.06134.91 ▼3.90115.22 ▲1.56
Posts /wp-admin/edit.php2,739 ▼02.82 ▲0.1263.66 ▼2.4991.95 ▼2.53
Add New Post /wp-admin/post-new.php1,683 ▼018.39 ▼0.38344.10 ▼73.12100.62 ▼26.55
Media Library /wp-admin/upload.php1,810 ▼05.03 ▲0.01152.52 ▲5.49125.39 ▲6.20

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-login-user-on-register/auto-login-user-on-register.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: wp_options, user, login, autologin, auto login...

auto-login-user-on-register/auto-login-user-on-register.php Passed 13 tests

Analyzing the main PHP file in "Auto Login User on Register Wordpress" version 1.0.0
82 characters long description:
This plugin will automatically login your new user after the registration process.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141113

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin