68% custom-wp-login

Code Review | Custom WP Login

WordPress plugin Custom WP Login scored 68% from 54 tests.

About plugin

  • Plugin page: custom-wp-login
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Sep 15, 2016
  • Latest release: Jan 26, 2022
  • Number of updates: 53
  • Update frequency: every 37.3 days
  • Top authors: yikesitskevin (81.13%)yikesinc (13.21%)fmixell (5.66%)jpowersdev (3.77%)eherman24 (3.77%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 10,862 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.51MB] [CPU: ▼295.57ms] Passed 4 tests

A check of server-side resources used by Custom WP Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.5460.22 ▲10.02
Dashboard /wp-admin3.92 ▲0.5238.10 ▲5.11
Posts /wp-admin/edit.php4.13 ▲0.4939.09 ▲4.85
Add New Post /wp-admin/post-new.php7.45 ▲0.4898.51 ▼1,193.32
Media Library /wp-admin/upload.php3.87 ▲0.5827.18 ▲1.08
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php6.7959.34
Custom Login /wp-admin/options-general.php?page=yikes-custom-login3.9336.76

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 4 new options
New WordPress options
widget_recent-posts
yikes_custom_login
widget_recent-comments
widget_wpb_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Custom WP Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,901 ▲15911.02 ▼4.966.48 ▲0.812.65 ▲0.74
Dashboard /wp-admin2,901 ▲476.16 ▼0.05119.96 ▼11.05159.67 ▼1.66
Posts /wp-admin/edit.php2,684 ▼103.24 ▲0.0165.32 ▲1.16141.22 ▼2.38
Add New Post /wp-admin/post-new.php1,669 ▲316.09 ▼4.97422.07 ▼24.89158.12 ▲2.54
Media Library /wp-admin/upload.php1,707 ▲95.45 ▼0.06157.68 ▲16.81201.95 ▲25.34
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php7,27721.55548.50213.87
Custom Login /wp-admin/options-general.php?page=yikes-custom-login2,80810.82216.40173.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/custom-wp-login/uninstall.php+80
    Undefined variable: post_id
  • This plugin does not fully uninstall, leaving 3 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_wpb_widget

Smoke tests 50% 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 errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
    Trying to get property 'title' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yikes-custom-login
    • > Notice in wp-content/plugins/custom-wp-login/lib/classes/options.php+707
    Undefined index: branding_logo
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yikes-custom-login
    • > Notice in wp-content/plugins/custom-wp-login/lib/classes/options.php+701
    Undefined index: branding_logo_id

SRP 50% 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-wp-login/lib/classes/login-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'YIKES_Custom_Login' not found in wp-content/plugins/custom-wp-login/lib/classes/metaboxes.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-wp-login/lib/classes/customizer.php:488
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/custom-wp-login/lib/classes/options.php:741
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/custom-wp-login/yikes-inc-custom-login.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: guest, login, custom, member, register...

custom-wp-login/yikes-inc-custom-login.php 92% from 13 tests

This is the main PHP file of "Custom WP Login" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-wp-login.php" instead of "yikes-inc-custom-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin4,465 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP245021,1103,739
CSS511385590
JavaScript63363136

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity35.62
▷ Minimum class complexity1.00
▷ Maximum class complexity177.00
Average method complexity4.26
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods86
▷ Static methods66.98%
▷ Public methods7991.86%
▷ Protected methods00.00%
▷ Private methods78.14%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants3
▷ Global constants3100.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.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/images/recaptcha-icon.png2.02KB1.20KB▼ 40.75%
lib/images/wordpress-icon.png23.50KB5.71KB▼ 75.72%
lib/images/docs-icon.png24.55KB15.15KB▼ 38.30%
lib/images/yikes-plugins-logo.png52.41KB13.77KB▼ 73.72%
lib/images/github-icon.png5.15KB3.13KB▼ 39.17%