10% superauth

Code Review | SuperAuth Passwordless Sign In & Alert Service

WordPress plugin SuperAuth Passwordless Sign In & Alert Service scored10%from 54 tests.

About plugin

  • Plugin page: superauth
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 12, 2016
  • Latest release: May 27, 2023
  • Number of updates: 39
  • Update frequency: every 63.8 days
  • Top authors: superauth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,179 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.11ms] Passed 4 tests

A check of server-side resources used by SuperAuth Passwordless Sign In & Alert Service
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0634.93 ▼3.79
Dashboard /wp-admin3.38 ▲0.0841.19 ▼6.47
Posts /wp-admin/edit.php3.49 ▲0.1445.76 ▼1.26
Add New Post /wp-admin/post-new.php5.96 ▲0.0778.31 ▼12.53
Media Library /wp-admin/upload.php3.30 ▲0.0731.86 ▼1.65
SuperAuth /wp-admin/options-general.php?page=my-setting-admin3.2725.68

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
hclpage
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for SuperAuth Passwordless Sign In & Alert Service
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.38 ▲0.001.75 ▲0.0440.10 ▲0.96
Dashboard /wp-admin2,210 ▲195.85 ▼0.03112.07 ▲12.5042.85 ▼0.59
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0237.09 ▼3.4235.06 ▲0.42
Add New Post /wp-admin/post-new.php1,536 ▼623.17 ▲4.81665.79 ▲58.1366.86 ▲5.00
Media Library /wp-admin/upload.php1,392 ▲14.20 ▲0.0293.05 ▼5.1341.31 ▼4.73
SuperAuth /wp-admin/options-general.php?page=my-setting-admin8032.0328.8831.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • hclpage
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: A description for screenshot #4 is missing in superauth/assets to your readme.txt
  • Tags: There are too many tags (52 tag instead of maximum 10)
Please take inspiration from this readme.txt

superauth/superauth.php 92% from 13 tests

The main PHP file in "SuperAuth Passwordless Sign In & Alert Service" ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 311 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected458 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101144452
CSS1006

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin