89% change-admin-logo

Code Review | Change Admin Logo

WordPress plugin Change Admin Logo scored89%from 54 tests.

About plugin

  • Plugin page: change-admin-logo
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 25, 2022
  • Latest release: Jul 27, 2023
  • Number of updates: 3
  • Update frequency: every 173.3 days
  • Top authors: yasirkhalifa (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /304 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.36ms] Passed 4 tests

Analyzing server-side resources used by Change Admin Logo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.00 ▼5.38
Dashboard /wp-admin3.35 ▲0.0448.31 ▲3.84
Posts /wp-admin/edit.php3.47 ▲0.1149.79 ▲2.00
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.16 ▼10.71
Media Library /wp-admin/upload.php3.25 ▲0.0233.81 ▼3.34

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Change Admin Logo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,966 ▲20915.07 ▲0.391.79 ▼0.3040.25 ▲0.39
Dashboard /wp-admin2,355 ▲1756.45 ▲0.51129.48 ▲24.0442.60 ▲3.91
Posts /wp-admin/edit.php2,261 ▲1723.32 ▲1.1447.99 ▲7.6233.52 ▼0.29
Add New Post /wp-admin/post-new.php1,548 ▲1523.23 ▼0.39549.97 ▼74.0532.01 ▼23.18
Media Library /wp-admin/upload.php1,400 ▲184.16 ▲0.0579.96 ▼15.4941.04 ▼0.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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:
  • Requires at least: Invalid plugin version format
  • Screenshots: These screenshots do not have images: #1 (Featured Image Page on Admin Menu), #2 (Featured Image Location on Post List)
The official readme.txt might help

change-admin-logo/change-admin-logo.php Passed 13 tests

"Change Admin Logo" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
101 characters long description:
This plugin gives you the feature to change wordpress default logo from wordpress default login page.

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 plugin86 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP231386

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected