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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.33ms] Passed 4 tests
A check of server-side resources used by Ashch-scrollTop
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.17 ▼3.67 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.28 ▼0.13 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.85 ▼0.66 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.10 ▼12.86 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.43 ▲3.98 |
Scroll Top Button /wp-admin/options-general.php?page=scrltop | 3.23 | 34.34 |
Server storage [IO: ▲2.79MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 16 new options
New WordPress options |
---|
scrltop_position_button |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
scrltop_enable_button |
scrltop_button_color |
widget_recent-comments |
scrltop_start_scrolling |
can_compress_scripts |
scrltop_position_button_right |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ashch-scrollTop
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.27 ▼0.32 | 2.82 ▲1.10 | 46.87 ▲4.19 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▼0.01 | 90.58 ▲1.80 | 39.29 ▼4.17 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.04 ▲0.05 | 34.40 ▼3.59 | 33.37 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,536 ▼9 | 23.17 ▲0.05 | 658.01 ▲15.64 | 56.79 ▲5.64 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.25 ▲0.04 | 95.79 ▼9.17 | 42.38 ▼2.07 |
Scroll Top Button /wp-admin/options-general.php?page=scrltop | 1,328 | 2.39 | 48.07 | 41.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ashch-scroll-top/scrltop-styles.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ashch-scroll-top/scrltop.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ashch-scroll-top/scrltop-scripts.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ashch-scroll-top/scrltop-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ashch-scroll-top/scrltop-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ashch-scroll-top/scrltop-core.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Scroll Top Plugin Activation)
ashch-scroll-top/scrltop.php 85% from 13 tests
The primary PHP file in "Ashch-scrollTop" version 1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ashch-scroll-top.php" instead of "scrltop.php")
- Text Domain: The text domain must be the same as the plugin slug, although 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 plugin7,842 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 4,482 |
CSS | 2 | 1,378 | 8 | 2,898 |
PHP | 7 | 29 | 32 | 291 |
PO File | 2 | 48 | 112 | 134 |
JavaScript | 2 | 8 | 2 | 37 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 11 | |
▷ Named functions | 11 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin