84% automatic-login

Code Review | Automatic Login

WordPress plugin Automatic Login scored 84% from 54 tests.

About plugin

  • Plugin page: automatic-login
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.1-6.1
  • WordPress version: 6.3.1
  • First release: Feb 14, 2023
  • Latest release: Feb 14, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: functionsfile (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 600 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼1.03MB] [CPU: ▼41.29ms] Passed 4 tests

An overview of server-side resources used by Automatic Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0541.44 ▲1.33
Dashboard /wp-admin2.91 ▼0.3915.50 ▼35.54
Posts /wp-admin/edit.php2.91 ▼0.4514.49 ▼32.25
Add New Post /wp-admin/post-new.php2.91 ▼2.9814.86 ▼80.10
Media Library /wp-admin/upload.php2.91 ▼0.3215.83 ▼17.28

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Automatic Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,620 ▼11513.24 ▼1.441.16 ▼0.5442.95 ▲0.83
Dashboard /wp-admin240 ▼1,9528.14 ▲3.2172.49 ▼34.1716.34 ▼30.92
Posts /wp-admin/edit.php240 ▼1,8498.12 ▲6.1456.99 ▲19.5317.70 ▼14.63
Add New Post /wp-admin/post-new.php240 ▼1,2748.27 ▼9.1659.43 ▼600.1019.80 ▼25.44
Media Library /wp-admin/upload.php240 ▼1,1518.26 ▲4.0961.47 ▼33.9617.11 ▼26.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AutomaticLogin\\add_action() in wp-content/plugins/automatic-login/plugin.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: autologin, local, login, admin

automatic-login/plugin.php 92% from 13 tests

The main file in "Automatic Login" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("automatic-login.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1215149

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.94
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
Namespaces1
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
There were not PNG files found in your plugin