77% wp-admin-logo-customization

Code Review | Wp-admin Logo Customization

WordPress plugin Wp-admin Logo Customization scored77%from 54 tests.

About plugin

  • Plugin page: wp-admin-logo-cus...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2014
  • Latest release: Jun 6, 2014
  • Number of updates: 3
  • Update frequency: every 123.7 days
  • Top authors: ruhul105 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,199 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Wp-admin Logo Customization
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0241.72 ▼0.17
Dashboard /wp-admin3.37 ▲0.0346.22 ▼3.78
Posts /wp-admin/edit.php3.49 ▲0.0952.13 ▲2.74
Add New Post /wp-admin/post-new.php5.97 ▲0.0588.56 ▼14.73
Media Library /wp-admin/upload.php3.30 ▲0.0337.23 ▼5.25
Logo Options /wp-admin/index.php?page=wp-logo-customization3.2430.54

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Wp-admin Logo Customization
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.29 ▼0.342.37 ▲0.6746.88 ▲3.33
Dashboard /wp-admin2,214 ▲344.87 ▼0.8194.39 ▼0.2638.89 ▼0.76
Posts /wp-admin/edit.php2,120 ▲202.55 ▲0.5744.94 ▲9.1134.14 ▼2.94
Add New Post /wp-admin/post-new.php1,709 ▲18322.23 ▼0.84663.65 ▼28.9739.44 ▼16.08
Media Library /wp-admin/upload.php1,439 ▲394.50 ▲0.3088.68 ▼19.5640.25 ▼4.63
Logo Options /wp-admin/index.php?page=wp-logo-customization8672.2229.5928.31

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/index.php?page=wp-logo-customization
    • > Notice in wp-content/plugins/wp-admin-logo-customization/index.php+118
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-admin-logo-customization/index.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (ScreenShot.png), #2 ()
  • Donate link: Please fix this invalid url: ""
  • Stable tag: Empty string
You can look at the official readme.txt

wp-admin-logo-customization/index.php 92% from 13 tests

The main PHP script in "Wp-admin Logo Customization" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-admin-logo-customization.php" instead of "index.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
No dangerous file extensions were detected103 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1311490
JavaScript191213

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ScreenShot.png71.99KB21.15KB▼ 70.62%