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
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 24.68 ▼14.28 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.67 ▼6.44 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.45 ▲2.28 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 80.77 ▼17.33 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.07 ▲2.91 |
Awesome Scroll Settings /wp-admin/options-general.php?page=scrollbar_settings | 3.21 | 30.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 |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Awesome-WordPress-ScrollBar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,050 ▲315 | 14.14 ▼0.54 | 12.93 ▲11.22 | 42.62 ▼0.96 |
Dashboard /wp-admin | 2,235 ▲49 | 5.00 ▲0.10 | 112.39 ▲6.32 | 36.76 ▼8.88 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.34 ▲0.19 | 38.86 ▲1.86 | 33.84 ▲0.67 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.08 ▼0.09 | 646.52 ▲4.07 | 34.85 ▼16.72 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.49 ▲0.23 | 98.52 ▼17.14 | 42.07 ▼4.65 |
Awesome Scroll Settings /wp-admin/options-general.php?page=scrollbar_settings | 1,132 | 2.40 | 47.20 | 28.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
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 43 | 20 | 214 |
JavaScript | 4 | 8 | 5 | 134 |
CSS | 2 | 7 | 0 | 84 |
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 code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/hf_default.png | 1.83KB | 0.84KB | ▼ 54.15% |
img/hf_style_1.png | 1.83KB | 0.89KB | ▼ 51.49% |
img/hf_scrollstyle_2.png | 0.89KB | 0.31KB | ▼ 65.39% |