84% wp-front-end-login

Code Review | WP Front End Login

WordPress plugin WP Front End Login scored 84% from 54 tests.

About plugin

  • Plugin page: wp-front-end-login
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.3-4.7.4
  • WordPress version: 6.3.1
  • First release: Apr 23, 2017
  • Latest release: Apr 26, 2017
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: bradmkjr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,146 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.36MB] [CPU: ▼14.21ms] Passed 4 tests

This is a short check of server-side resources used by WP Front End Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.75 ▼36.65
Dashboard /wp-admin3.31 ▲0.0145.44 ▼8.66
Posts /wp-admin/edit.php3.36 ▲0.0049.36 ▲2.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.91 ▼8.47
Media Library /wp-admin/upload.php3.23 ▲0.0032.39 ▼3.04

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Front End Login
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.191.81 ▼0.0837.75 ▼7.36
Dashboard /wp-admin2,206 ▲154.88 ▼0.11112.29 ▼0.4641.81 ▼5.75
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0335.82 ▼2.9231.35 ▼2.70
Add New Post /wp-admin/post-new.php1,533 ▼1023.26 ▲5.19672.44 ▼16.2864.39 ▼0.81
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0094.04 ▼8.5740.50 ▼4.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-front-end-login/wp-front-end-login.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: shortcode, authentication, login, wp-loginphp, wp-login

wp-front-end-login/wp-front-end-login.php Passed 13 tests

The principal PHP file in "WP Front End Login" v. 1.4.1 is loaded by WordPress automatically on each request
45 characters long description:
Does some stuff to make front end login work.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin786 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1324273732
Markdown145049
JSON1105

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 114)
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity187.00
▷ Minimum class complexity187.00
▷ Maximum class complexity187.00
Average method complexity13.40
▷ Minimum method complexity1.00
▷ Maximum method complexity114.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin