84% sqrl-login

Code Review | SQRL Login

WordPress plugin SQRL Login scored 84% from 54 tests.

About plugin

  • Plugin page: sqrl-login
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.2-5.9.1
  • WordPress version: 6.3.1
  • First release: Jul 2, 2019
  • Latest release: Mar 3, 2022
  • Number of updates: 33
  • Update frequency: every 29.6 days
  • Top authors: kalaspuffar (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active / 3,134 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.07ms] Passed 4 tests

An overview of server-side resources used by SQRL Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0543.07 ▲2.04
Dashboard /wp-admin3.34 ▲0.0452.62 ▼3.19
Posts /wp-admin/edit.php3.39 ▲0.0447.67 ▼1.49
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.97 ▼20.88
Media Library /wp-admin/upload.php3.27 ▲0.0433.36 ▼2.71
SQRL Login /wp-admin/options-general.php?page=sqrl_login3.2329.74

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

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

Browser metrics Passed 4 tests

SQRL Login: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲19713.48 ▼0.901.96 ▲0.0234.01 ▼8.27
Dashboard /wp-admin2,209 ▲214.84 ▼1.07115.51 ▲6.5542.28 ▼2.75
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0236.00 ▼5.2032.35 ▼4.55
Add New Post /wp-admin/post-new.php1,533 ▼023.38 ▲0.22690.02 ▲36.9754.75 ▼2.38
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.1698.39 ▼3.0442.14 ▼1.79
SQRL Login /wp-admin/options-general.php?page=sqrl_login7982.0623.1326.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • sqrl_redirect_url
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sqrl-login/sqrl-login.php:79

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: login, sqrl

sqrl-login/sqrl-login.php 92% from 13 tests

The main PHP file in "SQRL Login" ver. 2.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected1,091 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP2187489966
CSS16153
JavaScript366451
SVG20121

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity142.00
▷ Minimum class complexity142.00
▷ Maximum class complexity142.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods2560.98%
▷ Protected methods00.00%
▷ Private methods1639.02%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants00.00%
▷ Class constants21100.00%
▷ Public constants21100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/en_badge_web_generic.png13.63KB6.37KB▼ 53.29%
images/SQRL_icon_normal_32.png1.55KB1.17KB▼ 24.42%
images/microsoft.png6.08KB2.96KB▼ 51.31%