90% custom-toolbar-color

Code Review | Custom Toolbar Color

WordPress plugin Custom Toolbar Color scored90%from 54 tests.

About plugin

  • Plugin page: custom-toolbar-color
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 14, 2023
  • Latest release: Aug 26, 2023
  • Number of updates: 9
  • Update frequency: every 18.3 days
  • Top authors: yoshikazu0307 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /490 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.00MB] [CPU: ▼7.45ms] Passed 4 tests

This is a short check of server-side resources used by Custom Toolbar Color
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.39 ▼8.09
Dashboard /wp-admin3.31 ▼0.0354.26 ▼15.64
Posts /wp-admin/edit.php3.37 ▲0.0151.17 ▲3.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.43 ▼7.91
Media Library /wp-admin/upload.php3.24 ▲0.0139.48 ▲1.84
Custom Toolbar Color /wp-admin/options-general.php?page=custom-toolbar-color3.2033.67

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

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

Browser metrics Passed 4 tests

Custom Toolbar Color: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.35 ▲0.061.75 ▼0.1145.41 ▲1.38
Dashboard /wp-admin2,199 ▲195.52 ▼0.1587.74 ▼5.3238.55 ▼2.30
Posts /wp-admin/edit.php2,104 ▲72.00 ▼0.0339.21 ▲2.7736.91 ▼1.65
Add New Post /wp-admin/post-new.php1,541 ▲1322.87 ▼0.41663.06 ▲37.3354.93 ▼6.25
Media Library /wp-admin/upload.php1,404 ▲14.23 ▲0.0295.80 ▼10.0640.87 ▼8.16
Custom Toolbar Color /wp-admin/options-general.php?page=custom-toolbar-color7952.0024.5526.45

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: admin, color

custom-toolbar-color/custom-toolbar-color.php Passed 13 tests

The main file in "Custom Toolbar Color" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
Change the background color of the WordPress toolbar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171042

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions4
▷ Named functions4100.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