78% auto-login-new-user-after-registration

Code Review | Auto Login New User After Registration

WordPress plugin Auto Login New User After Registration scored78%from 54 tests.

About plugin

  • Plugin page: auto-login-new-us...
  • Plugin version: 1.9.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-6.0
  • WordPress version: 6.3.1
  • First release: May 31, 2016
  • Latest release: Jun 18, 2022
  • Number of updates: 51
  • Update frequency: every 43.3 days
  • Top authors: jsherk (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active /40,369 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.87ms] Passed 4 tests

An overview of server-side resources used by Auto Login New User After Registration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.14 ▼4.25
Dashboard /wp-admin3.39 ▲0.0950.52 ▼3.75
Posts /wp-admin/edit.php3.44 ▲0.0950.77 ▼5.57
Add New Post /wp-admin/post-new.php5.97 ▲0.0996.46 ▲2.10
Media Library /wp-admin/upload.php3.31 ▲0.0941.78 ▲7.71
Auto Login New User After Registration /wp-admin/options-general.php?page=auto-login-new-user-after-registration3.2835.76

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Auto Login New User After Registration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.72 ▼0.671.97 ▲0.1644.73 ▼5.06
Dashboard /wp-admin2,210 ▲254.85 ▼0.99101.30 ▼16.4244.20 ▼2.00
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0240.29 ▲4.6738.91 ▲2.22
Add New Post /wp-admin/post-new.php1,522 ▲823.28 ▲5.66657.39 ▼5.1462.26 ▲6.92
Media Library /wp-admin/upload.php1,392 ▲14.27 ▲0.0794.78 ▼11.1744.26 ▲1.36
Auto Login New User After Registration /wp-admin/options-general.php?page=auto-login-new-user-after-registration9092.0327.9141.97

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
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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_filter() in wp-content/plugins/auto-login-new-user-after-registration/auto-login-new-user-after-registration.php:34

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=auto-login-new-user-after-registration
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=auto-login-new-user-after-registration 142:127 Uncaught SyntaxError: Unexpected string

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 25 tag instead of maximum 10
The official readme.txt is a good inspiration

auto-login-new-user-after-registration/auto-login-new-user-after-registration.php 92% from 13 tests

The main PHP file in "Auto Login New User After Registration" ver. 1.9.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 317 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,279 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File4188200900
PHP18228379

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions9
▷ Named functions9100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dbut.png13.46KB6.06KB▼ 55.01%
dbut-small.png5.33KB2.67KB▼ 49.92%
stars-small.png1.50KB1.51KB0.00%