78% fp-front-end-login-form

Code Review | FP Front End Login Form

WordPress plugin FP Front End Login Form scored78%from 54 tests.

About plugin

  • Plugin page: fp-front-end-logi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.2
  • WordPress version: 6.3.1
  • First release: Feb 6, 2018
  • Latest release: Feb 8, 2018
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: futureprofilez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /999 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by FP Front End Login Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.02 ▼1.07
Dashboard /wp-admin3.33 ▲0.0347.62 ▲0.77
Posts /wp-admin/edit.php3.38 ▲0.0350.93 ▲0.35
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.02 ▼26.38
Media Library /wp-admin/upload.php3.26 ▲0.0333.88 ▲4.60
FP Front End Login /wp-admin/options-general.php?page=fp-fel3.2230.99

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_fp_fel_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for FP Front End Login Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.48 ▲0.091.88 ▲0.0741.70 ▼0.30
Dashboard /wp-admin2,207 ▲525.83 ▲0.2297.25 ▼7.8136.43 ▼8.89
Posts /wp-admin/edit.php2,090 ▼22.04 ▲0.0139.36 ▼3.0833.44 ▼4.93
Add New Post /wp-admin/post-new.php1,545 ▲623.08 ▲0.20652.87 ▲60.8858.29 ▼3.52
Media Library /wp-admin/upload.php1,386 ▼24.19 ▼0.0495.58 ▼0.8640.13 ▼3.68
FP Front End Login /wp-admin/options-general.php?page=fp-fel8112.0425.7429.49

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_fp_fel_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=fp-fel
    • > Notice in wp-content/plugins/fp-front-end-login-form/includes/admin/class-fp-front-end-login-admin.php+169
    Trying to access array offset on value of type bool

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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fp-front-end-login-form/includes/partials/login-form-widget.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fp-front-end-login-form/includes/partials/login-form.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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:
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

fp-front-end-login-form/fp-front-end-login.php 85% from 13 tests

The primary PHP file in "FP Front End Login Form" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 248 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fp-front-end-login-form.php" instead of "fp-front-end-login.php")

Code Analysis Passed 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 plugin394 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP895392383
CSS10011

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.19
Average class complexity2.83
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.35
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected