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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.26ms] Passed 4 tests
A check of server-side resources used by Scroll Bar With Back To Top
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.44 ▼4.57 |
Dashboard /wp-admin | 3.46 ▲0.16 | 52.07 ▼6.82 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 52.56 ▼0.23 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 92.98 ▼1.43 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.35 ▲1.58 |
Scroll Settings /wp-admin/options-general.php?page=scroll_settings | 3.36 | 37.32 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
scroll_top |
widget_recent-comments |
scroll_bar |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Scroll Bar With Back To Top
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,998 ▲263 | 15.00 ▲0.63 | 3.72 ▲1.84 | 45.70 ▲0.59 |
Dashboard /wp-admin | 2,367 ▲179 | 6.59 ▲1.69 | 133.72 ▲21.03 | 41.40 ▼0.32 |
Posts /wp-admin/edit.php | 2,267 ▲175 | 3.51 ▲1.50 | 56.48 ▲20.30 | 36.47 ▲3.11 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 23.58 ▲6.10 | 583.64 ▼64.11 | 34.91 ▼25.92 |
Media Library /wp-admin/upload.php | 1,409 ▲27 | 4.38 ▲0.18 | 80.36 ▼19.12 | 43.19 ▼2.09 |
Scroll Settings /wp-admin/options-general.php?page=scroll_settings | 1,574 | 3.72 | 72.37 | 27.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- scroll_top
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- scroll_bar
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
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
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
The following issues need your attention
- 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-bar-with-back-to-top/scroll-plugin.php:29
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Scroll Bar Setting Option), #2 (Scroll Back To Top Setting Option)
- Tags: There are too many tags (24 tag instead of maximum 10)
scroll-bar-with-back-to-top/scroll-plugin.php 92% from 13 tests
The entry point to "Scroll Bar With Back To Top" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("scroll-bar-with-back-to-top.php" instead of "scroll-plugin.php")
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
Good job! No executable or dangerous file extensions detected734 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 110 | 158 | 562 |
JavaScript | 1 | 0 | 0 | 114 |
CSS | 1 | 9 | 20 | 37 |
SVG | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
There were not PNG files found in your plugin