83% az-advanced-custom-scrollbar

Code Review | AZ Advanced Custom Scrollbar

WordPress plugin AZ Advanced Custom Scrollbar scored83%from 54 tests.

About plugin

  • Plugin page: az-advanced-custo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 4.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Jul 2, 2020
  • Latest release: Jul 2, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: azplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.14MB] [CPU: ▼9.62ms] Passed 4 tests

This is a short check of server-side resources used by AZ Advanced Custom Scrollbar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.06 ▼3.04
Dashboard /wp-admin3.52 ▲0.1852.86 ▼12.63
Posts /wp-admin/edit.php3.57 ▲0.2256.74 ▲2.58
Add New Post /wp-admin/post-new.php6.02 ▲0.1384.65 ▼24.49
Media Library /wp-admin/upload.php3.36 ▲0.1339.06 ▲1.68
AZ Scrollbar Settings /wp-admin/options-general.php?page=azasbwp_options3.3639.10

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by AZ Advanced Custom Scrollbar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,149 ▲38815.17 ▲0.8214.12 ▲12.4543.51 ▲0.75
Dashboard /wp-admin2,358 ▲1906.35 ▲0.78119.28 ▲30.5038.67 ▼3.71
Posts /wp-admin/edit.php2,286 ▲1863.51 ▲1.5556.56 ▲20.1735.68 ▼0.71
Add New Post /wp-admin/post-new.php1,543 ▲1723.31 ▲0.19626.77 ▼74.0234.09 ▼25.91
Media Library /wp-admin/upload.php1,417 ▲174.35 ▲0.1387.17 ▼29.7643.08 ▼5.62
AZ Scrollbar Settings /wp-admin/options-general.php?page=azasbwp_options1,3153.4967.1825.90

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • azasbwp_settings
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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: Class 'AZASBWP_Settings_API' not found in wp-content/plugins/az-advanced-custom-scrollbar/admin/plugin-options.php:12

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)
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: jquery, nice scroll, scrollbar, custom scrollbar, wordpress

az-advanced-custom-scrollbar/plugin-main.php 77% from 13 tests

Analyzing the main PHP file in "AZ Advanced Custom Scrollbar" version 1.0.0
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("az-advanced-custom-scrollbar.php" instead of "plugin-main.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,601 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity36.00
▷ Minimum class complexity3.00
▷ Maximum class complexity69.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions685.71%
▷ Anonymous functions114.29%
▷ Global constants3100.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
PNG images were not found in this plugin