84% beyond-identity-passwordless

Code Review | Beyond Identity Passwordless

WordPress plugin Beyond Identity Passwordless scored84%from 54 tests.

About plugin

  • Plugin page: beyond-identity-p...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Oct 10, 2023
  • Latest release: Oct 17, 2023
  • Number of updates: 7
  • Update frequency: every 1.1 days
  • Top authors: annagarcia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /46 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.63MB] [CPU: ▼18.00ms] Passed 4 tests

An overview of server-side resources used by Beyond Identity Passwordless
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.83 ▲3.79
Dashboard /wp-admin3.36 ▲0.0249.27 ▼8.90
Posts /wp-admin/edit.php3.41 ▲0.0643.38 ▼4.99
Add New Post /wp-admin/post-new.php3.24 ▼2.6541.19 ▼59.53
Media Library /wp-admin/upload.php3.29 ▲0.0637.03 ▲1.41
Beyond Identity /wp-admin/options-general.php?page=beyond_identity_settings3.2534.70

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Beyond Identity Passwordless
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲11214.37 ▲0.021.91 ▲0.3733.11 ▼9.99
Dashboard /wp-admin2,218 ▲415.61 ▲0.0585.85 ▲1.2838.54 ▼2.66
Posts /wp-admin/edit.php2,123 ▲231.99 ▼0.0033.70 ▼10.0935.10 ▼4.23
Add New Post /wp-admin/post-new.php1,542 ▲1423.75 ▲0.53686.13 ▲33.6859.67 ▼7.46
Media Library /wp-admin/upload.php1,420 ▲204.17 ▼0.0594.51 ▼18.8943.48 ▼5.40
Beyond Identity /wp-admin/options-general.php?page=beyond_identity_settings9142.1221.4430.85

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 9× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/beyond-identity-passwordless/openid-connect/openid-connect-generic.php
    • > /wp-content/plugins/beyond-identity-passwordless/src/login-form.php
    • > /wp-content/plugins/beyond-identity-passwordless/openid-connect/includes/openid-connect-generic-login-form.php
    • > /wp-content/plugins/beyond-identity-passwordless/openid-connect/includes/openid-connect-generic-client.php
    • > /wp-content/plugins/beyond-identity-passwordless/openid-connect/includes/openid-connect-generic-client-wrapper.php
    • > /wp-content/plugins/beyond-identity-passwordless/openid-connect/includes/openid-connect-generic-option-settings.php
    • > /wp-content/plugins/beyond-identity-passwordless/src/settings.php
    • > /wp-content/plugins/beyond-identity-passwordless/src/users-page.php
    • > /wp-content/plugins/beyond-identity-passwordless/beyond-identity-passwordless.php

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: passwordless, authentication, openidconnect, apps, security...

beyond-identity-passwordless/beyond-identity-passwordless.php Passed 13 tests

"Beyond Identity Passwordless" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
Passwordless Authentication for Wordpress.

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 detected1,528 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP93648151,493
Markdown112035

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity24.11
▷ Minimum class complexity2.00
▷ Maximum class complexity131.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods87
▷ Static methods55.75%
▷ Public methods8193.10%
▷ Protected methods00.00%
▷ Private methods66.90%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin