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.15MB] [CPU: ▼13.24ms] Passed 4 tests
Analyzing server-side resources used by Scroll Styler
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.75 ▼0.71 | 14.77 ▼23.98 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.02 ▲2.87 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.34 ▼3.98 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 83.21 ▼24.52 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.40 ▼0.48 |
Scroll Styler /wp-admin/options-general.php?page=scroll-styler | 3.26 | 32.32 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
scrollStylerOptions |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Scroll Styler: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.70 ▼0.73 | 1.83 ▼0.09 | 45.15 ▲2.40 |
Dashboard /wp-admin | 2,207 ▲19 | 5.79 ▲0.88 | 98.64 ▼11.33 | 39.89 ▼4.29 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.03 | 36.32 ▼4.24 | 31.40 ▼6.65 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.38 ▲0.33 | 594.11 ▼18.74 | 55.91 ▼0.13 |
Media Library /wp-admin/upload.php | 1,383 ▼2 | 4.18 ▼0.01 | 98.68 ▼2.96 | 42.62 ▼0.91 |
Scroll Styler /wp-admin/options-general.php?page=scroll-styler | 1,120 | 1.94 | 33.38 | 50.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: custom, scrollbar, thumb, scroll, style...
scroll-styler/ScrollStyler.php 85% from 13 tests
The primary PHP file in "Scroll Styler" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("scroll-styler.php" instead of "ScrollStyler.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,631 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 139 | 162 | 850 |
CSS | 2 | 48 | 10 | 460 |
PHP | 4 | 97 | 93 | 269 |
PO File | 1 | 14 | 14 | 50 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 5 | 25.00% |
▷ Public methods | 17 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/gdpr-cookie-law-responsive-javascript-gdpr-consent-plugin.png | 0.79KB | 0.78KB | ▼ 1.98% |
assets/img/elegant-age-verification-responsive-age-gate-plugin-for-wordpress.png | 3.25KB | 2.18KB | ▼ 32.95% |
assets/img/elegant-elements-jquery-forms.png | 0.93KB | 0.94KB | 0.00% |
assets/img/elegant-scroll-to-top-back-to-top-javascript-plugin.png | 1.78KB | 1.76KB | ▼ 0.88% |
assets/minicolors/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |