84% l7-login-customizer

Code Review | L7 Login Customizer

WordPress plugin L7 Login Customizer scored 84% from 54 tests.

About plugin

  • Plugin page: l7-login-customizer
  • Plugin version: 2.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8.1
  • WordPress version: 5.9.2
  • First release: Jul 16, 2015
  • Latest release: Sep 2, 2017
  • Number of updates: 160
  • Update frequency: every 4.9 days
  • Top authors: jeffreysmattson (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active / 7,626 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼1.22MB] [CPU: ▼334.75ms] Passed 4 tests

Server-side resources used by L7 Login Customizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0255.06 ▲6.32
Dashboard /wp-admin3.11 ▼0.3017.24 ▼17.17
Posts /wp-admin/edit.php3.11 ▼0.5317.69 ▼33.46
Add New Post /wp-admin/post-new.php3.11 ▼3.8617.01 ▼1,272.95
Media Library /wp-admin/upload.php3.11 ▼0.1915.79 ▼15.43
Custom Login /wp-admin/options-general.php?page=l7-login-customizer/includes/options-page3.1118.22

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for L7 Login Customizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,793 ▲7115.89 ▼0.116.11 ▼0.352.43 ▲0.07
Dashboard /wp-admin2,897 ▲396.14 ▼0.03118.01 ▼21.25155.41 ▼5.51
Posts /wp-admin/edit.php2,693 ▲53.24 ▲0.0263.72 ▲2.38143.00 ▲5.69
Add New Post /wp-admin/post-new.php1,671 ▼4018.90 ▼2.40378.31 ▼57.94156.11 ▼6.92
Media Library /wp-admin/upload.php1,703 ▲55.52 ▲0.05139.06 ▲1.73184.49 ▼6.98
Custom Login /wp-admin/options-general.php?page=l7-login-customizer/includes/options-page2,27412.45160.70129.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5768
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=l7-login-customizer/includes/options-page
    • > User notice in wp-includes/functions.php+5768
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=l7-login-customizer/includes/options-page
    • > Notice in wp-content/plugins/l7-login-customizer/includes/admin-functions.php+293
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=l7-login-customizer/includes/options-page
    • > User deprecated in wp-includes/functions.php+5691
    login_headertitle is deprecated since version 5.2.0! Use login_headertext instead. Usage of the title attribute on the login logo is not recommended for accessibility reasons. Use the link text instead.

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

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 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please a description for screenshot #6 in l7-login-customizer/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

l7-login-customizer/l7-login-customizer.php Passed 13 tests

The entry point to "L7 Login Customizer" version 2.4.0 is a PHP file that has certain tags in its header comment area
101 characters long description:
For customizing the login, logout, and register pages. Add a custom logo and background image easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin9,089 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS454227,058
JavaScript246571,117
PHP6142473635
PO File2100108279

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity14.00
▷ Minimum class complexity3.00
▷ Maximum class complexity26.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/bootstrap-colorpicker/hue.png2.90KB0.50KB▼ 82.71%
assets/images/bootstrap-colorpicker/alpha.png3.19KB1.68KB▼ 47.45%
assets/images/bootstrap-colorpicker/alpha-horizontal.png3.55KB1.62KB▼ 54.44%
assets/images/bootstrap-colorpicker/hue-horizontal.png2.77KB0.47KB▼ 83.15%
assets/images/bootstrap-colorpicker/saturation.png8.61KB5.13KB▼ 40.41%