84% header-login-logo

Code Review | Header Login Logo

WordPress plugin Header Login Logo scored84%from 54 tests.

About plugin

  • Plugin page: header-login-logo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-3.8
  • WordPress version: 6.3.1
  • First release: Jan 15, 2014
  • Latest release: Jan 15, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: filipjohansson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,924 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
Installer ran successfully

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

This is a short check of server-side resources used by Header Login Logo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.54 ▼5.96
Dashboard /wp-admin3.31 ▼0.0345.16 ▼19.17
Posts /wp-admin/edit.php3.37 ▲0.0142.45 ▼6.65
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.04 ▼12.06
Media Library /wp-admin/upload.php3.24 ▲0.0033.49 ▼0.14

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Header Login Logo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.71 ▼0.904.12 ▲2.1243.25 ▲0.82
Dashboard /wp-admin2,203 ▲155.84 ▲0.91101.15 ▼2.3340.20 ▲1.32
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0734.18 ▼9.6135.71 ▼1.00
Add New Post /wp-admin/post-new.php1,533 ▼023.21 ▼0.01684.08 ▲4.3358.11 ▲5.71
Media Library /wp-admin/upload.php1,391 ▲34.19 ▲0.0095.73 ▼20.3443.31 ▼2.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at 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/header-login-logo/header-login-logo.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (The login screen with a custom header logo) image missing
You can look at the official readme.txt

header-login-logo/header-login-logo.php Passed 13 tests

The principal PHP file in "Header Login Logo" v. 1.0 is loaded by WordPress automatically on each request
41 characters long description:
Uses the custom header as the login logo.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182220

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png14.28KB6.95KB▼ 51.33%