84% wp-nice-scrollbar

Code Review | WordPress Nice Scrollbar

WordPress plugin WordPress Nice Scrollbar scored84%from 54 tests.

About plugin

  • Plugin page: wp-nice-scrollbar
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-3.9
  • WordPress version: 6.3.1
  • First release: Jun 4, 2014
  • Latest release: Jun 11, 2014
  • Number of updates: 13
  • Update frequency: every 3.2 days
  • Top authors: raju_ahmed (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,676 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
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.91ms] Passed 4 tests

Server-side resources used by WordPress Nice Scrollbar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.22 ▲0.14
Dashboard /wp-admin3.42 ▲0.1147.07 ▼2.07
Posts /wp-admin/edit.php3.53 ▲0.1849.42 ▲2.00
Add New Post /wp-admin/post-new.php6.00 ▲0.1184.02 ▼9.14
Media Library /wp-admin/upload.php3.34 ▲0.1133.41 ▼0.56
scrollbar options /wp-admin/options-general.php?page=settings_api_test3.3130.07

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
wedevs_basics
widget_theysaidso_widget
wedevs_advanced
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WordPress Nice Scrollbar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,025 ▲29013.94 ▼0.3613.57 ▲11.5639.65 ▼4.06
Dashboard /wp-admin2,232 ▲445.11 ▲0.20110.63 ▼7.9940.42 ▼7.42
Posts /wp-admin/edit.php2,134 ▲452.44 ▲0.4542.68 ▲6.1350.04 ▲12.33
Add New Post /wp-admin/post-new.php1,533 ▲523.34 ▲0.36666.87 ▼1.2735.06 ▼15.52
Media Library /wp-admin/upload.php1,421 ▲334.46 ▲0.21100.11 ▼10.1043.33 ▼1.84
scrollbar options /wp-admin/options-general.php?page=settings_api_test1,0902.4452.0925.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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • wedevs_basics
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • wedevs_advanced
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 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/wp-nice-scrollbar/output-setting.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-nice-scrollbar/output-setting.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% 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 need to be fixed:
  • Screenshots: These screenshots need descriptions #2, #3, #4, #9, #0, #0, #0 in wp-nice-scrollbar/assets to your readme.txt
You can take inspiration from this readme.txt

wp-nice-scrollbar/plugin-hook.php 92% from 13 tests

The entry point to "WordPress Nice Scrollbar" version 3.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-nice-scrollbar.php" instead of "plugin-hook.php")

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 detected564 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3140195450
JavaScript100114

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity23.50
▷ Minimum class complexity3.00
▷ Maximum class complexity44.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin