83% auth-armor-passwordless-login

Code Review | Auth Armor – Passwordless Login

WordPress plugin Auth Armor – Passwordless Login scored83%from 54 tests.

About plugin

  • Plugin page: auth-armor-passwo...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 10, 2021
  • Latest release: Jan 24, 2022
  • Number of updates: 18
  • Update frequency: every 7.6 days
  • Top authors: autharmor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,070 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼5.87ms] Passed 4 tests

A check of server-side resources used by Auth Armor – Passwordless Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1946.64 ▲6.93
Dashboard /wp-admin3.63 ▲0.2954.59 ▼6.74
Posts /wp-admin/edit.php3.75 ▲0.3952.97 ▼1.21
Add New Post /wp-admin/post-new.php6.22 ▲0.3393.01 ▼13.20
Media Library /wp-admin/upload.php3.56 ▲0.3337.65 ▼2.34
Auth Armor Setting /wp-admin/admin.php?page=autharmor_setting3.4332.58
Auth Armor Setup /wp-admin/admin.php?page=autharmor_setup_wizard3.5335.13

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Auth Armor – Passwordless Login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.38 ▼0.341.98 ▲0.2147.04 ▲0.96
Dashboard /wp-admin2,211 ▲345.59 ▲0.0290.35 ▼0.8141.59 ▼0.07
Posts /wp-admin/edit.php2,113 ▲131.95 ▼0.0739.04 ▲2.4234.82 ▲0.18
Add New Post /wp-admin/post-new.php1,541 ▲1523.50 ▲0.05610.00 ▼74.8455.52 ▼6.65
Media Library /wp-admin/upload.php1,410 ▲104.31 ▲0.08100.52 ▼8.5746.83 ▲0.29
Auth Armor Setting /wp-admin/admin.php?page=autharmor_setting280.420.094.22
Auth Armor Setup /wp-admin/admin.php?page=autharmor_setup_wizard1,7202.3531.1939.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-posts
    • auth_armor_setup_wizard_confirm
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • auth_armor_setup_wizard
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=autharmor_setting
    • > Network (severe)
    wp-admin/admin.php?page=autharmor_setting - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: security, authentication, login, passwordless, faceid...

auth-armor-passwordless-login/auth-armor.php 69% from 13 tests

The main PHP file in "Auth Armor – Passwordless Login" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("auth-armor-passwordless-login.php" instead of "auth-armor.php")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

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
Success! There were no dangerous files found in this plugin3,362 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP81923081,462
CSS3220868
JavaScript462101791
SVG302241

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity38.40
▷ Minimum class complexity8.00
▷ Maximum class complexity108.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.61MB with 0.45MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/api-step.png237.63KB63.30KB▼ 73.36%
includes/images/project-step.png145.50KB30.21KB▼ 79.23%
includes/images/dashboard-step.png226.45KB56.85KB▼ 74.90%
includes/images/autharmor.png16.30KB5.55KB▼ 65.93%