78% authenticator

Code Review | Authenticator

WordPress plugin Authenticator scored78%from 54 tests.

About plugin

  • Plugin page: authenticator
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Aug 17, 2008
  • Latest release: Nov 23, 2022
  • Number of updates: 81
  • Update frequency: every 64.4 days
  • Top authors: Bueltge (97.53%)vanvox (3.7%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /87,892 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
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼10.46ms] Passed 4 tests

An overview of server-side resources used by Authenticator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0734.99 ▼6.57
Dashboard /wp-admin3.44 ▲0.0946.20 ▼18.61
Posts /wp-admin/edit.php3.55 ▲0.1945.82 ▼0.26
Add New Post /wp-admin/post-new.php6.03 ▲0.1579.29 ▼16.39
Media Library /wp-admin/upload.php3.36 ▲0.1334.91 ▲2.14

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
authenticator_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Authenticator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.26 ▼1.034.36 ▲2.4341.11 ▼2.62
Dashboard /wp-admin2,213 ▲315.90 ▼0.00116.52 ▼2.5742.29 ▼6.35
Posts /wp-admin/edit.php2,099 ▲102.03 ▼0.0341.02 ▲6.4034.17 ▼1.45
Add New Post /wp-admin/post-new.php1,543 ▲2418.34 ▼4.79590.84 ▼55.0353.77 ▼1.59
Media Library /wp-admin/upload.php1,401 ▲134.25 ▲0.0495.19 ▼2.8142.52 ▼1.03

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/authenticator/authenticator.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Authenticator_Settings' not found in wp-content/plugins/authenticator/inc/class-Authenticator_Settings_UI.php:9

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 96% from 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
5 plugin tags: login, accessible, members, access, authentification

authenticator/authenticator.php 92% from 13 tests

Analyzing the main PHP file in "Authenticator" version 1.3.1
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 250 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
Everything looks great! No dangerous files found in this plugin799 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6212415763
JavaScript111636

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity18.17
▷ Minimum class complexity4.00
▷ Maximum class complexity38.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods41
▷ Static methods819.51%
▷ Public methods3687.80%
▷ Protected methods512.20%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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