67% clp-custom-login-page

Code Review | CLP - Custom Login Page by NiteoThemes

WordPress plugin CLP - Custom Login Page by NiteoThemes scored67%from 54 tests.

About plugin

  • Plugin page: clp-custom-login-...
  • Plugin version: 1.5.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9
  • WordPress version: 6.3.1
  • First release: Sep 9, 2020
  • Latest release: Mar 19, 2022
  • Number of updates: 26
  • Update frequency: every 21.4 days
  • Top authors: niteo (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /7,356 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.08ms] Passed 4 tests

An overview of server-side resources used by CLP - Custom Login Page by NiteoThemes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.67 ▼2.55
Dashboard /wp-admin3.38 ▲0.0846.09 ▼1.70
Posts /wp-admin/edit.php3.49 ▲0.1449.86 ▲0.94
Add New Post /wp-admin/post-new.php5.96 ▲0.0887.94 ▼0.40
Media Library /wp-admin/upload.php3.30 ▲0.0834.98 ▲0.32
CLP Customize /wp-admin/admin.php?page=clp-customize3.2433.19
CLP Settings /wp-admin/admin.php?page=clp-settings3.3435.44

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 70 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
clp_version
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for CLP - Custom Login Page by NiteoThemes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲16514.38 ▼0.241.72 ▲0.1343.93 ▼1.11
Dashboard /wp-admin2,233 ▲514.84 ▼1.21107.89 ▼1.1038.26 ▼6.26
Posts /wp-admin/edit.php2,116 ▲272.04 ▼0.0040.26 ▼0.4836.45 ▲0.10
Add New Post /wp-admin/post-new.php1,559 ▲2623.18 ▲0.27659.02 ▲55.2663.22 ▲14.00
Media Library /wp-admin/upload.php1,415 ▲274.25 ▲0.05100.94 ▲6.7442.82 ▲1.74
CLP Customize /wp-admin/admin.php?page=clp-customize20,53741.481,313.10268.52
CLP Settings /wp-admin/admin.php?page=clp-settings1,1641.7228.5035.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • clp_version
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=clp-customize
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'false' not found or invalid function name

SRP 0% from 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
Please fix the following
  • 7× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/clp-custom-login-page/includes/render-html/dom-manipulations.php
    • > /wp-content/plugins/clp-custom-login-page/includes/admin/setings-basic.php
    • > /wp-content/plugins/clp-custom-login-page/includes/render-html/footer-video-scripts.php
    • > /wp-content/plugins/clp-custom-login-page/includes/render-html/form-width-fix.php
    • > /wp-content/plugins/clp-custom-login-page/includes/render-html/logo.php
    • > /wp-content/plugins/clp-custom-login-page/includes/update.php
    • > /wp-content/plugins/clp-custom-login-page/includes/render-html/page-footer.php
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/clp-custom-login-page/includes/controls/class-clp-customizer-toggle-control.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/clp-custom-login-page/includes/controls/class-clp-customizer-template-control.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/clp-custom-login-page/includes/template-customization.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/clp-custom-login-page/includes/controls/class-clp-customizer-unsplash-control.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/clp-custom-login-page/includes/admin/sidebar.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/clp-custom-login-page/includes/controls/class-clp-customizer-google-fonts-control.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/clp-custom-login-page/includes/controls/class-clp-customizer-range-value-control.php:2
    • > PHP Warning
      Use of undefined constant CLP_PLUGIN_PATH - assumed 'CLP_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/clp-custom-login-page/includes/admin/sidebar.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Error' not found in wp-content/plugins/clp-custom-login-page/includes/customizer-login-template.php:251
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/clp-custom-login-page/includes/controls/class-clp-customizer-import-export-control.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/admin.php?page=clp-customize
    • > Security (warning) in unknown
    /?customize_changeset_uuid=33fc8f6f-203f-49b2-a33a-fa7eccc3dbb9&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.
    • > GET request to /wp-admin/admin.php?page=clp-customize
    • > Security (warning) in unknown
    /?clp-customize=true&action=login&customize_changeset_uuid=33fc8f6f-203f-49b2-a33a-fa7eccc3dbb9&customize_theme=twentytwentyone&customize_messenger_channel=preview-1 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
    • > GET request to /wp-admin/admin.php?page=clp-customize
    • > Console-api (warning) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28609 "jQuery.Deferred exception: _customizePartialRefreshExports is not defined" "ReferenceError: _customizePartialRefreshExports is not defined\n at Function.\u003Canonymous> (/wp-includes/js/customize-selective-refresh.min.js?ver=6.3.1:2:9028)\n at c (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:25266)\n at Object.fireWith (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:26015)\n at Function.trigger (/wp-includes/js/customize-base.min.js?ver=6.3.1:2:994)\n at HTMLDocument.\u003Canonymous> (/wp-includes/js/customize-preview.min.js?ver=6.3.1:2:10628)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:26990)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=clp-customize
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28721 Uncaught ReferenceError: _customizePartialRefreshExports is not defined

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 require attention: The official readme.txt is a good inspiration

clp-custom-login-page/clp-custom-login-page.php Passed 13 tests

The principal PHP file in "CLP - Custom Login Page by NiteoThemes" v. 1.5.5 is loaded by WordPress automatically on each request
52 characters long description:
Best plugin to customize login and Registration page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected8,083 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP336606684,711
JavaScript8241881,841
CSS519232954
PO File1256316576
SVG1001

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.35
Average class complexity9.29
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods116
▷ Static methods3025.86%
▷ Public methods10691.38%
▷ Protected methods00.00%
▷ Private methods108.62%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants6
▷ Global constants6100.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
12 compressed PNG files occupy 0.57MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/transparency-grid.png2.58KB2.80KB0.00%
assets/img/patterns/gray_sand.png16.58KB19.53KB0.00%
assets/img/patterns/photography.png0.98KB1.07KB0.00%
assets/img/patterns/white_sand.png17.49KB20.10KB0.00%
assets/img/patterns/sakura.png223.70KB106.69KB▼ 52.31%