10% branded-login-screen

Code Review | Branded Login Screen

WordPress plugin Branded Login Screen scored10%from 54 tests.

About plugin

  • Plugin page: branded-login-screen
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9
  • WordPress version: 6.3.1
  • First release: Jan 29, 2010
  • Latest release: Mar 18, 2014
  • Number of updates: 40
  • Update frequency: every 37.8 days
  • Top authors: kwebster (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

700+ active /50,040 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Branded_Login_Screen::branded_login_screen_activate() should not be called statically

Server metrics [RAM: ▼0.88MB] [CPU: ▼36.67ms] Passed 4 tests

A check of server-side resources used by Branded Login Screen
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.63 ▲2.95
Dashboard /wp-admin3.06 ▼0.2427.22 ▼26.68
Posts /wp-admin/edit.php3.06 ▼0.3026.17 ▼26.51
Add New Post /wp-admin/post-new.php3.06 ▼2.8323.97 ▼81.22
Media Library /wp-admin/upload.php3.06 ▼0.1727.41 ▼12.25

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Branded Login Screen: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5913.93 ▼0.691.88 ▲0.3334.15 ▼5.84
Dashboard /wp-admin2,195 ▲155.61 ▼0.0185.89 ▼2.6038.97 ▼3.98
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0340.96 ▲3.5237.10 ▲0.15
Add New Post /wp-admin/post-new.php1,526 ▼223.03 ▼0.00679.91 ▼17.0555.01 ▼7.65
Media Library /wp-admin/upload.php1,394 ▼64.17 ▲0.03109.99 ▼1.4847.60 ▼0.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Branded_Login_Screen::branded_login_screen_environment_check() should not be called statically
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/branded-login-screen/branded-login-screen.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: branding, login, login screen, white label

branded-login-screen/branded-login-screen.php 92% from 13 tests

"Branded Login Screen" version 3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)

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
Everything looks great! No dangerous files found in this plugin458 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS27610267
PHP36086181
JavaScript16110

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.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
9 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/i/reset-backups/header.png14.31KB6.97KB▼ 51.28%
assets/i/err-header.png14.61KB7.84KB▼ 46.33%
assets/i/logo_responsive/header-sm.png11.60KB5.36KB▼ 53.82%
assets/i/reset-backups/header-thumb.png4.89KB2.63KB▼ 46.29%
assets/i/reset-backups/header-sm-thumb.png2.12KB1.85KB▼ 12.86%