Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼12.95ms] Passed 4 tests
Analyzing server-side resources used by Scroll Back To Top Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.69 ▼2.77 |
Dashboard /wp-admin | 3.34 ▼0.00 | 50.04 ▼18.58 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.32 ▼5.80 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 88.35 ▼24.66 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.69 ▲2.64 |
Scroll to Top /wp-admin/options-general.php?page=scrollup-master | 3.25 | 35.76 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/scrollup-master/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Scroll Back To Top Button
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 13.82 ▼0.58 | 1.75 ▲0.08 | 39.88 ▼2.08 |
Dashboard /wp-admin | 2,245 ▲42 | 5.08 ▼0.82 | 113.61 ▲6.07 | 43.65 ▲2.49 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.27 ▲0.21 | 42.54 ▲1.69 | 37.70 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,541 ▲12 | 17.84 ▲0.20 | 621.95 ▼17.16 | 32.86 ▼25.35 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.41 ▲0.04 | 96.98 ▼9.95 | 42.24 ▼0.27 |
Scroll to Top /wp-admin/options-general.php?page=scrollup-master | 1,503 | 2.60 | 62.07 | 28.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scrollup-master/scrollup-master.php:258
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/scrollup-master/options.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: scroll back to top, scroll to top, back to top, scroll up, scrollup...
scrollup-master/scrollup-master.php Passed 13 tests
The primary PHP file in "Scroll Back To Top Button" version 2.9.0 is used by WordPress to initiate all plugin functionality
62 characters long description:
A simple WordPress plugin to create scroll back to top button.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected337 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 35 | 63 | 299 |
JavaScript | 2 | 11 | 2 | 38 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin