Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.18MB] [CPU: ▼42.58ms] Passed 4 tests
Analyzing server-side resources used by Scroll Top - WordPress Scroll to Top plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▼0.67 | 14.41 ▼25.63 |
Dashboard /wp-admin | 2.84 ▼0.50 | 15.09 ▼47.23 |
Posts /wp-admin/edit.php | 2.85 ▼0.51 | 15.72 ▼32.78 |
Add New Post /wp-admin/post-new.php | 2.85 ▼3.04 | 17.17 ▼64.69 |
Media Library /wp-admin/upload.php | 2.85 ▼0.38 | 13.75 ▼19.70 |
More Ideas? /wp-admin/edit.php?post_type=ystpscroll&page=ystp-ideas-page | 3.13 | 25.26 |
Add New /wp-admin/post-new.php?post_type=ystpscroll | 3.30 | 34.98 |
Support /wp-admin/edit.php?post_type=ystpscroll&page=ystp-support-page | 3.13 | 24.15 |
All Items /wp-admin/edit.php?post_type=ystpscroll | 3.26 | 29.63 |
More Plugins /wp-admin/edit.php?post_type=ystpscroll&page=ystp-more-plugins-page | 3.25 | 31.34 |
Scroll Types /wp-admin/edit.php?post_type=ystpscroll&page=ystpscroll | 3.25 | 26.64 |
Server storage [IO: ▲1.15MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 157 new files
Database: no new tables, 11 new options
New WordPress options |
---|
ystp_redirect |
theysaidso_admin_options |
db_upgraded |
YstpShowNextTime |
widget_recent-posts |
can_compress_scripts |
YstpInstallDate |
widget_recent-comments |
YstpInserted |
YstpUsageDays |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Scroll Top - WordPress Scroll to Top plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,112 ▲351 | 14.97 ▲0.75 | 10.00 ▲8.31 | 44.95 ▼0.29 |
Dashboard /wp-admin | 2,403 ▲223 | 6.21 ▲0.54 | 117.94 ▲17.29 | 42.99 ▲2.50 |
Posts /wp-admin/edit.php | 2,327 ▲227 | 3.53 ▲1.51 | 54.14 ▲16.40 | 35.09 ▼5.23 |
Add New Post /wp-admin/post-new.php | 1,565 ▲37 | 23.43 ▼0.11 | 572.19 ▼24.58 | 33.78 ▼13.50 |
Media Library /wp-admin/upload.php | 1,469 ▲69 | 4.11 ▼0.05 | 82.41 ▼11.51 | 45.09 ▲3.38 |
More Ideas? /wp-admin/edit.php?post_type=ystpscroll&page=ystp-ideas-page | 1,021 | 3.02 | 39.36 | 29.78 |
Add New /wp-admin/post-new.php?post_type=ystpscroll | 4,069 | 6.70 | 190.15 | 92.89 |
Support /wp-admin/edit.php?post_type=ystpscroll&page=ystp-support-page | 1,022 | 3.01 | 37.29 | 21.81 |
All Items /wp-admin/edit.php?post_type=ystpscroll | 1,878 | 5.79 | 98.30 | 29.83 |
More Plugins /wp-admin/edit.php?post_type=ystpscroll&page=ystp-more-plugins-page | 1,196 | 3.12 | 41.09 | 25.18 |
Scroll Types /wp-admin/edit.php?post_type=ystpscroll&page=ystpscroll | 1,089 | 3.15 | 39.26 | 26.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/scroll-to-top-builder/classes/RegisterPostType.php+48
Undefined index: post_type
- The uninstall procedure has failed, leaving 10 options in the database
- can_compress_scripts
- db_upgraded
- YstpInserted
- widget_recent-comments
- YstpUsageDays
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- YstpInstallDate
- YstpShowNextTime
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ystpscroll&page=ystpscroll
- > Notice in wp-content/plugins/scroll-to-top-builder/assets/js/Js.php+26
Undefined index: post
- > GET request to /wp-admin/post-new.php?post_type=ystpscroll
- > Notice in wp-content/plugins/scroll-to-top-builder/assets/views/hiddenOptions.php+5
Undefined index: ystp_type
- > GET request to /wp-admin/edit.php?post_type=ystpscroll
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/scroll-to-top-builder/classes/RegisterPostType.php+48
Undefined index: post_type
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/scroll-to-top-builder/assets/views/admin/support.php
- 32× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/scroll-to-top-builder/config/config.php:12
- > PHP Warning
Use of undefined constant YSTP_FILE_NAME - assumed 'YSTP_FILE_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/scroll-to-top-builder/config/config.php on line 11
- > PHP Warning
Use of undefined constant YSTP_SUPPORT_URL - assumed 'YSTP_SUPPORT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/scroll-to-top-builder/assets/views/admin/support.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function ystp\\add_action() in wp-content/plugins/scroll-to-top-builder/assets/css/Css.php:12
- > PHP Fatal error
Uncaught Error: Call to a member function getOptionValue() on null in wp-content/plugins/scroll-to-top-builder/assets/views/hiddenOptions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function ystp\\__() in wp-content/plugins/scroll-to-top-builder/helpers/ConditionsConfig.php:35
- > PHP Warning
Use of undefined constant YSTP_PKG_VERSION - assumed 'YSTP_PKG_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/scroll-to-top-builder/assets/views/admin/info.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/scroll-to-top-builder/config/optionsConfig.php:8
- > PHP Notice
Undefined variable: typeObj in wp-content/plugins/scroll-to-top-builder/assets/views/hiddenOptions.php on line 2
- > PHP Warning
Use of undefined constant YSTP_FILE_NAME - assumed 'YSTP_FILE_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/scroll-to-top-builder/config/config.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2 in scroll-to-top-builder/assets to your readme.txt
scroll-to-top-builder/scroll-to-top-builder.php Passed 13 tests
Analyzing the main PHP file in "Scroll Top - WordPress Scroll to Top plugin" version 1.3.3
34 characters long description:
Scroll to top customizable plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected18,259 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 91 | 20 | 10,054 |
JavaScript | 5 | 1,229 | 290 | 4,853 |
PHP | 42 | 624 | 201 | 3,352 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 11.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 243 | |
▷ Static methods | 49 | 20.16% |
▷ Public methods | 206 | 84.77% |
▷ Protected methods | 1 | 0.41% |
▷ Private methods | 36 | 14.81% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
78 PNG files occupy 0.38MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/25.png | 8.57KB | 3.31KB | ▼ 61.42% |
(invalid) assets/img/8.png | 2.09KB | 0.00KB | ▼ 100.00% |
assets/img/20.png | 0.90KB | 0.82KB | ▼ 9.20% |
assets/img/40.png | 3.86KB | 2.03KB | ▼ 47.40% |
assets/img/2.png | 4.86KB | 2.92KB | ▼ 39.86% |