79% custom-login-screen

Code Review | Custom Login Screen

WordPress plugin Custom Login Screen scored79%from 54 tests.

About plugin

  • Plugin page: custom-login-screen
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2020
  • Latest release: Feb 15, 2023
  • Number of updates: 8
  • Update frequency: every 132.9 days
  • Top authors: harisrozak (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /981 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.08ms] Passed 4 tests

An overview of server-side resources used by Custom Login Screen
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.86 ▼0.90
Dashboard /wp-admin3.34 ▲0.0345.84 ▼3.25
Posts /wp-admin/edit.php3.39 ▲0.0344.59 ▼2.88
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.68 ▼17.23
Media Library /wp-admin/upload.php3.26 ▲0.0333.81 ▼0.94
Login Screen /wp-admin/themes.php?page=custom-login-screen3.2840.82

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Login Screen
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.27 ▼1.291.68 ▼0.0131.80 ▼9.06
Dashboard /wp-admin2,213 ▲224.86 ▲0.0097.99 ▼5.2638.40 ▼6.98
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0235.35 ▼9.6432.06 ▼4.93
Add New Post /wp-admin/post-new.php1,536 ▲1723.23 ▲0.04682.90 ▲24.5555.17 ▼10.20
Media Library /wp-admin/upload.php1,395 ▲74.25 ▲0.0699.01 ▼22.1443.19 ▼6.25
Login Screen /wp-admin/themes.php?page=custom-login-screen1,2993.6864.7137.29

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/custom-login-screen/about/modal-about-us.php
    • > /wp-content/plugins/custom-login-screen/about/about-html.php
    • > /wp-content/plugins/custom-login-screen/about/modal-other-plugins.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/custom-login-screen/about/admin-enqueue-script.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: admin login, login logo, wp-login, login title, login screen...

custom-login-screen/custom-login-screen.php Passed 13 tests

"Custom Login Screen" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
An unique and customizable WordPress login screen

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
No dangerous file extensions were detected1,214 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS612016767
PHP911558447

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.25
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1688.89%
▷ Protected methods00.00%
▷ Private methods211.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.49MB with 0.32MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png132.89KB53.25KB▼ 59.93%
about/assets/about-image.png364.66KB95.69KB▼ 73.76%