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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.64ms] Passed 4 tests
Server-side resources used by MMK Scroll To Top
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.23 ▼5.25 |
Dashboard /wp-admin | 3.32 ▼0.02 | 46.37 ▼9.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.68 ▼1.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.20 ▼22.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.39 ▲0.27 |
MMK Scroll To Top /wp-admin/options-general.php?page=mmk-totop-settings-page | 3.21 | 30.45 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by MMK Scroll To Top
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲147 | 13.98 ▼0.76 | 7.68 ▲5.74 | 54.01 ▲13.06 |
Dashboard /wp-admin | 2,204 ▲16 | 5.82 ▲0.76 | 100.40 ▼7.88 | 38.12 ▼1.79 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.04 ▲0.06 | 34.43 ▼8.46 | 33.04 ▼3.54 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.12 ▲5.62 | 659.08 ▲27.50 | 52.58 ▼15.76 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.22 ▲0.02 | 97.97 ▲0.84 | 44.38 ▲2.11 |
MMK Scroll To Top /wp-admin/options-general.php?page=mmk-totop-settings-page | 1,171 | 2.25 | 45.63 | 32.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mmk-scroll-to-top/inc/settings.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mmk-scroll-to-top/inc/functions.php:56
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: scroll, scroll to top, button, to top, back to top
mmk-scroll-to-top/mmk-scroll-to-top.php Passed 13 tests
The main PHP script in "MMK Scroll To Top" version 1.0.1 is automatically included on every request by WordPress
128 characters long description:
A super simple, highly customizable and light-weight plugin that adds a smooth Scroll back to top button to your wordpress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected341 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 77 | 98 | 321 |
CSS | 1 | 2 | 9 | 13 |
JavaScript | 2 | 3 | 15 | 7 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
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 | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin