66% wp-white-label-login

Code Review | White Label Custom WordPress Login Page

WordPress plugin White Label Custom WordPress Login Page scored66%from 54 tests.

About plugin

  • Plugin page: wp-white-label-login
  • Plugin version: 6.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.7
  • WordPress version: 6.3.1
  • First release: Sep 22, 2017
  • Latest release: Mar 11, 2021
  • Number of updates: 66
  • Update frequency: every 19.2 days
  • Top authors: icelayer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,771 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.79ms] 75% from 4 tests

Server-side resources used by White Label Custom WordPress Login Page
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 634.81ms on /wp-admin/admin.php?page=wll-useful-plugins)
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.05 ▲1.20
Dashboard /wp-admin3.35 ▲0.0448.21 ▲0.94
Posts /wp-admin/edit.php3.46 ▲0.1046.69 ▼0.99
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.33 ▼7.19
Media Library /wp-admin/upload.php3.27 ▲0.0432.89 ▼3.91
Background /wp-admin/admin.php?page=wll-background3.4238.30
CSS /wp-admin/admin.php?page=wll-css3.2632.52
White Label Login /wp-admin/customize.php?url=http%3A%2F%2Fwp.com%2Fwp-login.php6.27181.31
Useful Plugins /wp-admin/admin.php?page=wll-useful-plugins3.58634.81
Logo /wp-admin/admin.php?page=wll-white-label-options3.2837.59

Server storage [IO: ▲3.12MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 93 new files
Database: no new tables, 10 new options
New WordPress options
wpwll_custom_css
can_compress_scripts
db_upgraded
wpwll_background
theysaidso_admin_options
wpwll_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
wpwll_logo

Browser metrics Passed 4 tests

Checking browser requirements for White Label Custom WordPress Login Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13514.40 ▲0.431.79 ▼0.1030.42 ▼14.97
Dashboard /wp-admin2,254 ▲665.86 ▼0.0294.34 ▼21.9739.60 ▼0.72
Posts /wp-admin/edit.php2,137 ▲482.16 ▲0.1934.22 ▼0.7933.78 ▲3.27
Add New Post /wp-admin/post-new.php1,554 ▲3523.25 ▲0.23626.36 ▲8.7061.90 ▲6.94
Media Library /wp-admin/upload.php1,436 ▲454.20 ▲0.0199.44 ▲0.9244.98 ▼0.63
Background /wp-admin/admin.php?page=wll-background1,2183.0943.0149.95
CSS /wp-admin/admin.php?page=wll-css8992.1027.9036.25
White Label Login /wp-admin/customize.php?url=http%3A%2F%2Fwp.com%2Fwp-login.php8,13130.69747.92165.12
Useful Plugins /wp-admin/admin.php?page=wll-useful-plugins1,4082.0924.9148.81
Logo /wp-admin/admin.php?page=wll-white-label-options1,1063.0540.7532.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wll-useful-plugins
    • > Notice in wp-content/plugins/wp-white-label-login/src/UsefulPlugins/Plugins.php+26
    Undefined index: low

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-white-label-login/src/WPAdmin/example/sample-plugin/src/Admin/pages/my-plugin/my-plugin.admin.php
    • > /wp-content/plugins/wp-white-label-login/src/WPAdmin/example/sample-plugin/src/Admin/pages/my-plugin/menu-two.admin.php
    • > /wp-content/plugins/wp-white-label-login/src/WPAdmin/example/sample-plugin/src/Admin/pages/my-plugin/my-plugin-slug.admin.php
    • > /wp-content/plugins/wp-white-label-login/src/WPAdmin/example/sample-plugin/src/Admin/pages/my-plugin/etc.admin.php
    • > /wp-content/plugins/wp-white-label-login/src/Admin/pages/white-label-options/system-info.admin.php
  • 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-white-label-login/src/Customize/Settings/layout.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-white-label-login/src/Customize/Settings/button.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Connekt_Plugin_Installer' not found in wp-content/plugins/wp-white-label-login/src/UsefulPlugins/Plugins.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-white-label-login/src/Customize/Settings/background.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/wp-white-label-login/src/Admin/pages/white-label-options/background.admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpwhitelabel() in wp-content/plugins/wp-white-label-login/src/Admin/pages/white-label-options/css.admin.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-white-label-login/src/Customize/Settings/css.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-white-label-login/src/Customize/Settings/form.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-white-label-login/src/Customize/Settings/footer.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WPWhiteLabel\\WPAdmin\\AdminPage' not found in wp-content/plugins/wp-white-label-login/src/Admin/WhiteLabelAdmin.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/customize.php?url=http%3A%2F%2Fwp.com%2Fwp-login.php
    • > Security (warning) in unknown
    /wp-login.php?customize_changeset_uuid=a0403b97-8af5-4e62-9926-b6864d62e6f0&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: login customizer, wordpress login, custom login page, branding, white label...

wp-white-label-login/white-label-login.php 77% from 13 tests

Analyzing the main PHP file in "White Label Custom WordPress Login Page" version 6.0.5
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-white-label-login.php" instead of "white-label-login.php")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected12,874 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
CSS101,2862510,314
PHP435161,3852,423
JavaScript3323387
Markdown120042
JSON1005
HTML3003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.41
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes17
▷ Abstract classes15.88%
▷ Concrete classes1694.12%
▷ Final classes743.75%
Methods126
▷ Static methods3830.16%
▷ Public methods10885.71%
▷ Protected methods118.73%
▷ Private methods75.56%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 2.17MB with 1.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshot/wll-customizer.png1,102.25KB459.60KB▼ 58.30%
assets/images/wpwll-logo.png14.63KB7.48KB▼ 48.82%
assets/images/screenshot/screenshot-2.png1,102.25KB459.60KB▼ 58.30%