78% auto-login-when-resister

Code Review | Enable/Disable Auto Login when Register

WordPress plugin Enable/Disable Auto Login when Register scored78%from 54 tests.

About plugin

  • Plugin page: auto-login-when-r...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 22, 2015
  • Latest release: Jul 25, 2022
  • Number of updates: 20
  • Update frequency: every 126.5 days
  • Top authors: amu02aftab (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active /8,609 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼13.24ms] Passed 4 tests

An overview of server-side resources used by Enable/Disable Auto Login when Register
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.16 ▼1.51
Dashboard /wp-admin3.37 ▲0.0745.43 ▼9.36
Posts /wp-admin/edit.php3.41 ▲0.0548.99 ▼0.92
Add New Post /wp-admin/post-new.php6.05 ▲0.1683.86 ▼22.61
Media Library /wp-admin/upload.php3.31 ▲0.0837.15 ▼19.46
Auto Login when Resister /wp-admin/options-general.php?page=auto_login_when_register_setting3.2632.46

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Enable/Disable Auto Login when Register: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.381.64 ▼0.3737.93 ▼10.30
Dashboard /wp-admin2,199 ▲255.57 ▲0.0390.56 ▲0.8244.96 ▲0.82
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0238.85 ▼0.2338.51 ▼0.68
Add New Post /wp-admin/post-new.php1,539 ▲1318.37 ▼4.60614.36 ▼63.9169.22 ▲4.31
Media Library /wp-admin/upload.php1,398 ▼24.28 ▲0.1295.89 ▼23.0343.18 ▼7.69
Auto Login when Resister /wp-admin/options-general.php?page=auto_login_when_register_setting8292.0024.1729.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=auto_login_when_register_setting
    • > Notice in wp-content/plugins/auto-login-when-resister/pages/auto_login_when_register_setting.php+8
    Undefined index: add_opt_submit
    • > GET request to /wp-admin/options-general.php?page=auto_login_when_register_setting
    • > Notice in wp-content/plugins/auto-login-when-resister/pages/auto_login_when_register_setting.php+27
    Undefined variable: message

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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/auto-login-when-resister/auto-login-when-resister.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/auto-login-when-resister/pages/auto_login_when_register_setting.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Back End Auto Login when Resister setting) image not found
You can take inspiration from this readme.txt

auto-login-when-resister/auto-login-when-resister.php Passed 13 tests

Analyzing the main PHP file in "Enable/Disable Auto Login when Register" version 1.0.0
76 characters long description:
The plugin provides feature to enable/disable auto login when user register

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
Everything looks great! No dangerous files found in this plugin77 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2281677

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png19.59KB11.70KB▼ 40.31%