73% login-customizer

Code Review | Custom Login Page Customizer

WordPress plugin Custom Login Page Customizer scored73%from 54 tests.

About plugin

  • Plugin page: login-customizer
  • Plugin version: 2.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 11, 2014
  • Latest release: Nov 7, 2023
  • Number of updates: 67
  • Update frequency: every 48.6 days
  • Top authors: hiddenpearls (49.25%)codeinwp (38.81%)hardeepasrani (14.93%)

Code review

54 tests

User reviews

363 reviews

Install metrics

90,000+ active /1,438,122 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲5.11MB] [CPU: ▲32.11ms] 75% from 4 tests

Analyzing server-side resources used by Custom Login Page Customizer
Please have a look at the following items
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.11MB on /wp-admin/admin.php?page=login-customizer-help)
PageMemory (MB)CPU Time (ms)
Home /8.94 ▲5.4770.15 ▲26.86
Dashboard /wp-admin8.96 ▲5.6179.58 ▲18.63
Posts /wp-admin/edit.php8.96 ▲5.6089.54 ▲40.33
Add New Post /wp-admin/post-new.php9.63 ▲3.74144.53 ▲49.28
Media Library /wp-admin/upload.php8.96 ▲5.7376.93 ▲42.61
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius8.9668.00
Custom Login Page Customizer /wp-admin/admin.php?page=login-customizer8.9666.83
Settings /wp-admin/admin.php?page=login-customizer-settings8.9663.91
Help /wp-admin/admin.php?page=login-customizer-help8.9665.67

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 284 new files
Database: no new tables, 12 new options
New WordPress options
db_upgraded
fs_debug_mode
widget_theysaidso_widget
logincust_setting
fs_accounts
widget_recent-posts
login_customizer_options
login_customizer_settings
widget_recent-comments
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Login Page Customizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9814.66 ▲0.381.80 ▲0.0427.71 ▼14.56
Dashboard /wp-admin2,248 ▲715.64 ▼0.0193.38 ▲9.4145.01 ▲7.01
Posts /wp-admin/edit.php2,151 ▲482.04 ▲0.1039.54 ▼1.1839.78 ▲4.05
Add New Post /wp-admin/post-new.php1,558 ▲3223.17 ▼0.03620.68 ▼66.4859.55 ▲0.99
Media Library /wp-admin/upload.php1,453 ▲534.18 ▼0.07102.23 ▼8.7244.13 ▼3.75
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,0841.6924.9925.71
Custom Login Page Customizer /wp-admin/admin.php?page=login-customizer9891.8528.0262.25
Settings /wp-admin/admin.php?page=login-customizer-settings9701.9733.7833.62
Help /wp-admin/admin.php?page=login-customizer-help8502.0222.4832.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/login-customizer/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • widget_theysaidso_widget
    • fs_accounts
    • widget_recent-posts
    • fs_debug_mode
    • logincust_setting
    • login_customizer_options
    • can_compress_scripts
    • login_customizer_settings
    • fs_active_plugins
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 46× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/login-customizer/src/Customizer/Panel/Controls/Toggle.php:30
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/login-customizer/src/Customizer/Panel/Controls/Range_Slider.php on line 27
    • > PHP Warning
      include_once(ABSPATHwp-includes/class-wp-customize-control.php): failed to open stream: No such file or directory in wp-content/plugins/login-customizer/src/Customizer/Panel/Controls/Padding.php on line 12
    • > PHP Warning
      include_once(ABSPATHwp-includes/class-wp-customize-control.php): failed to open stream: No such file or directory in wp-content/plugins/login-customizer/src/Customizer/Panel/Controls/Toggle.php on line 28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_customize_preview() in wp-content/plugins/login-customizer/src/Customizer/template-login-customizer.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'LoginCustomizer\\Essentials' not found in wp-content/plugins/login-customizer/src/Customizer/Initial_Setup.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-customizer/vendor/codeinwp/themeisle-sdk/load.php:35
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-includes/class-wp-customize-control.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/login-customizer/src/Customizer/Panel/Sections/Templates.php on line 18
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-includes/class-wp-customize-control.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/login-customizer/src/Customizer/Panel/Controls/Radio_Images.php on line 28
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/login-customizer/src/Customizer/Panel/Controls/Range_Slider.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The main PHP file in "Custom Login Page Customizer" ver. 2.3.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.0")

Code Analysis 97% from 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 plugin43,861 lines of code in 226 files:
LanguageFilesBlank linesComment linesLines of code
PHP1869,57920,07841,158
JavaScript10190991,373
CSS215881866
Markdown41230326
JSON400126
SVG10012

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity50.44
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces10
Interfaces1
Traits0
Classes104
▷ Abstract classes43.85%
▷ Concrete classes10096.15%
▷ Final classes22.00%
Methods1,617
▷ Static methods21713.42%
▷ Public methods1,17572.67%
▷ Protected methods281.73%
▷ Private methods41425.60%
Functions115
▷ Named functions11095.65%
▷ Anonymous functions54.35%
Constants159
▷ Global constants10566.04%
▷ Class constants5433.96%
▷ Public constants54100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/Customizer/Templates/Material/assets/logo.png6.62KB4.18KB▼ 36.81%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
src/Customizer/Templates/Material/assets/material.png22.55KB11.99KB▼ 46.85%
src/Customizer/Panel/Controls/Assets/img/transparency-grid.png2.58KB2.80KB0.00%