Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.72MB] [CPU: ▼35.64ms] Passed 4 tests
A check of server-side resources used by AMS Page Scroll Back To Top
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 41.16 ▼1.29 |
Dashboard /wp-admin | 3.23 ▼0.08 | 23.04 ▼24.87 |
Posts /wp-admin/edit.php | 3.23 ▼0.13 | 24.79 ▼29.18 |
Add New Post /wp-admin/post-new.php | 3.23 ▼2.66 | 26.52 ▼79.43 |
Media Library /wp-admin/upload.php | 3.23 ▼0.00 | 23.70 ▼9.08 |
AMS Page Scroll Back /wp-admin/options-general.php?page=msv-amspsbtt-page-scroll-back-to-top-settings | 3.23 | 32.25 |
Server storage [IO: ▲3.60MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 105 new files
Database: no new tables, 10 new options
New WordPress options |
---|
msv_amspsbtt_page_scroll_back_to_top_layout |
db_upgraded |
can_compress_scripts |
msv_amspsbtt_page_scroll_back_to_top_advanced |
msv_amspsbtt_page_scroll_back_to_top_icon |
widget_recent-comments |
theysaidso_admin_options |
msv_amspsbtt_page_scroll_back_to_top_style |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AMS Page Scroll Back To Top
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,003 ▲268 | 15.01 ▲0.42 | 2.23 ▲0.04 | 40.37 ▼2.41 |
Dashboard /wp-admin | 2,370 ▲188 | 6.63 ▲0.79 | 132.93 ▲29.53 | 50.46 ▲8.33 |
Posts /wp-admin/edit.php | 2,277 ▲188 | 3.53 ▲1.48 | 55.00 ▲14.06 | 38.22 ▲3.47 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 18.42 ▼5.08 | 583.01 ▼25.80 | 42.14 ▼14.75 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.32 ▲0.20 | 79.26 ▼19.26 | 52.46 ▲6.43 |
AMS Page Scroll Back /wp-admin/options-general.php?page=msv-amspsbtt-page-scroll-back-to-top-settings | 3,642 | 4.61 | 125.75 | 201.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=msv-amspsbtt-page-scroll-back-to-top-settings
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% 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
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ams-page-scroll-back-to-top/help/overview.php
- > /wp-content/plugins/ams-page-scroll-back-to-top/help/choose-img-preset.php
- > /wp-content/plugins/ams-page-scroll-back-to-top/help/choose-icon.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/ams-page-scroll-back-to-top/includes/class.ams-page-scroll-back-help.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/ams-page-scroll-back-to-top/includes/ams-page-scroll-back-inline-style.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
7 plugin tags: scroller, scroll back to top, scroll top, link to top, scroll up...
ams-page-scroll-back-to-top/ams-page-scroll-back-to-top.php 92% from 13 tests
The main file in "AMS Page Scroll Back To Top" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
There were no executable files found in this plugin2,806 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 271 | 175 | 1,393 |
JavaScript | 5 | 143 | 59 | 706 |
SVG | 1 | 0 | 0 | 685 |
CSS | 3 | 0 | 4 | 22 |
PHP code Passed 2 tests
A brief analysis 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.34 |
Average class complexity | 27.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 1 | 1.89% |
▷ Public methods | 52 | 98.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.89% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
80 PNG files occupy 2.59MB with 0.96MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/arrow32.png | 16.20KB | 9.61KB | ▼ 40.68% |
assets/icons/arrow3.png | 10.71KB | 6.12KB | ▼ 42.83% |
assets/icons/arrow68.png | 0.37KB | 0.26KB | ▼ 28.99% |
assets/icons/arrow52.png | 8.86KB | 5.19KB | ▼ 41.41% |
assets/icons/arrow6.png | 3.44KB | 2.32KB | ▼ 32.55% |