58% qrlogin

Code Review | qrLogin

WordPress plugin qrLogin scored58%from 54 tests.

About plugin

  • Plugin page: qrlogin
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 24, 2017
  • Latest release: Oct 28, 2017
  • Number of updates: 22
  • Update frequency: every 3.0 days
  • Top authors: qrlogin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,004 total downloads

Benchmarks

Plugin footprint 48% 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.99MB] [CPU: ▼40.17ms] Passed 4 tests

Server-side resources used by qrLogin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▼0.6117.71 ▼24.32
Dashboard /wp-admin3.07 ▼0.2326.87 ▼30.97
Posts /wp-admin/edit.php3.07 ▼0.2926.04 ▼27.47
Add New Post /wp-admin/post-new.php3.07 ▼2.8227.28 ▼77.90
Media Library /wp-admin/upload.php3.07 ▼0.1623.43 ▼12.55
qrLogin /wp-admin/options-general.php?page=qrLogin3.0727.78

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 14 new options
New tables
wp_qrlogin
New WordPress options
qrlogin_qrcode_back_color
qrlogin_del_http
qrlogin_timeout
theysaidso_admin_options
qrlogin_login_timeout
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
qrlogin_qrcode_fore_color
qrlogin_post_timeout
...

Browser metrics Passed 4 tests

A check of browser resources used by qrLogin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲7014.54 ▲0.231.73 ▼0.4141.85 ▼1.38
Dashboard /wp-admin2,210 ▲195.84 ▼0.05113.19 ▲3.3741.08 ▼2.30
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0343.39 ▲5.6735.19 ▼0.20
Add New Post /wp-admin/post-new.php1,536 ▲823.19 ▲4.86656.00 ▼28.6753.84 ▼8.42
Media Library /wp-admin/upload.php1,395 ▲134.20 ▼0.1098.91 ▼11.2847.72 ▲2.60
qrLogin /wp-admin/options-general.php?page=qrLogin1,3322.6748.9624.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie tables were found after uninstall: 1 table
    • wp_qrlogin
  • The uninstall procedure has failed, leaving 14 options in the database
    • widget_recent-posts
    • qrlogin_poll_lifetime
    • qrlogin_login_timeout
    • theysaidso_admin_options
    • qrlogin_del_http
    • can_compress_scripts
    • db_upgraded
    • qrlogin_timeout
    • qrlogin_qrcode_back_color
    • widget_recent-comments
    • ...

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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=qrLogin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/qrlogin/qrlogin.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: login, qrcode

qrlogin/qrlogin.php Passed 13 tests

The main file in "qrLogin" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
112 characters long description:
qrLogin - fast, easy, free, open, secure login system! For login run qrLogin on smartphone and scan the 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
Everything looks great! No dangerous files found in this plugin1,575 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG301643
JavaScript173127414
PHP24755393
PO File14496125

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions15
▷ Named functions15100.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