94% login-logo

Code Review | Login Logo

WordPress plugin Login Logo scored 94% from 54 tests.

About plugin

  • Plugin page: login-logo
  • Plugin version: 0.10.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.2-5.4.0
  • WordPress version: 5.9.2
  • First release: Feb 1, 2011
  • Latest release: Apr 29, 2020
  • Number of updates: 47
  • Update frequency: every 71.8 days
  • Top authors: markjaquith (100%)

Code review

54 tests

User reviews

59 reviews

Install metrics

60,000+ active / 350,490 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼298.50ms] Passed 4 tests

Analyzing server-side resources used by Login Logo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0354.61 ▲4.03
Dashboard /wp-admin3.43 ▲0.0332.29 ▼1.29
Posts /wp-admin/edit.php3.67 ▲0.0337.06 ▼0.86
Add New Post /wp-admin/post-new.php6.90 ▼0.0791.77 ▼1,189.95
Media Library /wp-admin/upload.php3.32 ▲0.0224.08 ▼1.88

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Login Logo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲2715.91 ▲0.326.15 ▲0.452.00 ▼0.21
Dashboard /wp-admin2,895 ▲346.17 ▲0.01116.77 ▼14.55156.61 ▼3.66
Posts /wp-admin/edit.php2,694 ▲33.24 ▼0.0161.88 ▼7.54133.77 ▼18.58
Add New Post /wp-admin/post-new.php1,668 ▼4218.13 ▼3.23382.26 ▼59.39158.98 ▲0.61
Media Library /wp-admin/upload.php1,698 ▼05.51 ▼0.03146.09 ▲5.16186.92 ▲5.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-logo/login-logo.php:44

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)
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (A login screen with a custom logo), #2 (A source image)
Please take inspiration from this readme.txt

login-logo/login-logo.php 92% from 13 tests

The main PHP file in "Login Logo" ver. 0.10.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 258 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 plugin157 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods535.71%
▷ Protected methods00.00%
▷ Private methods964.29%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png24.78KB7.64KB▼ 69.15%
screenshot-2.png33.64KB10.18KB▼ 69.74%