84% passwordless-entry

Code Review | Passwordless Entry

WordPress plugin Passwordless Entry scored 84% from 54 tests.

About plugin

  • Plugin page: passwordless-entry
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.0-5.7.1
  • WordPress version: 6.3.1
  • First release: May 1, 2021
  • Latest release: May 1, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: johnothecoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 469 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.72ms] Passed 4 tests

An overview of server-side resources used by Passwordless Entry
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.63 ▼3.70
Dashboard /wp-admin3.33 ▲0.0343.50 ▼4.64
Posts /wp-admin/edit.php3.38 ▲0.0346.04 ▼2.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.99 ▼3.77
Media Library /wp-admin/upload.php3.25 ▲0.0333.68 ▲0.46

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Passwordless Entry
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.41 ▼0.961.86 ▼0.4539.91 ▼3.71
Dashboard /wp-admin2,209 ▲215.81 ▼0.0795.69 ▼14.5035.42 ▼7.30
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0436.27 ▲0.1531.93 ▼1.17
Add New Post /wp-admin/post-new.php1,536 ▲323.52 ▲0.08579.03 ▼55.6151.32 ▼9.69
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0593.39 ▼0.7141.99 ▼0.39

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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
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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/passwordless-entry/passwordless-entry.php:66

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === passwordless-entry === )
You can look at the official readme.txt

passwordless-entry/passwordless-entry.php 92% from 13 tests

Analyzing the main PHP file in "Passwordless Entry" version 1.0
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin160 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP160109143
HTML44017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin