Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼17.99ms] Passed 4 tests
Analyzing server-side resources used by Wow scroll up
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.03 | 28.27 ▼12.61 |
Dashboard /wp-admin | 3.24 ▼0.07 | 33.27 ▼22.08 |
Posts /wp-admin/edit.php | 3.31 ▼0.04 | 39.92 ▼13.05 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.39 | 70.47 ▼24.23 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 27.30 ▼12.11 |
Wow scroll up /wp-admin/options-general.php?page=wow_scroll_up_settings | 3.22 | 31.77 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
wsu_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Wow scroll up
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,182 ▲421 | 15.32 ▲1.32 | 12.68 ▲10.98 | 37.00 ▼10.43 |
Dashboard /wp-admin | 2,364 ▲184 | 6.55 ▲0.95 | 128.09 ▲34.51 | 41.51 ▼10.59 |
Posts /wp-admin/edit.php | 2,295 ▲192 | 3.76 ▲1.72 | 58.50 ▲21.88 | 35.14 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 22.95 ▼0.01 | 653.88 ▼33.90 | 36.96 ▼21.31 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.61 ▲0.46 | 89.42 ▼9.37 | 48.71 ▲4.25 |
Wow scroll up /wp-admin/options-general.php?page=wow_scroll_up_settings | 1,707 | 4.13 | 90.63 | 65.53 |
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: 7 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- wsu_options
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wow_scroll_up_settings
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- > GET request to /wp-admin/options-general.php?page=wow_scroll_up_settings
- > Notice in wp-content/plugins/wow-scroll-up/wow-scroll-up.php+136
Undefined index: wsu_button_image
SRP 50% from 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
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wow-scroll-up/wow-scroll-up.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wow-scroll-up/wow-scroll-button.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: scroll, button, animate, scrollup, up
wow-scroll-up/wow-scroll-up.php Passed 13 tests
The main PHP script in "Wow scroll up" version 1.2 is automatically included on every request by WordPress
68 characters long description:
This plugin allows you to easily scroll back to the top of the page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,673 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 11 | 5 | 11 | 984 |
PHP | 2 | 45 | 25 | 272 |
CSS | 3 | 40 | 0 | 209 |
JavaScript | 4 | 61 | 45 | 208 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin