89% scrollbar

Code Review | Scrollbar

WordPress plugin Scrollbar scored89%from 54 tests.

About plugin

  • Plugin page: scrollbar
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2015
  • Latest release: Oct 9, 2023
  • Number of updates: 27
  • Update frequency: every 116.8 days
  • Top authors: themepoints (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

900+ active /21,407 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.35ms] Passed 4 tests

This is a short check of server-side resources used by Scrollbar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.33 ▲5.49
Dashboard /wp-admin3.33 ▲0.0244.48 ▼0.67
Posts /wp-admin/edit.php3.38 ▲0.0245.32 ▼12.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.71 ▲0.19
Media Library /wp-admin/upload.php3.25 ▲0.0235.04 ▲3.43

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Scrollbar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,018 ▲23213.76 ▼0.5917.12 ▲15.2844.29 ▲4.29
Dashboard /wp-admin2,225 ▲455.85 ▲0.2082.83 ▼6.8537.51 ▼1.24
Posts /wp-admin/edit.php2,126 ▲262.41 ▲0.4234.55 ▼5.1133.17 ▼2.26
Add New Post /wp-admin/post-new.php1,554 ▲2818.40 ▼2.65603.08 ▼60.0845.39 ▼6.55
Media Library /wp-admin/upload.php1,427 ▲274.44 ▲0.2696.00 ▼0.9842.84 ▼2.15

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Screenshots: A description for screenshot #3 is missing in scrollbar/assets to your readme.txt
The official readme.txt might help

scrollbar/scrollbar-wp.php 85% from 13 tests

"Scrollbar" version 1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 182 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("scrollbar.php" instead of "scrollbar-wp.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
There were no executable files found in this plugin173 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21826172
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin