90% ideal-wp-login-logo-changer

Code Review | Custom Login Logo

WordPress plugin Custom Login Logo scored90%from 54 tests.

About plugin

  • Plugin page: ideal-wp-login-lo...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 26, 2019
  • Latest release: Oct 2, 2023
  • Number of updates: 18
  • Update frequency: every 79.9 days
  • Top authors: Hakik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,760 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.26ms] Passed 4 tests

Server-side resources used by Custom Login Logo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.68 ▼6.49
Dashboard /wp-admin3.35 ▲0.0444.03 ▼3.81
Posts /wp-admin/edit.php3.40 ▲0.0445.51 ▼2.34
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.66 ▼4.41
Media Library /wp-admin/upload.php3.27 ▲0.0433.17 ▲0.98
Custom Login Logo /wp-admin/options-general.php?page=change_login_logo3.2637.70

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Custom Login Logo: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.55 ▼1.041.72 ▲0.1639.17 ▼2.65
Dashboard /wp-admin2,207 ▲165.85 ▼0.03109.37 ▲9.0440.00 ▼4.17
Posts /wp-admin/edit.php2,093 ▲182.03 ▲0.0241.68 ▲3.3738.09 ▲6.20
Add New Post /wp-admin/post-new.php1,536 ▲323.11 ▼0.08641.60 ▼7.9461.60 ▲8.42
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.0396.13 ▲0.7040.70 ▼0.42
Custom Login Logo /wp-admin/options-general.php?page=change_login_logo1,2684.0063.8331.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

ideal-wp-login-logo-changer/ideal-wp-login-logo-changer.php Passed 13 tests

The main PHP script in "Custom Login Logo" version 1.1.2 is automatically included on every request by WordPress
81 characters long description:
Change the default WordPress logo by uploading your site logo for the login page.

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
There were no executable files found in this plugin256 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15522218
JavaScript114438

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin