84% advanced-scrollbar

Code Review | Advanced scrollbar - Customize the scrollbar

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

About plugin

  • Plugin page: advanced-scrollbar
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 23, 2016
  • Latest release: Oct 14, 2023
  • Number of updates: 54
  • Update frequency: every 47.2 days
  • Top authors: abuhayat (77.78%)shehabulislam (22.22%)charlescormier (3.7%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /23,321 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 gracefully, with no errors

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

An overview of server-side resources used by Advanced scrollbar - Customize the scrollbar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0941.65 ▼0.01
Dashboard /wp-admin3.46 ▲0.1554.32 ▲2.39
Posts /wp-admin/edit.php3.57 ▲0.2150.92 ▼5.23
Add New Post /wp-admin/post-new.php6.01 ▲0.1289.11 ▼1.99
Media Library /wp-admin/upload.php3.36 ▲0.1238.32 ▲2.76
Advanced Scrollbar Settings /wp-admin/options-general.php?page=c_s_b_setting3.3537.54

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Advanced scrollbar - Customize the scrollbar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,203 ▲44215.62 ▲0.9715.86 ▲13.8537.91 ▼0.04
Dashboard /wp-admin2,353 ▲1736.33 ▲0.74118.14 ▲28.9739.67 ▼5.55
Posts /wp-admin/edit.php2,284 ▲1813.49 ▲1.5054.17 ▲14.2731.21 ▼8.35
Add New Post /wp-admin/post-new.php1,541 ▲1323.20 ▲0.15636.38 ▲16.0737.21 ▼17.40
Media Library /wp-admin/upload.php1,421 ▲214.33 ▲0.1583.55 ▼24.8343.54 ▼4.07
Advanced Scrollbar Settings /wp-admin/options-general.php?page=c_s_b_setting1,3783.6376.0628.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 8 options
    • db_upgraded
    • theysaidso_admin_options
    • wedevs_advanced
    • widget_recent-comments
    • widget_theysaidso_widget
    • wedevs_basics
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: customizer, scrollbar, color scrollbar, nice scrollbar, custom scroll

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

The entry point to "Advanced scrollbar - Customize the scrollbar" version 1.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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected643 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3137199523
JavaScript100120

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued 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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods34100.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

It is recommended to compress PNG files in your plugin to 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%