84% vp-scrollbar

Code Review | VP Scrollbar

WordPress plugin VP Scrollbar scored 84% from 54 tests.

About plugin

  • Plugin page: vp-scrollbar
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 5.8.1
  • First release: May 17, 2014
  • Latest release: May 17, 2014
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: virtualproducts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 620 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.87MB] [CPU: ▼188.39ms] Passed 4 tests

An overview of server-side resources used by VP Scrollbar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.76 ▼1.074.74 ▼30.24
Dashboard /wp-admin1.78 ▼1.275.96 ▼38.80
Posts /wp-admin/edit.php1.78 ▼1.336.07 ▼39.34
Add New Post /wp-admin/post-new.php1.78 ▼3.655.52 ▼645.19
Media Library /wp-admin/upload.php1.78 ▼1.225.37 ▼27.56

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for VP Scrollbar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,901 ▲30516.44 ▲1.1923.00 ▲14.7849.79 ▼1.49
Dashboard /wp-admin2,974 ▲405.92 ▼0.07142.78 ▼8.31112.93 ▲1.99
Posts /wp-admin/edit.php2,743 ▲42.73 ▲0.0165.93 ▼0.1890.78 ▼0.96
Add New Post /wp-admin/post-new.php1,597 ▼8618.46 ▲0.03390.74 ▲5.75108.72 ▲2.99
Media Library /wp-admin/upload.php1,811 ▲45.03 ▲0.01161.03 ▲8.17111.00 ▼3.69

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
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the vp-nice-scrollbar-main handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vp-scrollbar/vp-scroll-bar-hook.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

vp-scrollbar/vp-scroll-bar-hook.php 92% from 13 tests

The entry point to "VP Scrollbar" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vp-scrollbar.php" instead of "vp-scroll-bar-hook.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin145 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript200117
PHP1141028

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin