Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼146.98ms] Passed 4 tests
An overview of server-side resources used by Awesome Scroll To Top
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 35.32 ▲14.36 |
Dashboard /wp-admin | 3.07 ▲0.01 | 41.92 ▼3.46 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 37.76 ▼7.94 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 88.65 ▼572.16 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 32.08 ▼4.35 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Awesome Scroll To Top
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,791 ▲195 | 16.22 ▲0.29 | 12.88 ▲3.40 | 47.81 ▼2.12 |
Dashboard /wp-admin | 2,973 ▲39 | 5.90 ▼0.24 | 135.26 ▼11.86 | 110.22 ▲0.97 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 63.18 ▼2.93 | 91.68 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,876 ▼1,813 | 19.16 ▲4.09 | 378.60 ▼55.24 | 114.68 ▲4.39 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.03 ▲0.00 | 148.15 ▼6.46 | 112.58 ▼11.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/awesome-scroll-to-top/awesome-scroll-to-top.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
- Screenshots: Screenshot #1 (After Install Awesome Scroll To Top Plugin Show scroll to top Button) image missing
awesome-scroll-to-top/awesome-scroll-to-top.php 92% from 13 tests
This is the main PHP file of "Awesome Scroll To Top" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 227 characters long)
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
Everything looks great! No dangerous files found in this plugin64 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 0 | 1 | 36 |
JavaScript | 1 | 2 | 1 | 15 |
PHP | 2 | 2 | 11 | 13 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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