78% ownid-passwordless-login

Code Review | OwnID Passwordless Login

WordPress plugin OwnID Passwordless Login scored78%from 54 tests.

About plugin

  • Plugin page: ownid-passwordles...
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1
  • WordPress version: 6.3.1
  • First release: Nov 7, 2022
  • Latest release: Jul 31, 2023
  • Number of updates: 62
  • Update frequency: every 4.4 days
  • Top authors: victornavarro (85.48%)yedidya (16.13%)

Code review

54 tests

User reviews

19 reviews

Install metrics

100+ active /1,655 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.56MB] [CPU: ▼20.10ms] Passed 4 tests

A check of server-side resources used by OwnID Passwordless Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1336.49 ▲0.88
Dashboard /wp-admin3.43 ▲0.0943.38 ▼18.03
Posts /wp-admin/edit.php3.54 ▲0.1945.04 ▲0.79
Add New Post /wp-admin/post-new.php3.31 ▼2.5834.43 ▼64.04
Media Library /wp-admin/upload.php3.35 ▲0.1338.04 ▲4.83
OwnID Configuration /wp-admin/options-general.php?page=ownid3.3233.37

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
can_compress_scripts
ownid-env
ownid_infoTooltip_position
ownid-admin-auth-button
db_upgraded
widget_recent-posts
theysaidso_admin_options
ownid-account-auth-button
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for OwnID Passwordless Login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7714.43 ▲0.132.38 ▲0.8939.75 ▼1.53
Dashboard /wp-admin2,215 ▲245.86 ▲0.94100.57 ▼2.2539.00 ▼4.56
Posts /wp-admin/edit.php2,098 ▲92.02 ▲0.0135.64 ▼0.6632.01 ▲2.29
Add New Post /wp-admin/post-new.php1,536 ▲823.42 ▲5.10674.70 ▲73.1355.38 ▼2.99
Media Library /wp-admin/upload.php1,397 ▲124.30 ▲0.12111.07 ▲9.2346.61 ▲2.66
OwnID Configuration /wp-admin/options-general.php?page=ownid1,0312.0428.3730.34

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • ownid_infoTooltip_position
    • widget_recent-comments
    • ownid-account-auth-button
    • widget_recent-posts
    • theysaidso_admin_options
    • ownid-env
    • ownid-admin-auth-button
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ownid-passwordless-login/ownid-passwordless-login.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=ownid
    • > Network (severe)
    https://cdn.ownid.com/sdk/ - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: passwordless, passkeys, woocommerce, login, authentication...

ownid-passwordless-login/ownid-passwordless-login.php 92% from 13 tests

The entry point to "OwnID Passwordless Login" version 1.2.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)

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
Good job! No executable or dangerous file extensions detected587 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1201148580
CSS1407

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions34
▷ Named functions2985.29%
▷ Anonymous functions514.71%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected