83% colorlib-login-customizer

Code Review | Custom Login Page Customizer by Colorlib

WordPress plugin Custom Login Page Customizer by Colorlib scored83%from 54 tests.

About plugin

  • Plugin page: colorlib-login-cu...
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Apr 17, 2018
  • Latest release: May 24, 2022
  • Number of updates: 48
  • Update frequency: every 31.2 days
  • Top authors: colorlibplugins (45.83%)machothemes (33.33%)giucu91 (20.83%)raldea89 (6.25%)

Code review

54 tests

User reviews

422 reviews

Install metrics

70,000+ active /806,183 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.24MB] [CPU: ▼10.65ms] Passed 4 tests

Server-side resources used by Custom Login Page Customizer by Colorlib
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2240.12 ▲1.10
Dashboard /wp-admin3.61 ▲0.2645.27 ▼19.19
Posts /wp-admin/edit.php3.66 ▲0.3050.05 ▲2.52
Add New Post /wp-admin/post-new.php6.12 ▲0.2392.82 ▼25.54
Media Library /wp-admin/upload.php3.47 ▲0.2335.17 ▲1.02

Server storage [IO: ▲1.85MB] [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: 50 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Login Page Customizer by Colorlib
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.30 ▼1.081.83 ▼0.1043.81 ▼0.64
Dashboard /wp-admin2,219 ▲345.81 ▲0.0395.86 ▼10.1940.63 ▼2.81
Posts /wp-admin/edit.php2,105 ▲162.02 ▲0.0041.01 ▲3.7236.66 ▲0.76
Add New Post /wp-admin/post-new.php1,551 ▲2323.22 ▼0.02602.48 ▼87.3855.16 ▼7.51
Media Library /wp-admin/upload.php1,398 ▲134.19 ▼0.0296.92 ▼3.2741.44 ▼4.97

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • clc-options
    • colorlib-login-customizer_version
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Image_Control' not found in wp-content/plugins/colorlib-login-customizer/includes/lib/controls/class-colorlib-login-customizer-background-control.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Colorlib_Login_Customizer' not found in wp-content/plugins/colorlib-login-customizer/includes/login-template.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/colorlib-login-customizer/includes/class-colorlib-login-customizer-backwards-compatibility.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in colorlib-login-customizer/assets to your readme.txt
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

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

Analyzing the main PHP file in "Custom Login Page Customizer by Colorlib" version 1.3.1
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 247 characters long)

Code Analysis Passed 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 plugin5,244 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PO File1149166349

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.21
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
▷ Static methods43.48%
▷ Public methods10389.57%
▷ Protected methods10.87%
▷ Private methods119.57%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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
10 PNG files occupy 0.14MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/form-vertical-align-top.png1.08KB0.11KB▼ 89.77%
assets/img/one-column.png17.76KB0.10KB▼ 99.41%
assets/img/two-column.png17.76KB0.10KB▼ 99.41%
assets/img/form-horizontal-align-right.png1.03KB0.11KB▼ 89.15%
assets/img/form-vertical-align-bottom.png1.08KB0.11KB▼ 89.75%