Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.23MB] [CPU: ▼145.05ms] Passed 4 tests
Server-side resources used by Smooth-scroll-to-top
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.77 ▼0.95 | 6.45 ▼15.93 |
Dashboard /wp-admin | 3.07 ▲0.01 | 51.61 ▲1.31 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 40.94 ▼0.03 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 91.68 ▼560.88 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 36.41 ▼3.36 |
Server storage [IO: ▲0.01MB] [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: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Smooth-scroll-to-top
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲201 | 16.57 ▲0.99 | 21.48 ▲8.13 | 57.57 ▲3.71 |
Dashboard /wp-admin | 2,970 ▲33 | 5.87 ▼0.07 | 148.39 ▼5.80 | 107.87 ▼9.29 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.73 ▼0.00 | 64.97 ▼12.19 | 93.08 ▲3.27 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.77 ▲0.38 | 416.90 ▼5.43 | 110.46 ▼2.48 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.03 ▼0.00 | 156.47 ▼8.94 | 120.07 ▲4.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/smooth-scroll-to-top/scroll-to-top.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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 your attention:
- Screenshots: These screenshots do not have images: #1 (Scroll icon & Browser Scroll Style), #2 (Browser Scroll on Chrome)
smooth-scroll-to-top/scroll-to-top.php 92% from 13 tests
This is the main PHP file of "Smooth-scroll-to-top" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("smooth-scroll-to-top.php" instead of "scroll-to-top.php")
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
Good job! No executable or dangerous file extensions detected80 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 9 | 45 |
JavaScript | 1 | 6 | 6 | 18 |
CSS | 1 | 7 | 5 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 40.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 60.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 0.51KB | 0.22KB | ▼ 56.35% |
images/scroll-img.png | 0.51KB | 0.62KB | 0.00% |
screenshot-1.png | 9.65KB | 4.27KB | ▼ 55.70% |