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.03MB] [CPU: ▼6.69ms] Passed 4 tests
This is a short check of server-side resources used by Back To The Top Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.51 ▲4.76 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.37 ▲0.33 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 43.27 ▼3.76 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 79.04 ▼19.79 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.72 ▼3.52 |
Back To Top Button /wp-admin/options-general.php?page=yydev-top-btn | 3.30 | 33.37 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options |
---|
yydev_back_to_top_btn |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
yydev_top_btn_timestamp |
widget_recent-comments |
Browser metrics Passed 4 tests
Back To The Top Button: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲118 | 13.81 ▼0.58 | 8.80 ▲7.24 | 42.52 ▲0.96 |
Dashboard /wp-admin | 2,196 ▲22 | 5.54 ▼0.08 | 82.94 ▼1.85 | 38.34 ▼6.33 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.01 | 33.41 ▼3.09 | 37.79 ▲3.28 |
Add New Post /wp-admin/post-new.php | 1,540 ▲1 | 18.13 ▼4.72 | 600.70 ▼54.04 | 67.00 ▲12.81 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.16 ▼0.14 | 97.24 ▼3.94 | 39.97 ▼5.95 |
Back To Top Button /wp-admin/options-general.php?page=yydev-top-btn | 1,403 | 3.04 | 39.30 | 64.23 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- yydev_back_to_top_btn
- yydev_top_btn_timestamp
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Requires at least: Invalid version format
back-to-the-top-button/index.php 92% from 13 tests
Analyzing the main PHP file in "Back To The Top Button" version 2.1.5
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("back-to-the-top-button.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected804 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 336 | 191 | 790 |
JavaScript | 1 | 7 | 4 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 18 | |
▷ Named functions | 15 | 83.33% |
▷ Anonymous functions | 3 | 16.67% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.43KB | 1.50KB | 0.00% |
images/back-to-top.png | 0.23KB | 0.24KB | 0.00% |