83% login-designer

Code Review | Custom Login Page Customizer - Login Designer

WordPress plugin Custom Login Page Customizer - Login Designer scored83%from 54 tests.

About plugin

  • Plugin page: login-designer
  • Plugin version: 1.6.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 16, 2017
  • Latest release: Oct 25, 2023
  • Number of updates: 108
  • Update frequency: every 20.1 days
  • Top authors: richtabor (60.19%)wpexpertsio (40.74%)

Code review

54 tests

User reviews

146 reviews

Install metrics

30,000+ active /267,550 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲5.54MB] [CPU: ▲28.87ms] 75% from 4 tests

Server-side resources used by Custom Login Page Customizer - Login Designer
Please take the time to fix the following items
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.54MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.27 ▲5.8064.09 ▲27.91
Dashboard /wp-admin9.29 ▲5.9486.72 ▲26.01
Posts /wp-admin/edit.php9.29 ▲5.9372.97 ▲26.40
Add New Post /wp-admin/post-new.php10.36 ▲4.48125.54 ▲35.14
Media Library /wp-admin/upload.php9.29 ▲6.0674.83 ▲38.89
Login Designer /wp-admin/themes.php?page=login-designer9.2966.14
↳ ⭐ Get Pro /wp-admin/themes.php?page=login-designer-get-pro9.2954.37
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2964.44

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 337 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
login_designer_settings
can_compress_scripts
fs_debug_mode
fs_active_plugins
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
fs_accounts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Custom Login Page Customizer - Login Designer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.38 ▲0.031.56 ▼0.0134.28 ▼6.55
Dashboard /wp-admin2,222 ▲455.55 ▼0.0794.82 ▲3.8051.07 ▲13.10
Posts /wp-admin/edit.php2,128 ▲282.02 ▼0.0134.94 ▼1.0941.01 ▲5.89
Add New Post /wp-admin/post-new.php1,548 ▲2223.06 ▲0.03603.49 ▼79.3750.37 ▼11.98
Media Library /wp-admin/upload.php1,427 ▲274.21 ▲0.0195.73 ▼4.6145.30 ▲1.55
Login Designer /wp-admin/themes.php?page=login-designer9881.7129.2162.46
↳ ⭐ Get Pro /wp-admin/themes.php?page=login-designer-get-pro1,8234.58140.37104.79
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0791.6923.4532.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • fs_debug_mode
    • widget_theysaidso_widget
    • db_upgraded
    • fs_accounts
    • theysaidso_admin_options
    • fs_active_plugins
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 26× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/login-designer/includes/settings/form.php:8
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/login-designer/includes/settings/button.php:8
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/login-designer/includes/settings/below.php:8
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/login-designer/includes/settings/checkbox.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_customize_preview() in wp-content/plugins/login-designer/includes/template-password-protected.php:11
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/login-designer/includes/settings/logo.php on line 8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/login-designer/includes/settings/background.php:9
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/login-designer/includes/settings/remember.php:8
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/login-designer/includes/settings/button.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/login-designer/includes/settings/labels.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: You can look at the official readme.txt

login-designer/login-designer.php 92% from 13 tests

The main PHP script in "Custom Login Page Customizer - Login Designer" version 1.6.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin49,886 lines of code in 259 files:
LanguageFilesBlank linesComment linesLines of code
PHP1829,44019,44541,668
JavaScript259343964,099
CSS3131022,319
Sass18306331,579
Markdown1680214
SVG1004
JSON1003

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity65.60
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.45
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes75
▷ Abstract classes22.67%
▷ Concrete classes7397.33%
▷ Final classes11.37%
Methods1,434
▷ Static methods20714.44%
▷ Public methods1,01971.06%
▷ Protected methods302.09%
▷ Private methods38526.85%
Functions123
▷ Named functions12198.37%
▷ Anonymous functions21.63%
Constants157
▷ Global constants11070.06%
▷ Class constants4729.94%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
includes/freemius/assets/img/LoginDesigner.png9.16KB5.26KB▼ 42.58%
includes/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
includes/freemius/assets/img/login-designer-pro.png9.16KB5.26KB▼ 42.58%
assets/images/rename-login-page.png50.75KB24.98KB▼ 50.77%