63% easy-login-form

Code Review | Easy Login Form

WordPress plugin Easy Login Form scored63%from 54 tests.

About plugin

  • Plugin page: easy-login-form
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Aug 15, 2014
  • Latest release: Nov 2, 2015
  • Number of updates: 7
  • Update frequency: every 91.0 days
  • Top authors: jokioki (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /4,265 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.95MB] [CPU: ▼33.54ms] Passed 4 tests

Server-side resources used by Easy Login Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.77 ▼0.81
Dashboard /wp-admin3.00 ▼0.3121.79 ▼24.07
Posts /wp-admin/edit.php3.00 ▼0.3622.78 ▼28.29
Add New Post /wp-admin/post-new.php3.00 ▼2.8923.02 ▼68.40
Media Library /wp-admin/upload.php3.00 ▼0.2320.88 ▼13.41
Easy Login Form /wp-admin/options-general.php?page=options_elf_page3.0023.27

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy Login Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.44 ▼0.922.00 ▲0.2344.60 ▲3.08
Dashboard /wp-admin2,207 ▲195.83 ▲0.9397.92 ▼7.1937.34 ▼3.81
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0332.99 ▼0.3533.06 ▼0.25
Add New Post /wp-admin/post-new.php1,536 ▲1722.91 ▼0.12648.32 ▼5.0860.66 ▲4.04
Media Library /wp-admin/upload.php1,389 ▼24.11 ▼0.10102.06 ▲4.3244.01 ▲2.49
Easy Login Form /wp-admin/options-general.php?page=options_elf_page1,0832.0224.3194.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=options_elf_page
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/options-general.php?page=options_elf_page
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Easy_Login_Form_Admin::build_elf_options_page() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=options_elf_page
    • > Notice in wp-content/plugins/easy-login-form/admin/partials/easy-login-form.php+143
    Undefined index: back
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=options_elf_page
    • > Notice in wp-content/plugins/easy-login-form/admin/partials/easy-login-form.php+144
    Undefined index: fback
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=options_elf_page
    • > Notice in wp-content/plugins/easy-login-form/admin/partials/easy-login-form.php+203
    Undefined index: ffront

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/easy-login-form/admin/partials/easy-login-form.php:94

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=options_elf_page
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=options_elf_page 237 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=options_elf_page
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=options_elf_page 246 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=options_elf_page
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=options_elf_page 255 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=options_elf_page
    • > Network (severe)
    wp-content/themes/twentytwentyone/ - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: login form admin style form user

easy-login-form/easy-login-form.php Passed 13 tests

"Easy Login Form" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
26 characters long description:
Make a nicer login screen.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected436 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP570204372
CSS20464

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1482.35%
▷ Protected methods00.00%
▷ Private methods317.65%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/title.png5.32KB3.79KB▼ 28.83%