Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼140.13ms] Passed 4 tests
Server-side resources used by Scroll To Top
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 40.43 ▲4.06 |
Dashboard /wp-admin | 3.09 ▲0.04 | 45.10 ▲10.68 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 43.21 ▼1.01 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 85.97 ▼561.67 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 31.82 ▼1.89 |
Recommendations /wp-admin/admin.php?page=wstt_recommendations | 3.02 | 29.52 |
Scroll To Top /wp-admin/admin.php?page=scr_options_premium | 3.02 | 29.59 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 11 new options
New WordPress options |
---|
scr_font_size |
scr_border_radius |
scr_pre_icons |
scr_text |
activate_text_icon |
scr_background_color |
scr_color |
scr_width |
scr_position |
scr_height |
... |
Browser metrics Passed 4 tests
Scroll To Top: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,859 ▲263 | 16.34 ▲0.73 | 12.70 ▲3.38 | 49.50 ▼1.97 |
Dashboard /wp-admin | 3,005 ▲74 | 5.98 ▼0.24 | 143.84 ▼9.25 | 109.62 ▼2.40 |
Posts /wp-admin/edit.php | 2,777 ▲38 | 2.75 ▲0.03 | 70.75 ▲5.52 | 82.83 ▼7.60 |
Add New Post /wp-admin/post-new.php | 1,731 ▲48 | 15.60 ▼3.11 | 471.59 ▲61.77 | 108.93 ▲5.54 |
Media Library /wp-admin/upload.php | 1,845 ▲35 | 5.05 ▲0.03 | 157.84 ▲11.42 | 112.99 ▼6.14 |
Recommendations /wp-admin/admin.php?page=wstt_recommendations | 1,345 | 2.10 | 52.90 | 71.50 |
Scroll To Top /wp-admin/admin.php?page=scr_options_premium | 1,860 | 3.23 | 84.80 | 118.63 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 11 options in the database
- scr_font_size
- scr_width
- activate_pre_icon
- activate_text_icon
- scr_pre_icons
- scr_height
- scr_background_color
- scr_color
- scr_position
- scr_text
- ...
Smoke tests 25% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-scroll-to-top/scr_style.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: activate_pre_icon in wp-content/plugins/wp-scroll-to-top/scr_style.php on line 16
- > PHP Notice
Undefined variable: scr_border_radius in wp-content/plugins/wp-scroll-to-top/scr_style.php on line 20
- > PHP Notice
Undefined variable: scr_height in wp-content/plugins/wp-scroll-to-top/scr_style.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-scroll-to-top/admin/wstt_ui.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-scroll-to-top/wp-scroller.php:14
- > PHP Notice
Undefined variable: scr_width in wp-content/plugins/wp-scroll-to-top/scr_style.php on line 21
- > PHP Notice
Undefined variable: scr_color in wp-content/plugins/wp-scroll-to-top/scr_style.php on line 43
- > PHP Notice
Undefined variable: scr_position in wp-content/plugins/wp-scroll-to-top/scr_style.php on line 8
- > PHP Notice
Undefined variable: scr_background_color in wp-content/plugins/wp-scroll-to-top/scr_style.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-scroll-to-top/wstt_recommendations.php:4
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=scr_options_premium
- > Network (severe)
wp-content/plugins/wp-scroll-to-top-premium/scr_style2.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=scr_options_premium
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=scr_options_premium 203 The specified value "150px" cannot be parsed, or is out of range.
- > GET request to /wp-admin/admin.php?page=scr_options_premium
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=scr_options_premium 207 The specified value "34px" cannot be parsed, or is out of range.
- > GET request to /wp-admin/admin.php?page=scr_options_premium
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: asd is not defined" "ReferenceError: asd is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-scroll-to-top/js/color-picker.js?ver=5.8.1:3:9)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/admin.php?page=scr_options_premium
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught ReferenceError: asd is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
wp-scroll-to-top/wp-scroller.php 92% from 13 tests
The primary PHP file in "Scroll To Top" version 2.0 is used by WordPress to initiate all plugin functionality
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 ("wp-scroll-to-top.php" instead of "wp-scroller.php")
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
There were no executable files found in this plugin494 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 102 | 19 | 473 |
JavaScript | 2 | 9 | 0 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.01 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 PNG files occupy 0.24MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imgs/slider.png | 27.00KB | 4.15KB | ▼ 84.63% |
imgs/social-feed.png | 86.63KB | 25.78KB | ▼ 70.24% |
scr_icons/icon-6/icon-6-red.png | 3.73KB | 0.93KB | ▼ 74.95% |
scr_icons/icon-6/icon-6-black.png | 3.54KB | 0.93KB | ▼ 73.64% |
scr_icons/icon-6/icon-6-blue.png | 3.73KB | 0.94KB | ▼ 74.88% |