83% lightweight-branded-login-screen

Code Review | Lightweight Branded Login Screen

WordPress plugin Lightweight Branded Login Screen scored83%from 54 tests.

About plugin

  • Plugin page: lightweight-brand...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 10, 2018
  • Latest release: Apr 17, 2020
  • Number of updates: 13
  • Update frequency: every 57.1 days
  • Top authors: julianoe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.09ms] Passed 4 tests

This is a short check of server-side resources used by Lightweight Branded Login Screen
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.45 ▼1.60
Dashboard /wp-admin3.33 ▲0.0350.39 ▲2.24
Posts /wp-admin/edit.php3.38 ▲0.0248.98 ▼2.63
Add New Post /wp-admin/post-new.php5.91 ▲0.02107.58 ▲13.56
Media Library /wp-admin/upload.php3.25 ▲0.0240.86 ▲2.36

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Lightweight Branded Login Screen
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.72 ▲0.441.79 ▲0.1343.04 ▲0.45
Dashboard /wp-admin2,195 ▲185.70 ▲0.0288.70 ▼2.1041.08 ▼3.97
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0336.06 ▼3.2535.65 ▼0.07
Add New Post /wp-admin/post-new.php1,526 ▼023.48 ▲0.48656.49 ▼38.1262.01 ▲1.59
Media Library /wp-admin/upload.php1,397 ▼64.20 ▼0.04121.25 ▲12.1747.45 ▼0.28

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lightweight-branded-login-screen/inc/customizer.php:133
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/lightweight-branded-login-screen/lightweight-branded-login-screen.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

lightweight-branded-login-screen/lightweight-branded-login-screen.php 85% from 13 tests

The main PHP script in "Lightweight Branded Login Screen" version 1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: Please prefix the domain path with a forward slash character ("/lang/")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("lang/")

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
No dangerous file extensions were detected161 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21540161

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin