84% awesome-scrollbar

Code Review | Awesome-WordPress-ScrollBar

WordPress plugin Awesome-WordPress-ScrollBar scored 84% from 54 tests.

About plugin

  • Plugin page: awesome-scrollbar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Apr 27, 2015
  • Latest release: Apr 27, 2015
  • Number of updates: 13
  • Update frequency: N/A
  • Top authors: robiul55 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,008 total downloads


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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.94ms] Passed 4 tests

Analyzing server-side resources used by Awesome-WordPress-ScrollBar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0724.68 ▼14.28
Dashboard /wp-admin3.32 ▲0.0143.67 ▼6.44
Posts /wp-admin/edit.php3.37 ▲0.0147.45 ▲2.28
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.77 ▼17.33
Media Library /wp-admin/upload.php3.24 ▲0.0136.07 ▲2.91
Awesome Scroll Settings /wp-admin/options-general.php?page=scrollbar_settings3.2130.17

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Awesome-WordPress-ScrollBar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,050 ▲31514.14 ▼0.5412.93 ▲11.2242.62 ▼0.96
Dashboard /wp-admin2,235 ▲495.00 ▲0.10112.39 ▲6.3236.76 ▼8.88
Posts /wp-admin/edit.php2,120 ▲312.34 ▲0.1938.86 ▲1.8633.84 ▲0.67
Add New Post /wp-admin/post-new.php1,537 ▲1823.08 ▼0.09646.52 ▲4.0734.85 ▼16.72
Media Library /wp-admin/upload.php1,411 ▲234.49 ▲0.2398.52 ▼17.1442.07 ▼4.65
Awesome Scroll Settings /wp-admin/options-general.php?page=scrollbar_settings1,1322.4047.2028.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Please fix the following
  • 1× 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/awesome-scrollbar/scroll-function.php:16

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

awesome-scrollbar/scroll-function.php 92% from 13 tests

"Awesome-WordPress-ScrollBar" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("awesome-scrollbar.php" instead of "scroll-function.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
No dangerous file extensions were detected432 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ 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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/hf_default.png1.83KB0.84KB▼ 54.15%
img/hf_style_1.png1.83KB0.89KB▼ 51.49%
img/hf_scrollstyle_2.png0.89KB0.31KB▼ 65.39%