Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼138.06ms] Passed 4 tests
An overview of server-side resources used by Simple Scroll to Top Button
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 36.99 ▲13.40 |
Dashboard /wp-admin | 3.16 ▲0.11 | 50.29 ▲5.96 |
Posts /wp-admin/edit.php | 3.27 ▲0.17 | 47.86 ▲0.78 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 94.96 ▼558.43 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 33.62 ▼0.53 |
Scroll to Top /wp-admin/options-general.php?page=simple-scroll-to-top-button | 3.21 | 33.01 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 1 new option
New WordPress options |
---|
spacexchimp_p008_service_info |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Scroll to Top Button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,845 ▲249 | 16.12 ▲0.25 | 14.54 ▲6.85 | 58.54 ▲5.53 |
Dashboard /wp-admin | 2,978 ▲47 | 5.91 ▼0.04 | 147.82 ▲10.29 | 110.59 ▼0.92 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▼0.00 | 67.71 ▼2.55 | 90.00 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,675 ▲177 | 18.78 ▼0.15 | 366.51 ▼15.84 | 110.79 ▼0.82 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.10 ▲0.06 | 159.97 ▲8.03 | 125.96 ▼2.23 |
Scroll to Top /wp-admin/options-general.php?page=simple-scroll-to-top-button | 3,719 | 3.52 | 89.23 | 122.69 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- spacexchimp_p008_service_info
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 15× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/simple-scroll-to-top-button/inc/php/tabs/support.php
- > /wp-content/plugins/simple-scroll-to-top-button/inc/php/inline-js.php
- > /wp-content/plugins/simple-scroll-to-top-button/inc/php/enqueue.php
- > /wp-content/plugins/simple-scroll-to-top-button/inc/php/page.php
- > /wp-content/plugins/simple-scroll-to-top-button/inc/php/sidebar.php
- > /wp-content/plugins/simple-scroll-to-top-button/inc/php/controls.php
- > /wp-content/plugins/simple-scroll-to-top-button/inc/php/functional.php
- > /wp-content/plugins/simple-scroll-to-top-button/inc/php/messages.php
- > /wp-content/plugins/simple-scroll-to-top-button/inc/php/versioning.php
- > /wp-content/plugins/simple-scroll-to-top-button/inc/php/tabs/faq.php
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)
There were no browser issues 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
Please fix the following attributes:
- Tags: You are using too many tags: 38 tag instead of maximum 10
simple-scroll-to-top-button/simple-scroll-to-top-button.php Passed 13 tests
The main file in "Simple Scroll to Top Button" v. 4.46 serves as a complement to information provided in readme.txt and as the entry point to the plugin
73 characters long description:
Easily and safely add a "Scroll to Top" button to your WordPress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected6,371 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 1 | 0 | 2,677 |
PO File | 5 | 814 | 838 | 1,780 |
PHP | 16 | 271 | 357 | 1,224 |
CSS | 5 | 30 | 80 | 589 |
JavaScript | 4 | 22 | 37 | 101 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 32 | |
▷ Named functions | 32 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/spacexchimp-logo.png | 21.01KB | 14.98KB | ▼ 28.69% |
inc/img/thanks.png | 9.03KB | 9.47KB | 0.00% |