10% change-admin-login-logo

Code Review | Admin-Logo-Title-URL Changer

WordPress plugin Admin-Logo-Title-URL Changer scored10%from 54 tests.

About plugin

  • Plugin page: change-admin-logi...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.0
  • WordPress version: 6.3.1
  • First release: Jan 29, 2019
  • Latest release: Jan 29, 2019
  • Number of updates: 3
  • Update frequency: every 13.3 days
  • Top authors: wp9579 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /725 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/change-admin-login-logo/Change_Admin_Login_Logo.php+56
    Undefined variable: tables

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.22ms] Passed 4 tests

Analyzing server-side resources used by Admin-Logo-Title-URL Changer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.65 ▲1.35
Dashboard /wp-admin3.38 ▲0.0853.48 ▲0.34
Posts /wp-admin/edit.php3.50 ▲0.1449.71 ▼1.59
Add New Post /wp-admin/post-new.php5.98 ▲0.1084.16 ▼16.97
Media Library /wp-admin/upload.php3.31 ▲0.0851.34 ▲14.41
Add Image /wp-admin/admin.php?page=submenu-first3.2936.67

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Admin-Logo-Title-URL Changer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲15814.03 ▼0.355.33 ▲3.4045.40 ▲4.48
Dashboard /wp-admin2,235 ▲445.56 ▼0.32103.09 ▲2.3336.92 ▼10.87
Posts /wp-admin/edit.php2,118 ▲292.48 ▲0.4336.72 ▼3.2534.33 ▼5.00
Add New Post /wp-admin/post-new.php1,695 ▲16722.98 ▲4.69681.91 ▲53.4042.48 ▼9.37
Media Library /wp-admin/upload.php1,417 ▲324.61 ▲0.43113.77 ▲7.3450.75 ▲3.57
Add Image /wp-admin/admin.php?page=submenu-first1,0193.5843.2024.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/change-admin-login-logo/Change_Admin_Login_Logo.php+68
    Undefined variable: tables
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/change-admin-login-logo/public/partials/Change-Admin-Login-Logo-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/change-admin-login-logo/admin/partials/Change_Admin_Login_Logo_add_playlist.php:2

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 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in change-admin-login-logo/assets to your readme.txt
  • Plugin Name: You should set the name of your plugin on the first line ( === change-admin-login-logo === )
The official readme.txt might help

change-admin-login-logo/Change_Admin_Login_Logo.php 85% from 13 tests

"Admin-Logo-Title-URL Changer" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("change-admin-login-logo.php" instead of "Change_Admin_Login_Logo.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

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
Success! There were no dangerous files found in this plugin21,600 lines of code in 93 files:
LanguageFilesBlank linesComment linesLines of code
CSS3252936515,881
JavaScript438988513,461
SVG4001,461
HTML1162195485
PHP12147549303
Markdown1409

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.23
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
39 PNG files occupy 2.25MB with 0.87MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
documentation-html-template-master/images/prettyPhoto/dark_rounded/sprite.png3.98KB2.56KB▼ 35.79%
documentation-html-template-master/images/prettyPhoto/default/sprite_y.png1.13KB0.13KB▼ 88.81%
documentation-html-template-master/images/prettyPhoto/dark_square/btnNext.png1.38KB1.14KB▼ 17.29%
documentation-html-template-master/images/prettyPhoto/facebook/contentPatternTop.png0.14KB0.11KB▼ 21.13%
documentation-html-template-master/images/prettyPhoto/facebook/btnNext.png0.83KB0.57KB▼ 30.77%