89% tcbd-custom-scrollbar

Code Review | TCBD Custom Scrollbar

WordPress plugin TCBD Custom Scrollbar scored89%from 54 tests.

About plugin

  • Plugin page: tcbd-custom-scrol...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Sep 7, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: tcoder (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,297 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼12.02ms] Passed 4 tests

A check of server-side resources used by TCBD Custom Scrollbar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.29 ▼3.23
Dashboard /wp-admin3.35 ▲0.0147.45 ▼10.13
Posts /wp-admin/edit.php3.40 ▲0.0545.95 ▼1.72
Add New Post /wp-admin/post-new.php5.95 ▲0.0780.64 ▼24.56
Media Library /wp-admin/upload.php3.28 ▲0.0537.52 ▼10.14
TCBD Custom Scrollbar /wp-admin/options-general.php?page=tcbd-custom-scrollbar-settings3.2530.79

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 15 new options
New WordPress options
tcbd_custom_scrollbar_show
theysaidso_admin_options
widget_recent-posts
tcbd_custom_scrollbar_autohide
tcbd_custom_scrollbar_hidecursordelay
can_compress_scripts
tcbd_custom_scrollbar_speed
tcbd_custom_scrollbar_border_color
tcbd_custom_scrollbar_opacity
tcbd_custom_scrollbar_bgcolor
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for TCBD Custom Scrollbar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,021 ▲26013.97 ▼0.5816.69 ▲14.8242.79 ▲1.21
Dashboard /wp-admin2,230 ▲535.79 ▲0.0586.87 ▼0.9137.83 ▼1.46
Posts /wp-admin/edit.php2,137 ▲342.30 ▲0.2737.13 ▼5.5332.89 ▼4.96
Add New Post /wp-admin/post-new.php1,556 ▲3023.32 ▲0.36614.45 ▲10.6134.69 ▼23.29
Media Library /wp-admin/upload.php1,435 ▲354.44 ▲0.3298.65 ▼22.4741.13 ▼5.05
TCBD Custom Scrollbar /wp-admin/options-general.php?page=tcbd-custom-scrollbar-settings1,2672.3452.6828.95

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
Please take inspiration from this readme.txt

tcbd-custom-scrollbar/plugins-hook.php 85% from 13 tests

The main file in "TCBD Custom Scrollbar" v. 1.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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 237 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tcbd-custom-scrollbar.php" instead of "plugins-hook.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected431 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP23919197
JavaScript323131
CSS190103

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions9
▷ Named functions9100.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
PNG images were not found in this plugin