Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▲0.14ms] Passed 4 tests
A check of server-side resources used by Binary Carpenter Ultimate Scroll To Top Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.61 ▲2.39 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.42 ▼2.64 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 58.01 ▲7.13 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.10 ▲0.69 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.57 ▲0.13 |
Server storage [IO: ▲1.84MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Binary Carpenter Ultimate Scroll To Top Button: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,230 ▲484 | 15.64 ▲1.27 | 5.49 ▲3.70 | 29.48 ▼10.92 |
Dashboard /wp-admin | 2,555 ▲367 | 6.81 ▲1.92 | 143.75 ▲29.86 | 44.92 ▲0.50 |
Posts /wp-admin/edit.php | 2,428 ▲342 | 3.82 ▲1.82 | 62.23 ▲24.61 | 37.50 ▲3.75 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.70 ▲0.35 | 643.65 ▼51.47 | 37.79 ▼19.44 |
Media Library /wp-admin/upload.php | 1,632 ▲241 | 4.57 ▲0.35 | 83.70 ▼27.22 | 45.02 ▼2.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The following issues need your attention
- 3× 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/ultimate-scroll-to-top-button/functions.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-scroll-to-top-button/functions.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-scroll-to-top-button/ui/main-ui.php:8
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: scroll to top
ultimate-scroll-to-top-button/index.php 92% from 13 tests
This is the main PHP file of "Binary Carpenter Ultimate Scroll To Top Button" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ultimate-scroll-to-top-button.php" instead of "index.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
Good job! No executable or dangerous file extensions detected9,660 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 1,719 | 346 | 4,547 |
SVG | 2 | 0 | 0 | 2,688 |
JavaScript | 2 | 287 | 621 | 2,243 |
PHP | 5 | 52 | 24 | 118 |
Sass | 2 | 12 | 0 | 64 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bundle/css/images/next_button.png | 16.98KB | 1.68KB | ▼ 90.09% |
bundle/images/presets/preset-placeholder.png | 17.10KB | 1.62KB | ▼ 90.52% |
bundle/css/images/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
bundle/css/images/prev_button.png | 17.01KB | 1.70KB | ▼ 90.00% |