63% change-my-admin-login-logo

Code Review | Change My Admin Login Logo

WordPress plugin Change My Admin Login Logo scored63%from 54 tests.

About plugin

  • Plugin page: change-my-admin-l...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.3
  • WordPress version: 6.3.1
  • First release: Jun 9, 2020
  • Latest release: Jun 9, 2020
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: arunwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /572 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Change My Admin Login Logo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.23 ▼4.62
Dashboard /wp-admin3.36 ▲0.0552.55 ▼2.41
Posts /wp-admin/edit.php3.48 ▲0.1252.18 ▼0.79
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.50 ▼13.35
Media Library /wp-admin/upload.php3.26 ▲0.0341.35 ▲3.75

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Change My Admin Login Logo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲18014.66 ▲0.311.71 ▼1.0727.64 ▼15.86
Dashboard /wp-admin2,332 ▲1556.38 ▲0.76115.61 ▲20.9495.76 ▲50.39
Posts /wp-admin/edit.php2,275 ▲1753.62 ▲1.6454.55 ▲17.2979.72 ▲43.69
Add New Post /wp-admin/post-new.php1,694 ▲16222.80 ▼0.65639.04 ▼54.7741.66 ▼5.24
Media Library /wp-admin/upload.php1,406 ▲34.39 ▲0.1784.77 ▼22.1193.11 ▲49.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Compile error in wp-content/plugins/change-my-admin-login-logo/uninstall.php+10
    Cannot redeclare cmywll_deactivate_on_change_my_login_logo() (previously declared in wp-content/plugins/change-my-admin-login-logo/change-my-admin-login-loogo.php:29)
  • Incomplete uninstall procedure, leaving 12 files (0.26MB) in the plugin directory
    • (new file) includes/css/bootstrap.min.css
    • (new file) includes/images/mychangelogo.png
    • (new file) includes/option_constants.php
    • (new file) includes/change_admin_login.php
    • (new file) includes/images/cmywll.png
    • (new file) includes/js/bootstrap.min.js
    • (new file) includes/wp_login_logo_operation.php
    • (new file) change-my-admin-login-loogo.php
    • (new file) includes/index.php
    • (new file) includes/loader.php
    • ...
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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

SRP 50% from 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
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/change-my-admin-login-logo/change-my-admin-login-loogo.php
    • > /wp-content/plugins/change-my-admin-login-logo/includes/wp_login_logo_operation.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (My Wordpress Login Logo Settings Page), #2 (Wordpress Login Page)
  • Plugin Name: Please specify the plugin name on the first line ( === change-my-admin-login-logo === )
You can look at the official readme.txt

change-my-admin-login-logo/change-my-admin-login-loogo.php 92% from 13 tests

"Change My Admin Login Logo" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("change-my-admin-login-logo.php" instead of "change-my-admin-login-loogo.php")

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
Good job! No executable or dangerous file extensions detected200 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP73849198
CSS1061
JavaScript1061

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/mychangelogo.png37.80KB12.40KB▼ 67.19%
includes/images/cmywll.png0.53KB0.78KB0.00%