84% autologin-links

Code Review | Autologin Links

WordPress plugin Autologin Links scored84%from 54 tests.

About plugin

  • Plugin page: autologin-links
  • Plugin version: 1.12.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.6
  • WordPress version: 6.3.1
  • First release: Jan 25, 2012
  • Latest release: Feb 24, 2021
  • Number of updates: 33
  • Update frequency: every 100.6 days
  • Top authors: WPAutoLogin (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

8,000+ active /43,233 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼7.98ms] Passed 4 tests

This is a short check of server-side resources used by Autologin Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1643.45 ▲0.34
Dashboard /wp-admin3.43 ▲0.0950.87 ▼15.80
Posts /wp-admin/edit.php3.55 ▲0.1949.76 ▼3.02
Add New Post /wp-admin/post-new.php6.01 ▲0.1398.06 ▼7.82
Media Library /wp-admin/upload.php3.36 ▲0.1336.28 ▼5.26
Autologin-links /wp-admin/options-general.php?page=pkg_autologin_admin_menu3.3233.14

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Autologin Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17513.71 ▼0.9713.80 ▲11.9340.72 ▼2.78
Dashboard /wp-admin2,199 ▲225.54 ▼0.0290.73 ▼12.3641.53 ▼1.38
Posts /wp-admin/edit.php2,107 ▲72.00 ▼0.0338.92 ▲0.8535.31 ▼0.17
Add New Post /wp-admin/post-new.php1,557 ▲3118.50 ▲0.69591.82 ▼81.1958.03 ▼2.82
Media Library /wp-admin/upload.php1,404 ▲44.27 ▲0.1099.09 ▼12.6243.08 ▼3.84
Autologin-links /wp-admin/options-general.php?page=pkg_autologin_admin_menu8482.0524.0827.71

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% 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 | 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
Please fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/autologin-links/autologin-links.php on line 28
    • > PHP Warning
      require_once(ABSPATHWPINC/class-phpass.php): failed to open stream: No such file or directory in wp-content/plugins/autologin-links/autologin-links.php on line 28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autologin-links/autologin-links-admin-bar.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autologin-links/autologin-links-admin-bar.php:11
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-phpass.php' (include_path='.:/usr/share/php') in wp-content/plugins/autologin-links/autologin-links.php on line 28
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/autologin-links/autologin-links.php on line 28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === autologin-links === )
You can look at the official readme.txt

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

The primary PHP file in "Autologin Links" version 1.12.0 is used by WordPress to initiate all plugin functionality
55 characters long description:
Lets administrators generate autologin links for users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected814 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6130228609
JavaScript313583
CSS121261
PO File1243761

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
close.png0.36KB0.20KB▼ 45.95%