Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.40ms] Passed 4 tests
A check of server-side resources used by Basic Scroll to Top
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 28.24 ▼9.90 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.24 ▲0.19 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.41 ▼2.69 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.72 ▼21.20 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.15 ▲3.94 |
Scroll to Top /wp-admin/options-general.php?page=basicscrolltop | 3.27 | 38.15 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Basic Scroll to Top
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.20 ▼1.17 | 1.87 ▲0.02 | 42.65 ▼8.81 |
Dashboard /wp-admin | 2,215 ▲30 | 4.80 ▼1.08 | 107.79 ▲9.36 | 41.49 ▼0.58 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.01 ▼0.01 | 33.45 ▼8.65 | 34.66 ▼1.38 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 23.35 ▲0.05 | 676.15 ▲87.90 | 54.63 ▼11.76 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.16 ▼0.13 | 96.60 ▼2.03 | 44.45 ▲0.22 |
Scroll to Top /wp-admin/options-general.php?page=basicscrolltop | 1,341 | 3.44 | 58.78 | 33.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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
Please fix the following items
- 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/basic-scroll-to-top/admin/basic-scroll-top-setting.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/basic-scroll-to-top/public/basic-scroll-top-front.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: smooth scroll, wordpress scroll top, basic scroll to top, scroll up, scroll top...
basic-scroll-to-top/basic-scroll-to-top.php 77% from 13 tests
"Basic Scroll to Top" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin474 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 36 | 108 | 420 |
JavaScript | 2 | 3 | 1 | 30 |
CSS | 2 | 0 | 0 | 24 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 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 | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.17MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/icon.png | 8.22KB | 3.97KB | ▼ 51.66% |
screenshots/banner-772x250.png | 107.36KB | 68.57KB | ▼ 36.13% |
screenshots/screenshot-1.png | 60.16KB | 16.92KB | ▼ 71.88% |
public/images/scroll-icon.png | 0.98KB | 1.03KB | 0.00% |