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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼268.83ms] Passed 4 tests
Server-side resources used by Top Scroller
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 33.57 ▲15.18 |
Dashboard /wp-admin | 3.10 ▲0.04 | 37.29 ▼5.85 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 48.00 ▲8.24 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 91.48 ▼1,075.13 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 35.25 ▼2.59 |
Top Scroller /wp-admin/options-general.php?page=top-scroller | 3.06 | 29.36 |
Server storage [IO: ▲2.91MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
scroll_to_top_btn_color |
scroll_to_top_speed |
scroll_to_top_hvr_color |
scroll_to_top_hvr_icon_color |
scroll_to_top_icon |
scroll_to_top_icon_color |
scroll_to_top_font_size |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Top Scroller
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲244 | 16.77 ▲1.20 | 12.89 ▲5.38 | 56.73 ▲9.17 |
Dashboard /wp-admin | 2,963 ▲110 | 6.55 ▲0.63 | 135.63 ▼19.66 | 90.75 ▼15.51 |
Posts /wp-admin/edit.php | 2,742 ▲36 | 3.00 ▲0.31 | 69.32 ▲2.63 | 92.74 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,682 ▼354 | 18.32 ▲0.57 | 366.27 ▲16.01 | 101.08 ▼7.85 |
Media Library /wp-admin/upload.php | 1,805 ▲33 | 5.39 ▲0.40 | 127.51 ▼21.39 | 103.49 ▼7.44 |
Top Scroller /wp-admin/options-general.php?page=top-scroller | 2,010 | 3.30 | 88.02 | 64.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, function 'uninstallHook' not found or invalid function name
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=top-scroller
- > Notice in wp-content/plugins/top-scroller/manage/admin.php+22
Undefined index: Totop_save
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/top-scroller/js/to_top_btn.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/top-scroller/css/to_top_style.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Screenshot #1 (screenshot-1) image not found
top-scroller/scroll_to_top_btn.php 77% from 13 tests
The primary PHP file in "Top Scroller" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("top-scroller.php" instead of "scroll_to_top_btn.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("5.1" instead of "5.2")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin9,893 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,552 |
PHP | 4 | 266 | 88 | 335 |
JavaScript | 1 | 6 | 1 | 5 |
CSS | 1 | 0 | 4 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.31 |
▷ 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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 45.41KB | 17.04KB | ▼ 62.48% |