89% basic-front-end-login

Code Review | Basic Front-End Login

WordPress plugin Basic Front-End Login scored89%from 54 tests.

About plugin

  • Plugin page: basic-front-end-l...
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 16, 2020
  • Latest release: Sep 13, 2023
  • Number of updates: 6
  • Update frequency: every 177.0 days
  • Top authors: eemitch (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /1,938 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.01MB] [CPU: ▼4.17ms] Passed 4 tests

A check of server-side resources used by Basic Front-End Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.19 ▼1.86
Dashboard /wp-admin3.32 ▲0.0149.53 ▼3.67
Posts /wp-admin/edit.php3.37 ▲0.0152.25 ▼1.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.72 ▼9.87
Media Library /wp-admin/upload.php3.24 ▲0.0138.25 ▲3.58
Login Form /wp-admin/users.php?page=ee-basic-front-end-login3.2131.18

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Basic Front-End Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲3513.23 ▼1.151.79 ▼0.2139.60 ▲1.12
Dashboard /wp-admin2,225 ▲224.87 ▼0.03106.16 ▼1.2539.49 ▼9.11
Posts /wp-admin/edit.php2,104 ▲71.98 ▼0.0836.76 ▲0.6332.99 ▼7.36
Add New Post /wp-admin/post-new.php1,529 ▼1917.45 ▼5.90687.55 ▲36.5055.70 ▲4.02
Media Library /wp-admin/upload.php1,407 ▲44.20 ▼0.0196.25 ▼7.1844.54 ▲0.56
Login Form /wp-admin/users.php?page=ee-basic-front-end-login8882.0423.0739.15

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: user login, no admin bar, login form, no dashboard, login redirect

basic-front-end-login/ee-basic-front-end-login.php 85% from 13 tests

The principal PHP file in "Basic Front-End Login" v. 1.2.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("basic-front-end-login.php" instead of "ee-basic-front-end-login.php")

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
Everything looks great! No dangerous files found in this plugin1,396 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PO File113083081,126
PHP110538171
CSS116184
JavaScript16115

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected