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.02MB] [CPU: ▼5.04ms] Passed 4 tests
Analyzing server-side resources used by Ac-Scroll-Up
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.46 ▲2.63 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.59 ▼5.02 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.32 ▼3.14 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.59 ▼12.16 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.95 ▲0.16 |
Ac-Scroll-Up /wp-admin/options-general.php?page=ac-scroll-up/scroll-settings.php | 3.22 | 30.73 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ac-Scroll-Up
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲186 | 13.83 ▼0.81 | 7.93 ▲6.02 | 42.20 ▼3.24 |
Dashboard /wp-admin | 2,229 ▲41 | 5.00 ▲0.11 | 98.20 ▼11.56 | 38.85 ▼7.83 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.29 ▲0.28 | 41.77 ▲4.04 | 34.13 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,531 ▼13 | 17.79 ▼0.57 | 678.17 ▲48.77 | 36.38 ▼20.05 |
Media Library /wp-admin/upload.php | 1,411 ▲32 | 4.41 ▲0.13 | 96.62 ▼0.89 | 42.15 ▼1.44 |
Ac-Scroll-Up /wp-admin/options-general.php?page=ac-scroll-up/scroll-settings.php | 1,042 | 2.40 | 43.97 | 24.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 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 just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: ""
- Screenshots: These screenshots do not have images: #1 (Scroll up arrow on bottom right.), #2 (Go to setting page.), #3 (Set up your icon color and icon background.)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== ac-scroll-up ===
)
ac-scroll-up/main.php 92% from 13 tests
The main PHP script in "Ac-Scroll-Up" version 1.0 is automatically included on every request by WordPress
Please take the time to 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
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
This plugin has no cyclomatic complexity issues
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
All PNG images should be compressed to minimize bandwidth usage for end users
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% |