84% separate-login-form

Code Review | Separate Login Form

WordPress plugin Separate Login Form scored84%from 54 tests.

About plugin

  • Plugin page: separate-login-form
  • Plugin version: 3.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.5-5.9.0
  • WordPress version: 6.3.1
  • First release: Mar 28, 2018
  • Latest release: Feb 12, 2022
  • Number of updates: 14
  • Update frequency: every 88.6 days
  • Top authors: dcangulo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,024 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Separate Login Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.62 ▼3.52
Dashboard /wp-admin3.34 ▲0.0344.49 ▼4.60
Posts /wp-admin/edit.php3.39 ▲0.0348.15 ▼2.33
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.43 ▼2.52
Media Library /wp-admin/upload.php3.26 ▲0.0332.30 ▼5.17
Separate Login Form /wp-admin/options-general.php?page=slf_plugin_settings3.2231.40

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Separate Login Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲6514.29 ▼0.3713.57 ▲11.4937.07 ▼12.63
Dashboard /wp-admin2,210 ▲224.84 ▼0.0297.51 ▼16.4641.36 ▼7.04
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0140.13 ▲4.7035.72 ▲1.28
Add New Post /wp-admin/post-new.php1,517 ▲317.70 ▲0.10657.03 ▼53.5451.25 ▼3.00
Media Library /wp-admin/upload.php1,395 ▲74.20 ▲0.0297.10 ▼10.4541.37 ▼7.23
Separate Login Form /wp-admin/options-general.php?page=slf_plugin_settings8302.0323.8324.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/separate-login-form/constants.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/separate-login-form/views/slf_login_form.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/separate-login-form/constants.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/separate-login-form/views/slf_settings.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: custom, admin, login, shortcode, captcha...

separate-login-form/index.php 92% from 13 tests

This is the main PHP file of "Separate Login Form" version 3.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("separate-login-form.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin230 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP66222199
Markdown19024
CSS1107

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.00
▷ Minimum class complexity7.00
▷ Maximum class complexity9.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1280.00%
▷ Protected methods00.00%
▷ Private methods320.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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