84% otpless

Code Review | OTP-less one tap Sign in

WordPress plugin OTP-less one tap Sign in scored84%from 54 tests.

About plugin

  • Plugin page: otpless
  • Plugin version: 2.0.39
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.1-6.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2023
  • Latest release: Nov 27, 2023
  • Number of updates: 92
  • Update frequency: every 3.1 days
  • Top authors: thedrifted (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active /5,153 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼1.72ms] Passed 4 tests

This is a short check of server-side resources used by OTP-less one tap Sign in
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1937.75 ▼3.02
Dashboard /wp-admin3.58 ▲0.2350.42 ▼6.36
Posts /wp-admin/edit.php3.62 ▲0.2750.05 ▲5.56
Add New Post /wp-admin/post-new.php6.10 ▲0.2192.36 ▼3.06
Media Library /wp-admin/upload.php3.44 ▲0.2138.26 ▲6.61
OTPless /wp-admin/options-general.php?page=OTPless3.4334.95

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

OTP-less one tap Sign in: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.22 ▼0.501.61 ▼0.1039.91 ▼4.57
Dashboard /wp-admin2,202 ▲275.61 ▼0.1694.86 ▼11.1042.36 ▼3.87
Posts /wp-admin/edit.php2,101 ▲11.98 ▲0.0340.25 ▲1.7134.02 ▼1.39
Add New Post /wp-admin/post-new.php1,529 ▼123.42 ▲0.21608.52 ▼29.1952.90 ▲2.02
Media Library /wp-admin/upload.php1,404 ▲14.19 ▲0.01117.08 ▲15.4548.04 ▲3.14
OTPless /wp-admin/options-general.php?page=OTPless1,4542.1225.5675.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/otpless/includes/templates/otpless-login-page.php
    • > /wp-content/plugins/otpless/templates/otpless-login-page.php
    • > /wp-content/plugins/otpless/includes/custom-myaccount-page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: passwordless, login, security, authentication, signup

otpless/wp-otpless.php 85% from 13 tests

Analyzing the main PHP file in "OTP-less one tap Sign in" version 2.0.39
Please take the time to 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
  • Main file name: Name the main plugin file the same as the plugin slug ("otpless.php" instead of "wp-otpless.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,624 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP163665892,377
SVG1320120
JavaScript320082
CSS20028
JSON20017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity28.43
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods68
▷ Static methods1826.47%
▷ Public methods6494.12%
▷ Protected methods22.94%
▷ Private methods22.94%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/image/frame-52983071@3x.png17.38KB8.06KB▼ 53.61%
assets/img/short-logo.png12.24KB5.36KB▼ 56.25%