Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.59MB] [CPU: ▼0.66ms] Passed 4 tests
An overview of server-side resources used by Scroll To Top
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.57 | 42.60 ▲0.60 |
Dashboard /wp-admin | 3.92 ▲0.57 | 51.18 ▼14.44 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 51.91 ▲2.37 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.61 | 96.51 ▲9.76 |
Media Library /wp-admin/upload.php | 3.85 ▲0.61 | 40.85 ▲8.84 |
Scroll To Top /wp-admin/options-general.php?page=scroll_top_settings_page | 3.82 | 34.44 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 126 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Scroll To Top
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲140 | 13.75 ▼0.98 | 8.39 ▲6.78 | 35.42 ▼9.60 |
Dashboard /wp-admin | 2,202 ▲25 | 5.59 ▼0.02 | 96.36 ▲6.77 | 39.26 ▼3.52 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.96 ▼0.07 | 40.18 ▲3.54 | 35.69 ▲3.66 |
Add New Post /wp-admin/post-new.php | 1,529 ▼11 | 23.47 ▲0.35 | 586.60 ▼11.55 | 55.16 ▲9.50 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.19 ▼0.00 | 97.69 ▼2.45 | 41.14 ▼1.15 |
Scroll To Top /wp-admin/options-general.php?page=scroll_top_settings_page | 1,383 | 2.31 | 52.69 | 27.75 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
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
Even though no errors were found, this is by no means an exhaustive test
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
- 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\Plugin\\UpdateChecker' not found in wp-content/plugins/scroll-top/plugin-update-checker/Puc/v5p2/Vcs/PluginUpdateChecker.php:9
- > PHP Fatal error
Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\InstalledPackage' not found in wp-content/plugins/scroll-top/plugin-update-checker/Puc/v5p2/Plugin/Package.php:9
- > PHP Fatal error
Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\InstalledPackage' not found in wp-content/plugins/scroll-top/plugin-update-checker/Puc/v5p2/Theme/Package.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-top/admin/admin.php:30
- > PHP Fatal error
Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\Update' not found in wp-content/plugins/scroll-top/plugin-update-checker/Puc/v5p2/Plugin/Update.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-top/inc/functions.php:64
- > PHP Fatal error
Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\Vcs\\Api' not found in wp-content/plugins/scroll-top/plugin-update-checker/Puc/v5p2/Vcs/GitLabApi.php:7
- > PHP Fatal error
Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\UpdateChecker' not found in wp-content/plugins/scroll-top/plugin-update-checker/Puc/v5p2/Theme/UpdateChecker.php:12
- > PHP Fatal error
Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\Vcs\\Api' not found in wp-content/plugins/scroll-top/plugin-update-checker/Puc/v5p2/Vcs/GitHubApi.php:9
- > PHP Fatal error
Uncaught Error: Class 'YahnisElsts\\PluginUpdateChecker\\v5p2\\DebugBar\\Panel' not found in wp-content/plugins/scroll-top/plugin-update-checker/Puc/v5p2/DebugBar/PluginPanel.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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
7 plugin tags: back to top, scroll to top, jquery, to top, customization...
scroll-top/scroll-top.php Passed 13 tests
The primary PHP file in "Scroll To Top" version 1.5.3 is used by WordPress to initiate all plugin functionality
78 characters long description:
Adds a flexible Back to Top button to any post/page of your WordPress website.
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
No dangerous file extensions were detected6,956 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 1,438 | 2,529 | 5,612 |
PO File | 24 | 143 | 146 | 833 |
Markdown | 1 | 89 | 0 | 283 |
CSS | 3 | 21 | 1 | 92 |
JSON | 3 | 8 | 0 | 72 |
JavaScript | 3 | 9 | 15 | 51 |
XML | 1 | 4 | 4 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 20.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 3 | |
Classes | 34 | |
▷ Abstract classes | 5 | 14.71% |
▷ Concrete classes | 29 | 85.29% |
▷ Final classes | 0 | 0.00% |
Methods | 380 | |
▷ Static methods | 26 | 6.84% |
▷ Public methods | 228 | 60.00% |
▷ Protected methods | 139 | 36.58% |
▷ Private methods | 13 | 3.42% |
Functions | 32 | |
▷ Named functions | 27 | 84.38% |
▷ Anonymous functions | 5 | 15.62% |
Constants | 15 | |
▷ Global constants | 4 | 26.67% |
▷ Class constants | 11 | 73.33% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected