Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼13.65ms] Passed 4 tests
A check of server-side resources used by Awesome wordpress custom scrollbar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 45.16 ▲1.70 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.91 ▼20.22 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.03 ▼1.16 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.58 ▼26.61 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.18 ▼6.62 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/awesome-custom-scrollbar/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/awesome-custom-scrollbar/assets/icon-128\303\227128.png"
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Awesome wordpress custom scrollbar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,073 ▲287 | 13.80 ▼0.49 | 17.10 ▲15.26 | 38.66 ▼4.97 |
Dashboard /wp-admin | 2,215 ▲38 | 5.75 ▲0.10 | 89.98 ▼2.09 | 39.07 ▼6.72 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.26 ▲0.31 | 38.81 ▼2.80 | 34.27 ▼3.86 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.64 ▼0.07 | 702.52 ▲11.22 | 39.36 ▼22.94 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.46 ▲0.23 | 105.50 ▼5.20 | 47.90 ▼1.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-custom-scrollbar/plugin-function.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Contributors: Contributors not specified
awesome-custom-scrollbar/plugin-function.php 69% from 13 tests
Analyzing the main PHP file in "Awesome wordpress custom scrollbar" version 1.0
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 202 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("awesome-custom-scrollbar.php" instead of "plugin-function.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected60 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 19 | 38 |
CSS | 1 | 2 | 0 | 16 |
JavaScript | 2 | 6 | 2 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128×128.png | 2.80KB | 2.75KB | ▼ 1.95% |
assets/banner-772x250.png.png | 15.56KB | 8.03KB | ▼ 48.37% |
img/icon.png | 0.36KB | 0.27KB | ▼ 25.54% |