84% brozzme-colorize

Code Review | Brozzme Colorize Bar

WordPress plugin Brozzme Colorize Bar scored84%from 54 tests.

About plugin

  • Plugin page: brozzme-colorize
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.8
  • WordPress version: 6.3.1
  • First release: Feb 2, 2017
  • Latest release: Oct 28, 2021
  • Number of updates: 9
  • Update frequency: every 191.9 days
  • Top authors: Benoti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /782 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.40ms] Passed 4 tests

This is a short check of server-side resources used by Brozzme Colorize Bar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0938.76 ▲1.37
Dashboard /wp-admin3.41 ▲0.0648.95 ▼15.89
Posts /wp-admin/edit.php3.52 ▲0.1646.39 ▲0.99
Add New Post /wp-admin/post-new.php5.99 ▲0.1091.78 ▼7.94
Media Library /wp-admin/upload.php3.33 ▲0.1035.92 ▲1.26
Colorize settings /wp-admin/admin.php?page=brozzme-colorize3.3031.02
Brozzme /wp-admin/admin.php?page=brozzme-plugins3.32287.46

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Brozzme Colorize Bar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲11213.34 ▼1.065.05 ▲3.1243.74 ▲1.58
Dashboard /wp-admin2,228 ▲405.84 ▲0.9998.36 ▼8.7044.17 ▼2.05
Posts /wp-admin/edit.php2,111 ▲192.00 ▲0.0335.73 ▼2.9035.70 ▲6.43
Add New Post /wp-admin/post-new.php1,553 ▲223.15 ▲4.84630.85 ▼21.1055.61 ▼2.12
Media Library /wp-admin/upload.php1,416 ▲344.33 ▲0.1595.59 ▼4.2240.45 ▼3.77
Colorize settings /wp-admin/admin.php?page=brozzme-colorize8322.0625.6129.40
Brozzme /wp-admin/admin.php?page=brozzme-plugins1,0452.0323.9034.26

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: 8 options
    • db_upgraded
    • bcolor_general_settings
    • bcolor_colorize_settings
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/brozzme-colorize/brozzme_colorize.php

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: address bar, customization, color, theme, colorize...

brozzme-colorize/brozzme_colorize.php 92% from 13 tests

This is the main PHP file of "Brozzme Colorize Bar" version 1.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("brozzme-colorize.php" instead of "brozzme_colorize.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected520 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP513047508
CSS1317
JavaScript1345

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.60
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods3296.97%
▷ Protected methods00.00%
▷ Private methods13.03%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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 images were found in this plugin