84% login-logo

Code Review | Login Logo

WordPress plugin Login Logo scored84%from 54 tests.

About plugin

  • Plugin page: login-logo
  • Plugin version: 0.10.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.2-5.9.3
  • WordPress version: 6.3.1
  • First release: Feb 1, 2011
  • Latest release: May 11, 2022
  • Number of updates: 51
  • Update frequency: every 80.7 days
  • Top authors: markjaquith (100%)

Code review

54 tests

User reviews

59 reviews

Install metrics

50,000+ active /426,617 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.00MB] [CPU: ▼5.40ms] Passed 4 tests

This is a short check of server-side resources used by Login Logo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.20 ▼4.60
Dashboard /wp-admin3.31 ▲0.0050.19 ▼3.24
Posts /wp-admin/edit.php3.36 ▲0.0050.90 ▼1.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.20 ▼9.89
Media Library /wp-admin/upload.php3.23 ▲0.0034.14 ▼3.86

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Login Logo: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲313.92 ▼0.291.95 ▼0.0538.82 ▼3.01
Dashboard /wp-admin2,186 ▲95.64 ▲0.1187.68 ▼3.1339.53 ▼0.22
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0136.68 ▼4.4235.79 ▼0.93
Add New Post /wp-admin/post-new.php1,526 ▼823.28 ▲5.25657.44 ▲23.2052.66 ▼23.95
Media Library /wp-admin/upload.php1,394 ▼64.25 ▲0.06104.01 ▼0.0743.96 ▼4.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 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 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (A login screen with a custom logo), #2 (A source image)
You can look at the official readme.txt

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

The main file in "Login Logo" v. 0.10.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 258 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin157 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13027157

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods535.71%
▷ Protected methods00.00%
▷ Private methods964.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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%