79% wp-login-page-customizer

Code Review | Custom Login Page | WebHunt Infotech

WordPress plugin Custom Login Page | WebHunt Infotech scored 79% from 54 tests.

About plugin

  • Plugin page: wp-login-page-cus...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3.2
  • WordPress version: 5.8.1
  • First release: Mar 23, 2019
  • Latest release: Jan 25, 2020
  • Number of updates: 17
  • Update frequency: every 18.9 days
  • Top authors: Webhuntinfotech (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 1,847 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.20MB] [CPU: ▼147.48ms] Passed 4 tests

This is a short check of server-side resources used by Custom Login Page | WebHunt Infotech
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.02 ▲0.3037.22 ▲14.29
Dashboard /wp-admin3.25 ▲0.1955.62 ▲19.65
Posts /wp-admin/edit.php3.33 ▲0.2347.44 ▼4.54
Add New Post /wp-admin/post-new.php5.61 ▲0.1792.38 ▼597.12
Media Library /wp-admin/upload.php3.19 ▲0.1931.67 ▼2.56

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 86 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Login Page | WebHunt Infotech
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,721 ▲12515.76 ▲0.286.98 ▼1.8650.66 ▼5.94
Dashboard /wp-admin2,981 ▲475.96 ▲0.01134.88 ▼14.21131.28 ▲3.66
Posts /wp-admin/edit.php2,759 ▲202.69 ▲0.0064.87 ▼5.1082.32 ▼21.85
Add New Post /wp-admin/post-new.php3,702 ▲2,08714.99 ▼6.59421.60 ▲124.01113.51 ▲11.61
Media Library /wp-admin/upload.php1,827 ▲205.03 ▲0.03144.40 ▼7.30123.75 ▲1.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/wp-login-page-customizer/functions/unintall.php+3
    Trying to access array offset on value of type bool

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 13× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wp-login-page-customizer/pages/logo-settings.php
    • > /wp-content/plugins/wp-login-page-customizer/pages/help.php
    • > /wp-content/plugins/wp-login-page-customizer/pages/input-fields.php
    • > /wp-content/plugins/wp-login-page-customizer/pages/google-captcha.php
    • > /wp-content/plugins/wp-login-page-customizer/pages/import-export.php
    • > /wp-content/plugins/wp-login-page-customizer/pages/footer.php
    • > /wp-content/plugins/wp-login-page-customizer/pages/welcome-messages.php
    • > /wp-content/plugins/wp-login-page-customizer/pages/button-beauty.php
    • > /wp-content/plugins/wp-login-page-customizer/pages/dashboard.php
    • > /wp-content/plugins/wp-login-page-customizer/pages/pre-design.php
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-login-page-customizer/wp-login-page-customizer.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-login-page-customizer/assets/css/style-login.php:66
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-login-page-customizer/functions/unintall.php:2
    • > PHP Warning
      Use of undefined constant WEBHUNT_LPC_ROOT_PATH - assumed 'WEBHUNT_LPC_ROOT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-login-page-customizer/assets/css/style-presets.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-login-page-customizer/redirect.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-login-page-customizer/pages/plugins.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function lpc_first_presets() in wp-content/plugins/wp-login-page-customizer/assets/css/style-presets.php:10
    • > PHP Warning
      include_once(WEBHUNT_LPC_ROOT_PATHassets/css/themes/default-1.php): failed to open stream: No such file or directory in wp-content/plugins/wp-login-page-customizer/assets/css/style-presets.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-login-page-customizer/class-gcaptcha.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'cl_lpc_system_info' not found in wp-content/plugins/wp-login-page-customizer/pages/system-info.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: customize wordpress login page, wp login page customizer, admin login page, login page, custom login page

wp-login-page-customizer/wp-login-page-customizer.php Passed 13 tests

The main PHP script in "Custom Login Page | WebHunt Infotech" version 1.0.5 is automatically included on every request by WordPress
120 characters long description:
Plugin allows you to easily customize Login Screen. You can design beautiful and eye catching login page in few minutes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected18,664 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
CSS81,42912511,405
PHP285923864,800
JavaScript72965601,161
SVG100655
PO File1296318638
JSON5005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity28.67
▷ Minimum class complexity9.00
▷ Maximum class complexity60.00
Average method complexity4.77
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods29.09%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.45MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/plugin/smg.png94.99KB24.34KB▼ 74.38%
assets/img/WordPress.png99.59KB30.34KB▼ 69.53%
assets/img/dashboard-icon.png2.05KB1.50KB▼ 26.63%
assets/img/your-logo.png29.09KB4.89KB▼ 83.19%
assets/img/plugin/universal.png31.07KB8.42KB▼ 72.89%