Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.30MB] [CPU: ▼32.41ms] Passed 4 tests
An overview of server-side resources used by Scroll UP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 31.11 ▼13.35 |
Dashboard /wp-admin | 3.65 ▲0.30 | 30.27 ▼35.20 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 34.80 ▼15.95 |
Add New Post /wp-admin/post-new.php | 3.65 ▼2.24 | 34.17 ▼65.13 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 35.38 ▼4.32 |
Scroll UP /wp-admin/options-general.php?page=scroll_to_up_pro | 3.65 | 28.29 |
Server storage [IO: ▲3.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 154 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
scroll_to_up_pro_installed |
can_compress_scripts |
db_upgraded |
scroll_to_up_pro |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Scroll UP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,116 ▲355 | 15.45 ▲1.09 | 7.17 ▲5.40 | 40.41 ▼2.64 |
Dashboard /wp-admin | 2,401 ▲221 | 6.65 ▲0.98 | 130.22 ▲38.45 | 42.14 ▼3.46 |
Posts /wp-admin/edit.php | 2,335 ▲235 | 3.80 ▲1.81 | 60.67 ▲16.23 | 37.13 ▼2.34 |
Add New Post /wp-admin/post-new.php | 1,750 ▲224 | 23.09 ▲0.09 | 646.64 ▼63.13 | 38.65 ▼15.60 |
Media Library /wp-admin/upload.php | 1,466 ▲66 | 4.70 ▲0.43 | 86.48 ▼22.85 | 45.50 ▼4.15 |
Scroll UP /wp-admin/options-general.php?page=scroll_to_up_pro | 2,603 | 4.32 | 123.93 | 128.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- scroll_to_up_pro
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- scroll_to_up_pro_installed
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=scroll_to_up_pro
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
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
- 1× 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/scroll-to-up/plugin-main.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=scroll_to_up_pro
- > Network (severe)
wp-content/plugins/scroll-to-up/assets/arrows/39.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
scroll-to-up/plugin-main.php 92% from 13 tests
The main PHP script in "Scroll UP" version 2.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("scroll-to-up.php" instead of "plugin-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected34,065 lines of code in 89 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 15,623 |
CSS | 8 | 211 | 58 | 4,769 |
JavaScript | 9 | 1,070 | 726 | 4,303 |
SVG | 2 | 0 | 0 | 3,311 |
PHP | 49 | 1,194 | 831 | 2,827 |
Sass | 12 | 470 | 273 | 2,527 |
PO File | 7 | 306 | 334 | 705 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 13.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 5.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 2 | 5.00% |
▷ Concrete classes | 38 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 8 | 6.61% |
▷ Public methods | 121 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 32 | 96.97% |
▷ Anonymous functions | 1 | 3.03% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
45 PNG files occupy 0.23MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/arrows/16.png | 2.13KB | 2.13KB | 0.00% |
assets/arrows/9.png | 2.61KB | 2.48KB | ▼ 5.12% |
assets/arrows/19.png | 4.68KB | 2.48KB | ▼ 46.87% |
assets/arrows/31.png | 6.49KB | 3.13KB | ▼ 51.81% |
assets/arrows/33.png | 4.62KB | 2.57KB | ▼ 44.39% |