10% loginid-directweb

Code Review | FIDO-certified Passwordless biometric login

WordPress plugin FIDO-certified Passwordless biometric login scored 10% from 54 tests.

About plugin

  • Plugin page: loginid-directweb
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.9
  • WordPress version: 6.3.1
  • First release: Apr 1, 2021
  • Latest release: Jun 7, 2022
  • Number of updates: 27
  • Update frequency: every 18.9 days
  • Top authors: loginidauth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 3,672 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/loginid-directweb/functions/directweb.php+183
    Undefined index: enable_woo_integration

Server metrics [RAM: ▼1.95MB] [CPU: ▼50.15ms] Passed 4 tests

This is a short check of server-side resources used by FIDO-certified Passwordless biometric login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.424.33 ▼36.54
Dashboard /wp-admin2.05 ▼1.255.78 ▼44.14
Posts /wp-admin/edit.php2.06 ▼1.305.55 ▼38.90
Add New Post /wp-admin/post-new.php2.06 ▼3.835.85 ▼81.02
Media Library /wp-admin/upload.php2.06 ▼1.175.79 ▼25.94
LoginID DirectWeb /wp-admin/options-general.php?page=loginid-directweb2.066.15

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
abl_loginid_dw_version
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by FIDO-certified Passwordless biometric login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲12413.61 ▼0.3916.87 ▲14.7739.39 ▼6.62
Dashboard /wp-admin2,213 ▲255.91 ▲1.0697.38 ▼10.9339.70 ▼2.46
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0135.21 ▲1.6532.51 ▼2.31
Add New Post /wp-admin/post-new.php1,545 ▲3118.35 ▲0.65611.01 ▼70.9845.19 ▼9.14
Media Library /wp-admin/upload.php1,395 ▲134.36 ▲0.19100.03 ▼6.4941.04 ▼6.08
LoginID DirectWeb /wp-admin/options-general.php?page=loginid-directweb1,0812.0222.1937.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/loginid-directweb/functions/directweb.php+183
    Undefined index: enable_woo_integration
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=loginid-directweb
    • > Notice in wp-content/plugins/loginid-directweb/admin/admin-ui-render.php+72
    Undefined index: enable_woo_integration

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: fraud prevention, oauth 20, biometrics, psd2, fido...

loginid-directweb/loginid-directweb.php Passed 13 tests

Analyzing the main PHP file in "FIDO-certified Passwordless biometric login" version 1.1.0
56 characters long description:
Provides any user the option to login without a password

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected12,545 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
JSON5009,186
PHP285871,2702,523
Markdown21290400
JavaScript43032329
CSS313198
YAML1209

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity19.17
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity3.97
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes18
▷ Abstract classes633.33%
▷ Concrete classes1266.67%
▷ Final classes00.00%
Methods111
▷ Static methods3834.23%
▷ Public methods7365.77%
▷ Protected methods2219.82%
▷ Private methods1614.41%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants40
▷ Global constants512.50%
▷ Class constants3587.50%
▷ Public constants3188.57%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.77MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/logo2.png527.74KB121.86KB▼ 76.91%
img/plugin-dashboard.png33.10KB10.50KB▼ 68.27%
img/logo.png43.16KB21.85KB▼ 49.37%
img/setup-wizard.png131.67KB49.38KB▼ 62.50%
img/loginid-dashboard.png33.86KB12.15KB▼ 64.11%