72% custom-login-page-wp

Code Review | Custom Login Page by SeedProd

WordPress plugin Custom Login Page by SeedProd scored72%from 54 tests.

About plugin

  • Plugin page: custom-login-page-wp
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Jul 22, 2016
  • Latest release: Dec 13, 2017
  • Number of updates: 18
  • Update frequency: every 28.3 days
  • Top authors: seedprod (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /16,067 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Custom Login Page by SeedProd
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.33 ▲0.88
Dashboard /wp-admin3.47 ▲0.1746.09 ▼2.45
Posts /wp-admin/edit.php3.58 ▲0.2346.45 ▼0.64
Add New Post /wp-admin/post-new.php6.05 ▲0.1684.35 ▼11.52
Media Library /wp-admin/upload.php3.39 ▲0.1639.79 ▲5.81
Import /wp-admin/admin.php?page=seed_cl_import3.3330.42
Customizer /wp-admin/admin.php?page=seed_cl_customizer3.4539.29
Login Page /wp-admin/options-general.php?page=seed_cl3.3738.90

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 97 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
seed_cl_settings_content
widget_recent-posts
seed_cl_customizer_settings
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Login Page by SeedProd
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5813.20 ▼1.194.71 ▲2.7543.69 ▲3.56
Dashboard /wp-admin2,207 ▲165.84 ▲0.9294.91 ▼9.5041.80 ▲0.89
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0134.37 ▼7.3732.02 ▼2.43
Add New Post /wp-admin/post-new.php1,536 ▲2223.26 ▼0.16682.10 ▲39.5362.97 ▲9.78
Media Library /wp-admin/upload.php1,389 ▲14.25 ▲0.08101.34 ▲0.7343.99 ▼0.36
Import /wp-admin/admin.php?page=seed_cl_import7652.0122.1221.60
Customizer /wp-admin/admin.php?page=seed_cl_customizer2,75915.22260.88174.17
Login Page /wp-admin/options-general.php?page=seed_cl9142.1227.8136.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • seed_cl_settings_content
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • seed_cl_customizer_settings
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=seed_cl_import
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'SEED_CL_ADMIN' does not have a method 'import_page'
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=seed_cl_customizer
    • > Deprecated in wp-content/plugins/custom-login-page-wp/lib/seed_cl_lessc.inc.php+2951
    Array and string offset access syntax with curly braces is deprecated
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=seed_cl_customizer
    • > Warning in wp-content/plugins/custom-login-page-wp/inc/class-seed-cl.php+119
    A non-numeric value encountered
    • > GET request to /wp-admin/admin.php?page=seed_cl_customizer
    • > Warning in wp-content/plugins/custom-login-page-wp/inc/class-seed-cl.php+114
    Division by zero

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 items
  • 6× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/custom-login-page-wp/admin/field-types/select.php
    • > /wp-content/plugins/custom-login-page-wp/admin/field-types/custom_status.php
    • > /wp-content/plugins/custom-login-page-wp/admin/field-types/radio.php
    • > /wp-content/plugins/custom-login-page-wp/admin/field-types/multiselect.php
    • > /wp-content/plugins/custom-login-page-wp/admin/field-types/textarea.php
    • > /wp-content/plugins/custom-login-page-wp/admin/header.php
  • 90× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_url() in wp-content/plugins/custom-login-page-wp/admin/field-types/import.php:7
    • > PHP Warning
      Use of undefined constant SEED_CL_PLUGIN_URL - assumed 'SEED_CL_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-login-page-wp/customizer/customizer.php on line 4
    • > PHP Warning
      Use of undefined constant SEED_CL_PLUGIN_URL - assumed 'SEED_CL_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-login-page-wp/customizer/customizer.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/custom-login-page-wp/admin/validations/required.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-login-page-wp/custom-login-page-wp.php:21
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/custom-login-page-wp/admin/field-types/radio.php on line 7
    • > PHP Notice
      Undefined variable: k in wp-content/plugins/custom-login-page-wp/admin/validations/number.php on line 8
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/custom-login-page-wp/admin/field-types/password.php on line 6
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/custom-login-page-wp/admin/field-types/text.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/custom-login-page-wp/customizer/customizer.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Please a description for screenshot #3 in custom-login-page-wp/assets to your readme.txt
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === custom-login-page-wp === )
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Custom Login Page by SeedProd" version 1.0.3
35 characters long description:
A Realtime Custom Login Page Plugin

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 plugin7,392 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
PHP339466374,010
JavaScript203642721,899
CSS11149119789
SVG261694

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity106.29
▷ Minimum class complexity1.00
▷ Maximum class complexity316.00
Average method complexity5.12
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods179
▷ Static methods63.35%
▷ Public methods5128.49%
▷ Protected methods12871.51%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
customizer/img/bootstrap-colorpicker/alpha-horizontal.png3.55KB1.62KB▼ 54.44%
admin/seedprod-logo-black.png2.58KB2.47KB▼ 4.13%
customizer/img/bootstrap-colorpicker/hue.png2.90KB0.50KB▼ 82.71%
customizer/img/bootstrap-colorpicker/saturation.png8.61KB5.13KB▼ 40.41%
customizer/img/bootstrap-colorpicker/alpha.png3.19KB1.68KB▼ 47.45%