74% l7-login-customizer

Code Review | L7 Login Customizer

WordPress plugin L7 Login Customizer scored74%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: 6.3.1
  • 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

100+ active /9,039 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.74MB] [CPU: ▼37.90ms] Passed 4 tests

Analyzing server-side resources used by L7 Login Customizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.1640.32 ▼1.03
Dashboard /wp-admin3.25 ▼0.1328.32 ▼37.13
Posts /wp-admin/edit.php3.25 ▼0.1426.90 ▼24.00
Add New Post /wp-admin/post-new.php3.25 ▼2.6728.04 ▼80.60
Media Library /wp-admin/upload.php3.25 ▼0.0226.99 ▼9.87
Custom Login /wp-admin/options-general.php?page=l7-login-customizer/includes/options-page3.2628.70

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by L7 Login Customizer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.28 ▼0.281.78 ▲0.2641.59 ▲0.67
Dashboard /wp-admin2,199 ▲195.48 ▼0.1185.45 ▼2.8442.32 ▼1.54
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0540.28 ▲0.4036.57 ▲1.85
Add New Post /wp-admin/post-new.php1,540 ▲1418.26 ▼5.33622.98 ▼59.1167.35 ▲15.88
Media Library /wp-admin/upload.php1,404 ▲74.21 ▼0.0196.91 ▼7.4644.01 ▲0.96
Custom Login /wp-admin/options-general.php?page=l7-login-customizer/includes/options-page1,73911.41127.3475.34

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric 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+5828
    Hook 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: A description for screenshot #6 is missing in l7-login-customizer/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
Please take inspiration from this readme.txt

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

"L7 Login Customizer" version 2.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected9,089 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS454227,058
JavaScript246571,117
PHP6142473635
PO File2100108279

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in 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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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/alpha-horizontal.png3.55KB1.62KB▼ 54.44%
assets/images/bootstrap-colorpicker/hue.png2.90KB0.50KB▼ 82.71%
assets/images/bootstrap-colorpicker/hue-horizontal.png2.77KB0.47KB▼ 83.15%
assets/images/bootstrap-colorpicker/alpha.png3.19KB1.68KB▼ 47.45%
assets/images/bootstrap-colorpicker/saturation.png8.61KB5.13KB▼ 40.41%