10% qr-user-login

Code Review | QR User Login

WordPress plugin QR User Login scored 10% from 54 tests.

About plugin

  • Plugin page: qr-user-login
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 8, 2016
  • Latest release: Nov 11, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: acasado (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 1,398 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/qr-user-login/qr-user-login.php+31
    Methods with the same name as their class will not be constructors in a future version of PHP; QR_User_Login has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼53.56ms] Passed 4 tests

A check of server-side resources used by QR User Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.02 ▼40.34
Dashboard /wp-admin2.10 ▼1.217.34 ▼40.96
Posts /wp-admin/edit.php2.10 ▼1.265.75 ▼43.61
Add New Post /wp-admin/post-new.php2.10 ▼3.795.22 ▼89.31
Media Library /wp-admin/upload.php2.10 ▼1.136.65 ▼28.60
QR Login Capability /wp-admin/users.php?page=qr-login-capability2.185.63

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

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

Browser metrics Passed 4 tests

Checking browser requirements for QR User Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.18 ▼1.111.73 ▼0.3743.15 ▼7.32
Dashboard /wp-admin2,207 ▲164.85 ▼1.03101.84 ▼13.6041.94 ▼6.56
Posts /wp-admin/edit.php2,096 ▲71.99 ▲0.0134.90 ▲0.2831.73 ▼4.49
Add New Post /wp-admin/post-new.php1,536 ▲323.31 ▲0.27652.12 ▼9.6453.21 ▼7.89
Media Library /wp-admin/upload.php1,392 ▲134.21 ▲0.0392.33 ▼9.5042.45 ▼0.08
QR Login Capability /wp-admin/users.php?page=qr-login-capability7962.0323.9525.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/qr-user-login/qr-user-login.php+31
    Methods with the same name as their class will not be constructors in a future version of PHP; QR_User_Login has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/users.php?page=qr-login-capability
    • > Deprecated in wp-content/plugins/qr-user-login/qr-user-login.php+31
    Methods with the same name as their class will not be constructors in a future version of PHP; QR_User_Login has a deprecated constructor

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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-user-login/qr-user-login.php:46
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/qr-user-login/templates/edit_user_profile.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/qr-user-login/templates/qr-login-capability.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

qr-user-login/qr-user-login.php Passed 13 tests

The main PHP script in "QR User Login" version 1.0.0 is automatically included on every request by WordPress
47 characters long description:
Allow users to login using a link (or QR code).

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
No dangerous file extensions were detected119 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32731119

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin