84% advanced-scrollbar

Code Review | Advanced scrollbar - Customize the scrollbar

WordPress plugin Advanced scrollbar - Customize the scrollbar scored 84% from 54 tests.

About plugin

  • Plugin page: advanced-scrollbar
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9.1
  • WordPress version: 5.9.2
  • First release: Oct 23, 2016
  • Latest release: Mar 13, 2022
  • Number of updates: 42
  • Update frequency: every 46.8 days
  • Top authors: abuhayat (92.86%)shehabulislam (9.52%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active / 17,337 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼291.19ms] Passed 4 tests

A check of server-side resources used by Advanced scrollbar - Customize the scrollbar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1656.88 ▲6.77
Dashboard /wp-admin3.57 ▲0.1636.11 ▲1.56
Posts /wp-admin/edit.php3.79 ▲0.1540.97 ▲4.38
Add New Post /wp-admin/post-new.php7.01 ▲0.0497.17 ▼1,165.66
Media Library /wp-admin/upload.php3.42 ▲0.1223.70 ▼5.04
Advanced Scrollbar Settings /wp-admin/options-general.php?page=c_s_b_setting3.4226.50

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced scrollbar - Customize the scrollbar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,184 ▲44018.50 ▲2.4517.60 ▲11.693.62 ▲1.57
Dashboard /wp-admin3,111 ▲2508.32 ▲2.20146.20 ▲13.35162.22 ▲5.01
Posts /wp-admin/edit.php2,946 ▲2615.39 ▲2.1580.12 ▲18.68140.26 ▲1.44
Add New Post /wp-admin/post-new.php1,690 ▼6120.09 ▼1.48367.88 ▼93.92172.20 ▲14.25
Media Library /wp-admin/upload.php1,728 ▲305.65 ▲0.12106.26 ▼30.13185.70 ▼2.77
Advanced Scrollbar Settings /wp-admin/options-general.php?page=c_s_b_setting1,8615.0397.78113.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 2 options in the database
    • wedevs_basics
    • wedevs_advanced

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 2× 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/advanced-scrollbar/advanced-scrollbar.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'WeDevs_Settings_API' not found in wp-content/plugins/advanced-scrollbar/inc/fields.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: custom scroll, nice scrollbar, customizer, color scrollbar, scrollbar

advanced-scrollbar/advanced-scrollbar.php Passed 13 tests

The entry point to "Advanced scrollbar - Customize the scrollbar" version 1.1 is a PHP file that has certain tags in its header comment area
86 characters long description:
Customize scrollbar of your website with unlimited styling and color using the plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin639 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity26.00
▷ Minimum class complexity3.00
▷ Maximum class complexity49.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/icn.png3.09KB0.40KB▼ 87.18%