73% simple-custom-login

Code Review | Simple Custom Login

WordPress plugin Simple Custom Login scored 73% from 54 tests.

About plugin

  • Plugin page: simple-custom-login
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.5
  • WordPress version: 5.8.1
  • First release: Apr 30, 2015
  • Latest release: Jun 10, 2016
  • Number of updates: 17
  • Update frequency: every 23.9 days
  • Top authors: tylerdigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 8,395 total downloads

Benchmarks

Plugin footprint 83% 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.23MB] [CPU: ▼141.43ms] Passed 4 tests

Server-side resources used by Simple Custom Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.01 ▲0.2930.39 ▲8.04
Dashboard /wp-admin3.33 ▲0.2760.35 ▲15.49
Posts /wp-admin/edit.php3.38 ▲0.2852.72 ▼1.86
Add New Post /wp-admin/post-new.php5.60 ▲0.1797.41 ▼573.36
Media Library /wp-admin/upload.php3.19 ▲0.1934.66 ▲1.47
Simple Custom Login /wp-admin/options-general.php?page=options-custom-login3.1636.44

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 1 new option
New WordPress options
options-custom-login

Browser metrics Passed 4 tests

Checking browser requirements for Simple Custom Login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,881 ▲30017.58 ▲2.109.14 ▲0.7354.21 ▲1.67
Dashboard /wp-admin3,174 ▲2407.97 ▲2.03161.11 ▲17.27120.58 ▲1.07
Posts /wp-admin/edit.php2,972 ▲2334.20 ▲1.5290.59 ▲23.1697.41 ▼0.41
Add New Post /wp-admin/post-new.php1,613 ▼7018.85 ▲0.12348.40 ▼33.10135.42 ▲19.43
Media Library /wp-admin/upload.php1,821 ▲114.83 ▼0.18119.39 ▼40.35119.12 ▼4.05
Simple Custom Login /wp-admin/options-general.php?page=options-custom-login1,4163.8090.3683.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • options-custom-login

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=options-custom-login
    • > Notice in wp-content/plugins/simple-custom-login/lib/options-buddy-master/fields/image.php+35
    Undefined variable: class

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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/simple-custom-login/views/admin.php
    • > /wp-content/plugins/simple-custom-login/views/display.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-custom-login/simple-custom-login.php:46
    • > PHP Fatal error
      Uncaught Error: Class 'OptionsBuddy_Settings_Field' not found in wp-content/plugins/simple-custom-login/lib/options-buddy-master/fields/text.php:6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-custom-login/lib/options-buddy-master/class.options-buddy.php on line 1078
    • > PHP Fatal error
      Uncaught Error: Class 'OptionsBuddy_Settings_Field' not found in wp-content/plugins/simple-custom-login/lib/options-buddy-master/fields/image.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-custom-login/includes/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'TDCustomLogin' not found in wp-content/plugins/simple-custom-login/css/login.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/simple-custom-login/lib/options-buddy-master/class.options-buddy.php:1083

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Really simple settings), #2 (Customize your login screen for your company or your client's brand), #3 (Upload a custom background without a logo), #4 (It even scales down for mobile), #5 (Be happy to see your login screen)
You can look at the official readme.txt

simple-custom-login/simple-custom-login.php Passed 13 tests

"Simple Custom Login" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
Quickly apply some fun or custom branding to your login screen

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,467 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP113874821,007
PO File56474223
CSS32422191
JavaScript3141746

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity9.80
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods114
▷ Static methods65.26%
▷ Public methods9986.84%
▷ Protected methods00.00%
▷ Private methods1513.16%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected