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
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.10ms] Passed 4 tests
Server-side resources used by Smooth Back To Top Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.96 ▼4.17 |
Dashboard /wp-admin | 3.46 ▲0.16 | 48.04 ▲5.32 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 51.75 ▲5.13 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.85 ▼10.69 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.15 ▲5.42 |
Back To Top Button /wp-admin/options-general.php?page=smooth-back-to-top | 3.30 | 35.82 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
sbttb_settings |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Smooth Back To Top Button
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,060 ▲325 | 15.36 ▲0.80 | 6.36 ▲4.62 | 41.89 ▲3.10 |
Dashboard /wp-admin | 2,369 ▲183 | 6.66 ▲1.67 | 132.63 ▲11.94 | 43.76 ▲2.08 |
Posts /wp-admin/edit.php | 2,270 ▲178 | 3.51 ▲1.47 | 55.41 ▲15.47 | 31.43 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,540 ▲1 | 18.67 ▼4.56 | 588.27 ▼93.71 | 33.17 ▼18.84 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.35 ▲0.06 | 85.77 ▼23.57 | 44.34 ▼2.70 |
Back To Top Button /wp-admin/options-general.php?page=smooth-back-to-top | 1,828 | 4.10 | 85.44 | 36.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SBTTB_Settings_API' not found in wp-content/plugins/smooth-back-to-top-button/admin/class-sbttb_settings.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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:
- Donate link: Invalid URI ("")
smooth-back-to-top-button/smooth-back-to-top-button.php Passed 13 tests
The main PHP script in "Smooth Back To Top Button" version 1.1.12 is automatically included on every request by WordPress
83 characters long description:
The best WordPress smooth back to top button plugin with scroll progress indicator.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,252 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 232 | 343 | 1,119 |
CSS | 2 | 7 | 2 | 79 |
SVG | 2 | 0 | 0 | 34 |
JavaScript | 1 | 8 | 0 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 29.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 2 | 3.23% |
▷ Public methods | 58 | 93.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.45% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin