Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.03ms] Passed 4 tests
This is a short check of server-side resources used by SN Scroll To Up
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.89 ▼0.79 |
Dashboard /wp-admin | 3.35 ▲0.05 | 51.75 ▼0.84 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.11 ▼0.17 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 88.05 ▼6.31 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 42.83 ▲4.07 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for SN Scroll To Up
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,998 ▲237 | 13.63 ▼0.74 | 13.16 ▲11.22 | 43.66 ▼3.46 |
Dashboard /wp-admin | 2,229 ▲52 | 5.72 ▲0.14 | 88.85 ▼12.44 | 88.38 ▲45.20 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.32 ▲0.33 | 36.20 ▼3.02 | 39.18 ▲3.02 |
Add New Post /wp-admin/post-new.php | 1,712 ▲164 | 22.72 ▼0.35 | 759.51 ▲58.06 | 35.83 ▼18.31 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.41 ▲0.14 | 104.37 ▼16.50 | 73.67 ▲24.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sn-scroll-to-up/plugin-main.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
- Screenshots: Add images for these screenshots: #1 (Scroll to top arrow on bottom right), #2 (Admin panel screenshot)
sn-scroll-to-up/plugin-main.php 92% from 13 tests
"SN Scroll To Up" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sn-scroll-to-up.php" instead of "plugin-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,155 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 3 | 10 | 1,334 |
SVG | 1 | 0 | 0 | 414 |
PHP | 1 | 82 | 26 | 269 |
JavaScript | 3 | 5 | 77 | 138 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 0.44KB | 0.18KB | ▼ 59.73% |
screenshot-1.png | 10.13KB | 5.72KB | ▼ 43.54% |
screenshot-2.png | 56.74KB | 35.61KB | ▼ 37.24% |
img/top.png | 0.68KB | 0.69KB | 0.00% |