Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼147.09ms] Passed 4 tests
Analyzing server-side resources used by Ac-Scroll-Up
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 36.30 ▲11.03 |
Dashboard /wp-admin | 3.08 ▲0.02 | 40.35 ▼1.04 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 34.54 ▲0.30 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 73.57 ▼584.58 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 23.99 ▼3.05 |
Ac-Scroll-Up /wp-admin/options-general.php?page=ac-scroll-up/scroll-settings.php | 3.00 | 21.04 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Ac-Scroll-Up
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,820 ▲219 | 16.59 ▲1.03 | 10.11 ▲1.38 | 70.58 ▼9.78 |
Dashboard /wp-admin | 2,963 ▲67 | 6.69 ▲0.60 | 118.86 ▼13.09 | 167.98 ▼12.26 |
Posts /wp-admin/edit.php | 2,776 ▲36 | 3.55 ▲0.33 | 65.56 ▲1.93 | 156.24 ▲17.18 |
Add New Post /wp-admin/post-new.php | 1,907 ▼1,828 | 15.82 ▼2.47 | 419.04 ▼26.95 | 159.97 ▼2.86 |
Media Library /wp-admin/upload.php | 1,785 ▲36 | 5.88 ▲0.39 | 125.88 ▼14.55 | 180.57 ▼5.79 |
Ac-Scroll-Up /wp-admin/options-general.php?page=ac-scroll-up/scroll-settings.php | 1,459 | 3.43 | 75.57 | 109.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ac-scroll-up/scroll-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ac-scroll-up/scroll-settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% 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 your attention:
- Screenshots: Please add images for these screenshots: #1 (Scroll up arrow on bottom right.), #2 (Go to setting page.), #3 (Set up your icon color and icon background.)
- Donate link: Please fix this invalid url: ""
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== ac-scroll-up ===
)
ac-scroll-up/main.php 92% from 13 tests
"Ac-Scroll-Up" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ac-scroll-up.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected627 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 520 |
PHP | 2 | 35 | 20 | 84 |
CSS | 2 | 0 | 3 | 17 |
JavaScript | 2 | 2 | 7 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
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 | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screenshot-1.png | 11.13KB | 6.19KB | ▼ 44.36% |
Screenshot-2.png | 4.39KB | 3.04KB | ▼ 30.79% |
Screenshot-3.png | 7.00KB | 3.75KB | ▼ 46.39% |