84% brandinizer

Code Review | Brandinizer - Custom Dashboard Branding

WordPress plugin Brandinizer - Custom Dashboard Branding scored84%from 54 tests.

About plugin

  • Plugin page: brandinizer
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.0
  • WordPress version: 6.3.1
  • First release: Jul 9, 2021
  • Latest release: Aug 26, 2021
  • Number of updates: 10
  • Update frequency: every 4.9 days
  • Top authors: shubshinde (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /345 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲0.48ms] Passed 4 tests

This is a short check of server-side resources used by Brandinizer - Custom Dashboard Branding
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.81 ▲3.18
Dashboard /wp-admin3.38 ▲0.0753.53 ▼1.05
Posts /wp-admin/edit.php3.43 ▲0.0753.88 ▲2.41
Add New Post /wp-admin/post-new.php5.98 ▲0.09100.38 ▲8.02
Media Library /wp-admin/upload.php3.30 ▲0.0736.57 ▼2.64

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Brandinizer - Custom Dashboard Branding
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.69 ▲0.341.76 ▼0.0844.85 ▲0.04
Dashboard /wp-admin2,218 ▲475.64 ▲0.1187.71 ▲0.8142.41 ▼2.73
Posts /wp-admin/edit.php2,117 ▲142.04 ▲0.0136.81 ▼0.5333.52 ▼4.64
Add New Post /wp-admin/post-new.php1,543 ▲1723.41 ▼0.25616.60 ▼57.2559.04 ▲2.32
Media Library /wp-admin/upload.php1,420 ▲204.21 ▼0.00103.68 ▼3.9747.54 ▲0.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brandinizer/admin/brandinizer-admin.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brandinizer/inc/settings/brandinizer-settings.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/brandinizer/inc/settings/brandinizer-frontend.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Invalid url: "no need"
You can take inspiration from this readme.txt

brandinizer/brandinizer.php 92% from 13 tests

The main file in "Brandinizer - Custom Dashboard Branding" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin447 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions11100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/favicon.png1.64KB1.42KB▼ 13.36%
admin/img/brandinizer_logo_2.png32.82KB10.13KB▼ 69.13%
admin/img/brandinizer_logo_1.png22.53KB8.02KB▼ 64.40%
admin/img/default-logo.png15.74KB6.98KB▼ 55.63%