84% passwordlessi

Code Review | PasswordleSSI

WordPress plugin PasswordleSSI scored84%from 54 tests.

About plugin

  • Plugin page: passwordlessi
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2023
  • Latest release: Mar 1, 2023
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: sideosgmbh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /123 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.67MB] [CPU: ▼21.46ms] Passed 4 tests

A check of server-side resources used by PasswordleSSI
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.24 ▲3.92
Dashboard /wp-admin3.34 ▼0.0143.95 ▼14.10
Posts /wp-admin/edit.php3.39 ▲0.0347.74 ▼2.13
Add New Post /wp-admin/post-new.php3.15 ▼2.7435.80 ▼66.11
Media Library /wp-admin/upload.php3.26 ▲0.0333.68 ▼3.50

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

PasswordleSSI: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲20314.04 ▼0.345.46 ▲3.6939.21 ▼3.39
Dashboard /wp-admin2,228 ▲374.97 ▼0.8899.17 ▼3.1382.61 ▲40.13
Posts /wp-admin/edit.php2,114 ▲282.05 ▲0.0438.29 ▲0.5935.32 ▼1.16
Add New Post /wp-admin/post-new.php1,553 ▲3918.10 ▲0.49706.08 ▲40.5858.39 ▲5.96
Media Library /wp-admin/upload.php1,410 ▲224.29 ▲0.0597.98 ▼2.1268.13 ▲21.87

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/passwordlessi/enqueue.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/passwordlessi/enqueue.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: login, passwordless, self sovereign identity, ssi, authentication...

passwordlessi/sideoslogin.php 85% from 13 tests

Analyzing the main PHP file in "PasswordleSSI" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("passwordlessi.php" instead of "sideoslogin.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin682 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP86738422
PO File238090
JavaScript3112285
CSS18043
Markdown126042

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.33
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
styles/icon.png1.59KB1.68KB0.00%
styles/powered.png8.84KB4.35KB▼ 50.81%