Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.91ms] Passed 4 tests
An overview of server-side resources used by Smooth Page Scroll Up/Down Buttons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 41.62 ▲2.66 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.02 ▼3.19 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.47 ▲2.84 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 79.55 ▼9.59 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 36.18 ▼1.53 |
Smooth Scroll Page Up/Down Buttons /wp-admin/options-general.php?page=pagescrollupdownmenu | 3.24 | 29.57 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
page_scroll_buttons_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Smooth Page Scroll Up/Down Buttons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲212 | 13.73 ▼1.05 | 16.75 ▲14.93 | 38.15 ▼6.36 |
Dashboard /wp-admin | 2,210 ▲25 | 4.84 ▼0.98 | 111.16 ▼15.23 | 38.63 ▼4.43 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.06 ▲0.03 | 37.47 ▲0.90 | 34.45 ▼0.87 |
Add New Post /wp-admin/post-new.php | 1,517 ▼23 | 17.69 ▼5.61 | 696.82 ▲29.88 | 56.30 ▼3.37 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.16 ▼0.09 | 95.76 ▼14.86 | 46.57 ▼1.27 |
Smooth Scroll Page Up/Down Buttons /wp-admin/options-general.php?page=pagescrollupdownmenu | 945 | 1.69 | 24.24 | 28.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/smooth-page-scroll-updown-buttons/smooth-page-scroll-updown-buttons.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: page, top, buttons, smooth scroll
smooth-page-scroll-updown-buttons/smooth-page-scroll-updown-buttons.php Passed 13 tests
The entry point to "Smooth Page Scroll Up/Down Buttons" version 1.4.1 is a PHP file that has certain tags in its header comment area
103 characters long description:
Adds buttons to your page that will enable the user to easily (and smoothly) scroll one screen up/down.
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
There were no executable files found in this plugin547 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 88 | 20 | 256 |
JavaScript | 4 | 45 | 21 | 148 |
CSS | 2 | 14 | 0 | 72 |
Markdown | 1 | 35 | 0 | 71 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/spsb-arrow-up.png | 1.41KB | 0.50KB | ▼ 64.41% |
assets/img/spsb-arrow-down.png | 1.42KB | 0.52KB | ▼ 63.43% |
assets/img/spsb-arrow-top.png | 1.42KB | 0.51KB | ▼ 63.97% |
assets/img/spsb-sprite.png | 8.07KB | 2.57KB | ▼ 68.20% |