Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.22ms] Passed 4 tests
Analyzing server-side resources used by Scroll to Top Button
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.34 ▲1.12 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.34 ▲1.75 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.66 ▲0.23 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.42 ▼3.37 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.10 ▼2.87 |
Scroll to Top Button /wp-admin/themes.php?page=scroll_to_top_button_admin | 3.18 | 28.26 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Scroll to Top Button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲214 | 13.62 ▼1.06 | 7.15 ▲5.42 | 41.58 ▼2.63 |
Dashboard /wp-admin | 2,207 ▲16 | 5.84 ▼0.03 | 100.42 ▲4.99 | 39.19 ▲1.03 |
Posts /wp-admin/edit.php | 2,072 ▼17 | 2.06 ▲0.05 | 34.15 ▼1.95 | 31.25 ▼4.52 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 23.30 ▲0.17 | 668.41 ▼28.19 | 51.21 ▼4.65 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.17 ▲0.05 | 97.36 ▼5.72 | 42.25 ▲0.36 |
Scroll to Top Button /wp-admin/themes.php?page=scroll_to_top_button_admin | 812 | 2.06 | 23.71 | 27.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/themes.php?page=scroll_to_top_button_admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/themes.php?page=scroll_to_top_button_admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Settings in the admin area.), #2 (Scroll to Top Button in action)
scroll-to-top-button/scroll-to-top-button.php Passed 13 tests
The main file in "Scroll to Top Button" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
A simple plugin for displaying a scroll to top button in bottom right corner.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected168 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 53 | 40 | 101 |
CSS | 1 | 6 | 0 | 45 |
JavaScript | 1 | 6 | 0 | 22 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 33.82KB | 15.88KB | ▼ 53.04% |
screenshot-1.png | 9.21KB | 4.46KB | ▼ 51.55% |