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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.51ms] Passed 4 tests
Server-side resources used by Tap To Top - Scroll Up Button for Back To Top
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.34 ▼7.45 |
Dashboard /wp-admin | 3.34 ▲0.03 | 52.40 ▲0.62 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 53.60 ▲5.81 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.71 ▼11.39 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.72 ▲4.20 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Tap To Top - Scroll Up Button for Back To Top
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲179 | 13.78 ▼0.57 | 10.48 ▲8.77 | 37.71 ▼8.78 |
Dashboard /wp-admin | 2,213 ▲42 | 5.62 ▲0.09 | 94.46 ▼11.10 | 43.10 ▼9.91 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.02 ▼0.05 | 41.01 ▲1.43 | 36.78 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.19 ▼0.05 | 688.86 ▲30.05 | 51.31 ▲2.98 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.18 ▼0.01 | 97.91 ▼1.64 | 40.19 ▼2.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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
Good news, no errors were detected
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 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: tap to top, back to top, scroll top, scroll up, scroll to top
tap-to-top/tap-to-top.php Passed 13 tests
The primary PHP file in "Tap To Top - Scroll Up Button for Back To Top" version 1.5.1 is used by WordPress to initiate all plugin functionality
45 characters long description:
Tap the button and scroll to top immediately.
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
Everything looks great! No dangerous files found in this plugin286 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 25 | 31 | 148 |
CSS | 2 | 12 | 2 | 137 |
JavaScript | 1 | 0 | 6 | 1 |
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.18 |
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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/top.png | 1.11KB | 0.19KB | ▼ 82.70% |
img/author.png | 110.64KB | 37.40KB | ▼ 66.20% |