71% gs-custom-login

Code Review | GS Custom Login

WordPress plugin GS Custom Login scored 71% from 54 tests.

About plugin

  • Plugin page: gs-custom-login
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Jun 28, 2016
  • Latest release: Aug 29, 2023
  • Number of updates: 37
  • Update frequency: every 70.8 days
  • Top authors: samdani (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 6,578 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.48MB] [CPU: ▲9.03ms] 75% from 4 tests

An overview of server-side resources used by GS Custom Login
The following require your attention
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,003.98ms on /wp-admin/admin.php?page=gsp-main)
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4743.90 ▲1.38
Dashboard /wp-admin3.83 ▲0.5370.76 ▲21.80
Posts /wp-admin/edit.php3.88 ▲0.5362.41 ▲14.32
Add New Post /wp-admin/post-new.php6.35 ▲0.46107.34 ▲13.76
Media Library /wp-admin/upload.php3.69 ▲0.4642.12 ▲6.66
GS Plugins FREE /wp-admin/admin.php?page=gs-plugins-free3.79514.16
GS Plugins /wp-admin/admin.php?page=gsp-main3.871,003.98
GS Login Customizer /wp-admin/admin.php?page=gsp-customizar3.6635.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GS Custom Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲13914.47 ▲0.112.00 ▲0.1045.86 ▼4.87
Dashboard /wp-admin2,260 ▲725.84 ▲0.97121.53 ▲13.1753.26 ▲13.25
Posts /wp-admin/edit.php2,147 ▲582.00 ▲0.0141.78 ▲5.4534.29 ▲1.82
Add New Post /wp-admin/post-new.php1,563 ▲2923.28 ▲0.06607.36 ▼2.5946.25 ▼5.41
Media Library /wp-admin/upload.php1,442 ▲514.24 ▲0.0398.67 ▼3.6242.96 ▼0.87
GS Plugins FREE /wp-admin/admin.php?page=gs-plugins-free2,7232.0230.5939.74
GS Plugins /wp-admin/admin.php?page=gsp-main2,0342.0124.8850.65
GS Login Customizer /wp-admin/admin.php?page=gsp-customizar9,09332.15835.40171.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/gs-custom-login/gscusl_assets/inc/css/gs_cusl_pro_theme.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-custom-login/gscusl_assets/gs-plugins/gs-plugins-free.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-custom-login/gscusl_assets/gs-plugins/gs-plugins.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gs-custom-login/gscusl_custom_login.php:22

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=gsp-customizar
    • > Javascript (severe) in unknown
    /wp-content/plugins/gs-custom-login/gscusl_assets/inc/js/customizer.js?ver=6.3.1 79:33 Uncaught TypeError: Cannot read properties of undefined (reading 'focus')
    • > GET request to /wp-admin/admin.php?page=gsp-customizar
    • > Security (warning) in unknown
    /wp-login.php?customize_changeset_uuid=f53879fb-f99b-4170-a5b7-c81593dd052b&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.

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
You can look at the official readme.txt

gs-custom-login/gscusl_custom_login.php 77% from 13 tests

Analyzing the main PHP file in "GS Custom Login" version 1.3.5
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Git Repository: Please do not include Git repositories in your plugin
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gs-custom-login.php" instead of "gscusl_custom_login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin8,199 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP96987123,487
SVG1002,671
CSS5338541,572
JavaScript412790448
JSON10021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity21.70
▷ Minimum class complexity2.00
▷ Maximum class complexity70.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods113
▷ Static methods32.65%
▷ Public methods7969.91%
▷ Protected methods65.31%
▷ Private methods2824.78%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
10 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
gscusl_assets/inc/img/t6logo.png14.19KB5.22KB▼ 63.24%
gscusl_assets/inc/img/recaptcha.png13.85KB6.35KB▼ 54.19%
gscusl_assets/inc/img/t1logo.png5.13KB3.10KB▼ 39.54%
gscusl_assets/inc/img/t2logo.png9.62KB4.41KB▼ 54.14%
gscusl_assets/inc/img/error_options.png17.09KB9.07KB▼ 46.91%