84% simple-login-customize

Code Review | Simple Login Customize

WordPress plugin Simple Login Customize scored84%from 54 tests.

About plugin

  • Plugin page: simple-login-cust...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 10, 2022
  • Latest release: Aug 14, 2023
  • Number of updates: 14
  • Update frequency: every 24.1 days
  • Top authors: apsaraaruna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /305 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.26ms] Passed 4 tests

A check of server-side resources used by Simple Login Customize
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1541.59 ▲4.98
Dashboard /wp-admin3.46 ▲0.1651.21 ▲7.33
Posts /wp-admin/edit.php3.58 ▲0.2243.59 ▼9.26
Add New Post /wp-admin/post-new.php6.06 ▲0.1782.13 ▼10.81
Media Library /wp-admin/upload.php3.39 ▲0.1537.57 ▲6.05
Simple Login Customize /wp-admin/options-general.php?page=slc_options3.3532.99

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
slc_display_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
slc_extra_options
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Login Customize
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲15313.49 ▼0.888.35 ▲6.7341.95 ▲1.99
Dashboard /wp-admin2,211 ▲205.82 ▼0.2398.69 ▼1.5741.75 ▼4.75
Posts /wp-admin/edit.php2,097 ▲82.00 ▼0.0033.48 ▼7.5933.07 ▼7.11
Add New Post /wp-admin/post-new.php1,521 ▼717.50 ▼0.65683.34 ▲55.0158.75 ▲10.81
Media Library /wp-admin/upload.php1,393 ▲54.14 ▼0.12132.34 ▲36.9646.23 ▲2.86
Simple Login Customize /wp-admin/options-general.php?page=slc_options9062.0222.2927.87

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: 8 options
    • slc_display_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • slc_extra_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-login-customize/public/partials/class-simple-login-customize-public-display.php
    • > /wp-content/plugins/simple-login-customize/admin/partials/simple-login-customize-admin-display.php

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Donate link: Please fix this invalid url: "apsaraaruna.com"
You can look at the official readme.txt

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

The main file in "Simple Login Customize" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
This is a created for easily customize your login page.

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
Good job! No executable or dangerous file extensions detected644 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13266650585
CSS32945
JavaScript265414

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.88
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods56
▷ Static methods23.57%
▷ Public methods5089.29%
▷ Protected methods00.00%
▷ Private methods610.71%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin