78% simple-login-page-customizer

Code Review | Simple Login Page Customizer

WordPress plugin Simple Login Page Customizer scored78%from 54 tests.

About plugin

  • Plugin page: simple-login-page...
  • Plugin version: 3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 8, 2016
  • Latest release: Jun 26, 2019
  • Number of updates: 13
  • Update frequency: every 78.5 days
  • Top authors: mshirk (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,907 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.13MB] [CPU: ▲2.58ms] Passed 4 tests

Analyzing server-side resources used by Simple Login Page Customizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1246.10 ▲2.78
Dashboard /wp-admin3.45 ▲0.1457.20 ▲1.85
Posts /wp-admin/edit.php3.57 ▲0.2154.02 ▲5.03
Add New Post /wp-admin/post-new.php6.01 ▲0.1297.16 ▲4.50
Media Library /wp-admin/upload.php3.36 ▲0.1239.96 ▲1.17
Login Page Customizer /wp-admin/options-general.php?page=login-page-customizer3.3239.69

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables
wp_loginCustomizer
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Simple Login Page Customizer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲18714.52 ▲0.171.71 ▼0.2739.07 ▼4.63
Dashboard /wp-admin2,342 ▲1626.16 ▲0.48114.99 ▲15.2945.40 ▲1.54
Posts /wp-admin/edit.php2,273 ▲1733.29 ▲1.3452.39 ▲15.7740.42 ▲3.54
Add New Post /wp-admin/post-new.php1,387 ▼14120.80 ▼2.20530.68 ▼159.2438.71 ▼19.36
Media Library /wp-admin/upload.php1,413 ▲134.09 ▼0.1480.86 ▼36.1643.39 ▼1.77
Login Page Customizer /wp-admin/options-general.php?page=login-page-customizer1,36312.20117.7449.45

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+929
    Undefined variable: SLPC_LinkError
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+932
    Undefined variable: SLPC_Link
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+932
    Undefined variable: SLPC_LinkPlaceholder
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+953
    Undefined variable: SLPC_Logo
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+938
    Undefined variable: SLPC_LogoError
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+941
    Undefined variable: SLPC_LogoPlaceholder
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+970
    Undefined variable: SLPC_PgBgColorError
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+973
    Undefined variable: SLPC_PgBgColor
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+973
    Undefined variable: SLPC_PgBgColorPlaceholder
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+982
    Undefined variable: SLPC_PageBgImage
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+979
    Undefined variable: SLPC_PageBgImageError
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+982
    Undefined variable: SLPC_PageBgImagePlaceholder
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+994
    Undefined variable: SLPC_PageBgImageSize
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1015
    Undefined variable: SLPC_BoxBgColor
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1012
    Undefined variable: SLPC_BoxBgColorError
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1015
    Undefined variable: SLPC_BoxBgColorPlaceholder
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1024
    Undefined variable: SLPC_BoxBgImage
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1021
    Undefined variable: SLPC_BoxBgImageError
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1024
    Undefined variable: SLPC_BoxBgImagePlaceholder
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1033
    Undefined variable: SLPC_BoxBgImageSize
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1044
    Undefined variable: SLPC_BoxTextColor
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1041
    Undefined variable: SLPC_BoxTextColorError
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1044
    Undefined variable: SLPC_BoxTextColorPlaceholder
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1053
    Undefined variable: SLPC_BlwBoxTextColor
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1050
    Undefined variable: SLPC_BlwBoxTextColorError
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1053
    Undefined variable: SLPC_BlwBoxTextColorPlaceholder
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1065
    Undefined variable: SLPC_ButtonBgColor
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1062
    Undefined variable: SLPC_ButtonBgColorError
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1065
    Undefined variable: SLPC_ButtonBgColorPlaceholder
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1071
    Undefined variable: SLPC_ButtonTextColor
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1068
    Undefined variable: SLPC_ButtonTextColorError
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1071
    Undefined variable: SLPC_ButtonTextColorPlaceholder
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1079
    Undefined variable: SLPC_ButtonTextShadow
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1090
    Undefined variable: SLPC_ButtonTextShadowColor
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1087
    Undefined variable: SLPC_ButtonTextShadowColorError
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1090
    Undefined variable: SLPC_ButtonTextShadowColorPlaceholder
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1099
    Undefined variable: SLPC_ButtonBorder
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1096
    Undefined variable: SLPC_ButtonBorderError
    • > GET request to /wp-admin/options-general.php?page=login-page-customizer
    • > Notice in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php+1099
    Undefined variable: SLPC_ButtonBorderPlaceholder

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/simple-login-page-customizer/simple-login-page-customizer.php:171

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: login page customizer, customizer, login page, custom login, sign in page

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

The main PHP script in "Simple Login Page Customizer" version 3.6 is automatically included on every request by WordPress
28 characters long description:
Simple Login Page Customizer

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
There were no executable files found in this plugin1,057 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11871161,057

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 1.11MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png22.27KB6.51KB▼ 70.77%
assets/screenshot-4.png83.66KB27.46KB▼ 67.18%
assets/icon-128x128.png9.50KB2.53KB▼ 73.36%
assets/screenshot-2.png436.89KB202.78KB▼ 53.59%
assets/screenshot-3.png528.65KB220.81KB▼ 58.23%