10% cd-buddybar-logo-changer

Code Review | CD BuddyBar Logo Changer

WordPress plugin CD BuddyBar Logo Changer scored10%from 54 tests.

About plugin

  • Plugin page: cd-buddybar-logo-...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 7, 2010
  • Latest release: Jan 4, 2015
  • Number of updates: 62
  • Update frequency: every 29.4 days
  • Top authors: slaFFik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,583 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/cd-buddybar-logo-changer/cd-bblc.php+17
    Trying to get property 'root_domain' of non-object

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.53ms] Passed 4 tests

This is a short check of server-side resources used by CD BuddyBar Logo Changer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.87 ▲1.59
Dashboard /wp-admin3.31 ▲0.0049.03 ▼5.26
Posts /wp-admin/edit.php3.36 ▲0.0048.61 ▼0.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.88 ▼11.74
Media Library /wp-admin/upload.php3.23 ▲0.0035.76 ▼0.36

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
cd_bblc
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by CD BuddyBar Logo Changer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.091.84 ▲0.1946.85 ▲2.85
Dashboard /wp-admin2,195 ▲185.56 ▼0.0587.72 ▼1.0136.44 ▼5.92
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0937.36 ▼0.8335.76 ▼2.11
Add New Post /wp-admin/post-new.php1,526 ▼923.29 ▲4.72655.70 ▲2.4852.67 ▼10.18
Media Library /wp-admin/upload.php1,394 ▼34.18 ▼0.0999.78 ▼4.7744.80 ▼7.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • cd_bblc
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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)
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cd-buddybar-logo-changer/cd-bblc.php:10

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

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tested up to: Invalid plugin version format
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === cd-buddybar-logo-changer === )
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

cd-buddybar-logo-changer/cd-bblc.php 92% from 13 tests

Analyzing the main PHP file in "CD BuddyBar Logo Changer" version 2.2
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cd-buddybar-logo-changer.php" instead of "cd-bblc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin363 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1229214
PO File26164149

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin