78% jp-scrollbar

Code Review | JP Scrollbar

WordPress plugin JP Scrollbar scored 78% from 54 tests.

About plugin

  • Plugin page: jp-scrollbar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9.2
  • WordPress version: 6.3.1
  • First release: Nov 21, 2014
  • Latest release: Nov 21, 2014
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: joydevpal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 859 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by JP Scrollbar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.04 ▲4.49
Dashboard /wp-admin3.35 ▲0.0447.61 ▼4.16
Posts /wp-admin/edit.php3.40 ▲0.0448.71 ▼4.72
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.67 ▼13.08
Media Library /wp-admin/upload.php3.27 ▲0.0434.98 ▲0.29
JP Scrollbar Options /wp-admin/options-general.php?page=nice-scrollbar-settings3.2131.16

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by JP Scrollbar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,081 ▲32414.04 ▼0.2022.80 ▲20.6641.97 ▼5.30
Dashboard /wp-admin2,207 ▲165.84 ▼0.0597.11 ▼16.4438.94 ▼6.02
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0238.51 ▼3.1834.63 ▼1.21
Add New Post /wp-admin/post-new.php1,552 ▲1918.29 ▼4.91594.78 ▼15.5472.62 ▲20.63
Media Library /wp-admin/upload.php1,395 ▲134.20 ▲0.0197.92 ▼1.6041.62 ▲1.35
JP Scrollbar Options /wp-admin/options-general.php?page=nice-scrollbar-settings1,0842.0225.5630.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 35 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=nice-scrollbar-settings
    • > Notice in wp-content/plugins/jp-scrollbar/plugin.php+163
    Trying to access array offset on value of type bool

SRP 50% from 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
The following issues need your attention
  • 1× 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/jp-scrollbar/plugin.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (JP Scrollbar settings panel.), #2 (JP Scrollbar website.)
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

jp-scrollbar/plugin.php 92% from 13 tests

The main file in "JP Scrollbar" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jp-scrollbar.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,145 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS2342113818
PHP12916169
JavaScript33251158

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin_panel_screenshot.png56.56KB30.44KB▼ 46.18%
website_screenshot.png48.49KB23.16KB▼ 52.24%
css/mCSB_buttons.png2.93KB0.99KB▼ 66.18%