Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.30MB] [CPU: ▼18.18ms] Passed 4 tests
A check of server-side resources used by Better Smooth Scroll
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.35 | 5.63 ▼38.33 |
Dashboard /wp-admin | 3.37 ▲0.02 | 49.83 ▼17.67 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.66 ▼5.62 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 95.49 ▼11.11 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.32 ▲3.37 |
Better Smooth Scroll /wp-admin/options-general.php?page=better-smooth-scroll-admin | 3.24 | 30.37 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
_bss_smooth_scroll |
theysaidso_admin_options |
better-smooth-scroll |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Better Smooth Scroll
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲106 | 13.67 ▼1.11 | 7.79 ▲6.19 | 45.74 ▼0.05 |
Dashboard /wp-admin | 2,204 ▲27 | 5.62 ▲0.04 | 92.62 ▼0.77 | 43.37 ▲1.06 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.01 ▲0.03 | 36.77 ▼7.03 | 31.94 ▼7.30 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 23.40 ▲4.98 | 646.00 ▲5.33 | 50.92 ▼17.13 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.07 | 97.37 ▼20.20 | 43.87 ▼0.63 |
Better Smooth Scroll /wp-admin/options-general.php?page=better-smooth-scroll-admin | 1,049 | 1.82 | 23.25 | 47.10 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- better-smooth-scroll
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- _bss_smooth_scroll
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=better-smooth-scroll-admin
- > Notice in wp-content/plugins/better-smooth-scroll/admin/class-better-smooth-scroll-admin.php+99
Undefined index: con
- > GET request to /wp-admin/options-general.php?page=better-smooth-scroll-admin
- > Notice in wp-content/plugins/better-smooth-scroll/admin/class-better-smooth-scroll-admin.php+198
Undefined index: scroller_width
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: smoothscroll, scrollingsmooth, smooth, scrolleffect, scroll...
better-smooth-scroll/better-smooth-scroll.php 92% from 13 tests
The main file in "Better Smooth Scroll" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 180 characters long)
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
Everything looks great! No dangerous files found in this plugin891 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 32 | 86 | 439 |
CSS | 1 | 33 | 20 | 430 |
SVG | 2 | 0 | 1 | 21 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
6 PNG files occupy 0.26MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/upi.png | 78.57KB | 29.46KB | ▼ 62.51% |
admin/assets/img/qr.png | 14.84KB | 7.15KB | ▼ 51.81% |
admin/assets/img/sbi.png | 19.66KB | 9.76KB | ▼ 50.34% |
admin/assets/img/paytm.png | 44.70KB | 21.35KB | ▼ 52.23% |
admin/assets/img/paypral.png | 24.14KB | 23.87KB | ▼ 1.11% |