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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.80ms] Passed 4 tests
An overview of server-side resources used by R Scroll Up
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.03 | 30.36 ▼6.31 |
Dashboard /wp-admin | 3.36 ▲0.01 | 42.73 ▼14.87 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.05 ▲0.11 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 80.11 ▼14.12 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.58 ▲2.65 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
R Scroll Up: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲180 | 13.52 ▼1.06 | 11.41 ▲9.69 | 42.11 ▲2.70 |
Dashboard /wp-admin | 2,214 ▲34 | 5.65 ▲0.05 | 88.92 ▲0.67 | 36.01 ▼9.70 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▲0.04 | 34.77 ▼2.77 | 32.54 ▼3.64 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.55 ▼0.11 | 673.31 ▼8.96 | 53.24 ▼2.15 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.21 ▼0.08 | 98.35 ▼2.46 | 43.62 ▼1.60 |
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
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 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/r-scroll-up/inc/settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/r-scroll-up/r-scroll-up.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (17 tag instead of maximum 10)
- Contributors: The plugin contributors field is not present
r-scroll-up/r-scroll-up.php Passed 13 tests
The principal PHP file in "R Scroll Up" v. 1.0 is loaded by WordPress automatically on each request
73 characters long description:
Scroll Up plugin is Simple wordpress plugin for scroll to top one click.
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
Everything looks great! No dangerous files found in this plugin375 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 76 | 19 | 173 |
JavaScript | 2 | 24 | 17 | 133 |
CSS | 4 | 4 | 4 | 69 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
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 | 21 | |
▷ Named functions | 21 | 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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/4.png | 1.60KB | 0.66KB | ▼ 58.88% |
img/5.png | 0.68KB | 0.69KB | 0.00% |
img/scroll_up.png | 2.21KB | 1.27KB | ▼ 42.41% |
img/2.png | 1.52KB | 0.69KB | ▼ 54.65% |
img/top.png | 0.68KB | 0.69KB | 0.00% |