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
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.06 ▼3.04 |
Dashboard /wp-admin | 3.52 ▲0.18 | 52.86 ▼12.63 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 56.74 ▲2.58 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 84.65 ▼24.49 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.06 ▲1.68 |
AZ Scrollbar Settings /wp-admin/options-general.php?page=azasbwp_options | 3.36 | 39.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 |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
azasbwp_settings |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by AZ Advanced Custom Scrollbar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,149 ▲388 | 15.17 ▲0.82 | 14.12 ▲12.45 | 43.51 ▲0.75 |
Dashboard /wp-admin | 2,358 ▲190 | 6.35 ▲0.78 | 119.28 ▲30.50 | 38.67 ▼3.71 |
Posts /wp-admin/edit.php | 2,286 ▲186 | 3.51 ▲1.55 | 56.56 ▲20.17 | 35.68 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.31 ▲0.19 | 626.77 ▼74.02 | 34.09 ▼25.91 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.35 ▲0.13 | 87.17 ▼29.76 | 43.08 ▼5.62 |
AZ Scrollbar Settings /wp-admin/options-general.php?page=azasbwp_options | 1,315 | 3.49 | 67.18 | 25.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
- > PHP Fatal error
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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 3 | 1 | 2,021 |
PHP | 4 | 160 | 213 | 565 |
CSS | 1 | 1 | 0 | 15 |
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 code | 0.39 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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