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.01MB] [CPU: ▼7.02ms] Passed 4 tests
An overview of server-side resources used by WP Scroll To Top
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 27.18 ▼13.60 |
Dashboard /wp-admin | 3.33 ▲0.03 | 53.27 ▲5.13 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 42.41 ▼5.51 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.36 ▼9.14 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.90 ▲0.19 |
Scroll top settings /wp-admin/options-general.php?page=scrolltop-settings | 3.22 | 31.03 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Scroll To Top: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲183 | 13.80 ▼0.84 | 6.99 ▲5.43 | 40.47 ▲3.93 |
Dashboard /wp-admin | 2,234 ▲45 | 5.09 ▲0.01 | 103.11 ▼15.27 | 36.38 ▼6.20 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.29 ▲0.26 | 38.85 ▲2.71 | 32.27 ▼3.57 |
Add New Post /wp-admin/post-new.php | 1,537 ▲3 | 23.17 ▲0.13 | 591.97 ▼42.01 | 32.39 ▼18.53 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.57 ▲0.21 | 101.50 ▼1.48 | 40.64 ▼2.80 |
Scroll top settings /wp-admin/options-general.php?page=scrolltop-settings | 1,066 | 2.41 | 48.17 | 26.42 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 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/my-wp-scroll-to-top/jeba-index.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Contributors: Contributors not specified
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
my-wp-scroll-to-top/jeba-index.php 92% from 13 tests
The main file in "WP Scroll To Top" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("my-wp-scroll-to-top.php" instead of "jeba-index.php")
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
No dangerous file extensions were detected3,264 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 1,673 |
CSS | 2 | 8 | 20 | 1,335 |
PHP | 1 | 82 | 27 | 177 |
JavaScript | 2 | 4 | 4 | 79 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 9 | |
▷ Named functions | 9 | 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
No PNG files were detected