can you improve this code? no comments on the code
using System.Collections.Generic;
using Oxide.Core.Plugins;
using Oxide.Game.Rust.Cui;
using UnityEngine;

namespace Oxide.Plugins
{
    [Info("QuarryComputerUi", "Marte6", "1.0.9")]
    public class QuarryComputerUi : RustPlugin
    {
        private static class UiConfig
        {
            public const string BackgroundColor = "0 0 0 1";
            public const float Width = 0.64f;
            public const float Height = 0.64f;
        }

        private static class ShapeConfig
        {
            public static CuiPanel CreateSquare(string color, float width, float height, string offsetMin, string offsetMax)
            {
                var minX = 0.5f - (width / 2);
                var minY = 0.5f - (height / 2);
                var maxX = 0.5f + (width / 2);
                var maxY = 0.5f + (height / 2);

                return new CuiPanel
                {
                    Image = { Color = color },
                    RectTransform =
                    {
                        AnchorMin = $"{minX} {minY}",
                        AnchorMax = $"{maxX} {maxY}",
                        OffsetMin = offsetMin,
                        OffsetMax = offsetMax,
                    },
                };
            }
        }

        private void Init()
        {
            RemoveUiFromAllPlayers();
        }

        [ChatCommand("ui")]
        private void HandleOpenUiCommand(BasePlayer player)
        {
            RemoveUiFromPlayer(player);

            var container = new CuiElementContainer();
            AddBackgroundPanel(container);
            container.Add(ShapeConfig.CreateSquare(UiConfig.BackgroundColor, UiConfig.Width, UiConfig.Height, "0 0", "0 0"), "QuarryUi_Background", "QuarryUi_Full");

            AddUiLayers(container, "QuarryUi_Full");

            CuiHelper.AddUi(player, container);
        }

        private void RemoveUiFromPlayer(BasePlayer player)
        {
            string[] uiElements = { "QuarryUi_Full", "QuarryUi_Background", "QuarryUi_CloseButton" };
            foreach (var element in uiElements)
            {
                CuiHelper.DestroyUi(player, element);
            }
        }

        private void RemoveUiFromAllPlayers()
        {
            foreach (var player in BasePlayer.activePlayerList)
            {
                RemoveUiFromPlayer(player);
            }
        }

        private void AddBackgroundPanel(CuiElementContainer container)
        {
            container.Add(
                new CuiPanel
                {
                    Image = { Color = "0 0 0 0.8" },
                    RectTransform = { AnchorMin = "0 0", AnchorMax = "1 1" },
                    CursorEnabled = true,
                },
                "Overlay",
                "QuarryUi_Background"
            );

            container.Add(
                new CuiButton
                {
                    Button =
                    {
                        Color = "0 0 0 0.8",
                        Command = "ui.close",
                        Close = "QuarryUi_Background",
                    },
                    RectTransform = { AnchorMin = "0 0", AnchorMax = "1 1" },
                    Text = { Text = "", FontSize = 0 },
                },
                "QuarryUi_Background",
                "QuarryUi_CloseButton"
            );
        }

        private void AddUiLayers(CuiElementContainer container, string parent)
        {
            container.Add(ShapeConfig.CreateSquare("0 1 0 1", 0.965f, 0.945f, "0 -1", "0 0"), parent, "QuarryUi_OuterSquare");
            container.Add(ShapeConfig.CreateSquare("0 0 0 1", 0.996f, 0.996f, "0 0", "0 0"), "QuarryUi_OuterSquare", "QuarryUi_InnerSquare");

            container.Add(ShapeConfig.CreateSquare("1 0 0 1", 0.7f, 0.7f, "0 -0.1", "0 0"), parent, "QuarryUi_OuterSquare2");
            container.Add(ShapeConfig.CreateSquare("0 0 1 1", 0.9f, 0.9f, "0 0", "0 0"), "QuarryUi_OuterSquare2", "QuarryUi_InnerSquare2");

            container.Add(ShapeConfig.CreateSquare("1 0.5 0 1", 0.6f, 0.6f, "0 -0.2", "0 0"), parent, "QuarryUi_OuterSquare3");
            container.Add(ShapeConfig.CreateSquare("1 0.8 0 1", 0.55f, 0.55f, "0 0", "0 0"), "QuarryUi_OuterSquare3", "QuarryUi_InnerSquare3");

            container.Add(ShapeConfig.CreateSquare("1 1 0 1", 0.5f, 0.5f, "0 0.2", "0 0"), parent, "QuarryUi_OuterSquare4");
            container.Add(ShapeConfig.CreateSquare("1 1 0.5 1", 0.45f, 0.45f, "0 0", "0 0"), "QuarryUi_OuterSquare4", "QuarryUi_InnerSquare4");
        }

        [ConsoleCommand("ui.close")]
        private void HandleCloseUiCommand(ConsoleSystem.Arg args)
        {
            var player = args?.Player();
            if (player != null)
            {
                RemoveUiFromPlayer(player);
            }
        }
    }
}