Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▲1.00ms] Passed 4 tests
This is a short check of server-side resources used by scrollToTop
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 45.09 ▲4.52 |
Dashboard /wp-admin | 3.64 ▲0.33 | 47.88 ▲2.78 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 48.09 ▲0.24 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 84.02 ▼1.97 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 36.47 ▲2.94 |
scrollToTop /wp-admin/options-general.php?page=scrolltotop_settings_page | 3.54 | 34.58 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for scrollToTop
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲154 | 13.75 ▼0.66 | 7.49 ▲5.71 | 56.35 ▲10.26 |
Dashboard /wp-admin | 2,207 ▲22 | 5.88 ▲0.09 | 92.56 ▼6.61 | 36.09 ▼6.59 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.03 | 34.25 ▼2.01 | 33.07 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.62 ▼5.66 | 641.34 ▼51.82 | 52.90 ▼4.40 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.24 ▼0.06 | 93.89 ▼17.69 | 42.52 ▼3.48 |
scrollToTop /wp-admin/options-general.php?page=scrolltotop_settings_page | 3,046 | 8.70 | 150.06 | 56.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scrolltotop/includes/scrolltotop-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/scrolltotop/scrolltotop.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/scrolltotop/includes/scrolltotop-admin-sidebar.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=scrolltotop_settings_page
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=scrolltotop_settings_page
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=scrolltotop_settings_page
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultString is deprecated since version 5.5.0! Use wp.i18n instead.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=scrolltotop_settings_page
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: scroll up, to top, scroll, back to top, button...
scrolltotop/scrolltotop.php 92% from 13 tests
Analyzing the main PHP file in "scrollToTop" version 1.16
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 209 characters long)
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
Success! There were no dangerous files found in this plugin3,025 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 285 | 64 | 1,612 |
JavaScript | 7 | 206 | 266 | 1,006 |
CSS | 4 | 75 | 10 | 381 |
SVG | 1 | 14 | 0 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 65 | |
▷ Named functions | 65 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin