74% wp-qr-code-login

Code Review | Unlock Digital (No Passwords)

WordPress plugin Unlock Digital (No Passwords) scored 74% from 54 tests.

About plugin

  • Plugin page: wp-qr-code-login
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jan 29, 2012
  • Latest release: Jun 28, 2015
  • Number of updates: 36
  • Update frequency: every 34.8 days
  • Top authors: jackreichert (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active / 3,445 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.63MB] [CPU: ▼172.17ms] Passed 4 tests

This is a short check of server-side resources used by Unlock Digital (No Passwords)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.7443.70 ▲21.66
Dashboard /wp-admin3.69 ▲0.6354.31 ▼1.69
Posts /wp-admin/edit.php3.74 ▲0.6355.19 ▲6.62
Add New Post /wp-admin/post-new.php6.05 ▲0.62104.24 ▼688.63
Media Library /wp-admin/upload.php3.63 ▲0.6241.71 ▼4.96
Unlock Digital /wp-admin/options-general.php?page=qr-login3.5434.55

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 1 new table, 1 new option
New tables
wp_qrLogin
New WordPress options
qrLogin_db_version

Browser metrics Passed 4 tests

A check of browser resources used by Unlock Digital (No Passwords)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,724 ▲8716.35 ▲0.808.70 ▼2.7948.47 ▲0.51
Dashboard /wp-admin2,972 ▲385.85 ▼0.36150.63 ▼27.26111.12 ▼3.09
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0067.16 ▼3.3290.41 ▼2.21
Add New Post /wp-admin/post-new.php1,618 ▼6521.46 ▲2.83324.06 ▼100.43105.23 ▼8.51
Media Library /wp-admin/upload.php1,815 ▲85.03 ▼0.01162.13 ▲14.92114.70 ▼14.00
Unlock Digital /wp-admin/options-general.php?page=qr-login1,0082.0958.8266.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_qrLogin
  • Zombie WordPress options were found after uninstall: 1 option
    • qrLogin_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-qr-code-login/qrLogin.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

wp-qr-code-login/qrLogin.php 92% from 13 tests

The primary PHP file in "Unlock Digital (No Passwords)" version 1.4.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-qr-code-login.php" instead of "qrLogin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,044 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27856442,989
JavaScript16832
Pascal1143323

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity56.00
▷ Minimum class complexity56.00
▷ Maximum class complexity56.00
Average method complexity4.24
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1164.71%
▷ Protected methods00.00%
▷ Private methods635.29%
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
There are no PNG files in this plugin