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.06MB] [CPU: ▼144.17ms] Passed 4 tests
Analyzing server-side resources used by Scroll Back To Top Button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.15 | 30.79 ▲7.05 |
Dashboard /wp-admin | 3.11 ▲0.06 | 48.44 ▼10.91 |
Posts /wp-admin/edit.php | 3.22 ▲0.12 | 47.77 ▲1.22 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 87.68 ▼566.17 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 30.71 ▼0.82 |
Scroll Back To Top /wp-admin/options-general.php?page=scroll_back_to_top_button | 3.05 | 30.44 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
_scroll_page_to_top_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Scroll Back To Top Button
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,050 ▲445 | 18.01 ▲2.40 | 15.90 ▲5.67 | 46.42 ▼30.34 |
Dashboard /wp-admin | 3,215 ▲284 | 8.33 ▲2.11 | 174.74 ▼1.27 | 107.56 ▼18.62 |
Posts /wp-admin/edit.php | 2,988 ▲249 | 4.40 ▲1.68 | 86.92 ▲22.62 | 85.85 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,518 ▼86 | 18.61 ▲0.11 | 379.07 ▼56.73 | 105.77 ▼7.87 |
Media Library /wp-admin/upload.php | 1,840 ▲33 | 4.89 ▼0.13 | 124.62 ▼29.77 | 118.38 ▲4.34 |
Scroll Back To Top /wp-admin/options-general.php?page=scroll_back_to_top_button | 1,636 | 4.01 | 77.23 | 82.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- _scroll_page_to_top_settings
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=scroll_back_to_top_button
- > Notice in wp-content/plugins/scroll-back-to-top-button/inc/settings.temp.php+4
Undefined index: frm-action
- > GET request to /wp-admin/options-general.php?page=scroll_back_to_top_button
- > Notice in wp-content/plugins/scroll-back-to-top-button/inc/settings.temp.php+11
Undefined variable: response
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-back-to-top-button/scroll-back-to-top-button.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-back-to-top-button/inc/settings.class.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/scroll-back-to-top-button/inc/settings.temp.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=scroll_back_to_top_button
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1 1:31592 "jQuery.Deferred exception: $ is not a function" "TypeError: $ is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=scroll_back_to_top_button:266:13)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=scroll_back_to_top_button
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1 1:31702 Uncaught TypeError: $ is not a function
Optimizations
Plugin configuration 96% from 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: scroll top wordpress plugin, scroll back to top button, go to top, best scroll plugin wordpress, wordpress scroll to top button...
scroll-back-to-top-button/scroll-back-to-top-button.php 92% from 13 tests
"Scroll Back To Top Button" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 149 characters long)
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
There were no executable files found in this plugin309 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 20 | 28 | 308 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) img/top-icn.png | 0.72KB | 0.00KB | ▼ 100.00% |