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.89MB] [CPU: ▼173.02ms] Passed 4 tests
Analyzing server-side resources used by sr-scroll-to-top-wp
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.06 | 27.04 ▼14.88 |
Dashboard /wp-admin | 2.76 ▼0.30 | 24.08 ▼25.57 |
Posts /wp-admin/edit.php | 2.76 ▼0.35 | 24.46 ▼21.89 |
Add New Post /wp-admin/post-new.php | 2.76 ▼2.67 | 22.63 ▼629.74 |
Media Library /wp-admin/upload.php | 2.76 ▼0.25 | 24.98 ▼14.80 |
scroll to top menu /wp-admin/options-general.php?page=scroll-option-page | 2.77 | 23.03 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by sr-scroll-to-top-wp
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,806 ▲210 | 16.24 ▲0.72 | 14.78 ▲5.24 | 55.83 ▲4.04 |
Dashboard /wp-admin | 2,964 ▲33 | 5.88 ▼0.11 | 159.34 ▲9.06 | 115.24 ▲1.07 |
Posts /wp-admin/edit.php | 2,744 ▲8 | 2.69 ▼0.01 | 70.21 ▲3.91 | 92.14 ▼5.67 |
Add New Post /wp-admin/post-new.php | 1,675 ▲69 | 19.20 ▲0.35 | 397.63 ▼35.38 | 110.66 ▼15.85 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▲0.00 | 157.91 ▲8.08 | 122.31 ▼9.97 |
scroll to top menu /wp-admin/options-general.php?page=scroll-option-page | 1,188 | 2.09 | 59.15 | 81.40 |
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
Please fix the following items
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=scroll-option-page
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
sr-scroll-to-top-wp/sr-scroll to top-wp.php 85% from 13 tests
The main PHP file in "sr-scroll-to-top-wp" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 494 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sr-scroll-to-top-wp.php" instead of "sr-scroll to top-wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,040 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 643 |
JavaScript | 2 | 28 | 88 | 246 |
PHP | 1 | 116 | 30 | 140 |
CSS | 2 | 1 | 3 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
3 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 82.35KB | 27.82KB | ▼ 66.22% |
screenshot-3.png | 28.34KB | 9.01KB | ▼ 68.21% |
screenshot-2.png | 62.42KB | 19.03KB | ▼ 69.51% |