Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼4.25ms] Passed 4 tests
A check of server-side resources used by WPFront Scroll Top
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 35.31 ▼3.11 |
Dashboard /wp-admin | 3.63 ▲0.28 | 45.73 ▼11.36 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 46.52 ▲1.09 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 90.84 ▼3.60 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 35.19 ▲1.27 |
Scroll Top /wp-admin/options-general.php?page=wpfront-scroll-top | 3.50 | 35.90 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 115 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WPFront Scroll Top
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.32 ▼0.05 | 1.60 ▼0.13 | 39.92 ▼2.89 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▼0.03 | 92.18 ▲4.02 | 41.78 ▲2.48 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.02 | 39.57 ▲3.59 | 36.70 ▼1.24 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.65 ▲0.46 | 678.07 ▲42.58 | 53.86 ▲7.42 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.25 ▲0.17 | 92.79 ▼5.71 | 44.39 ▲0.22 |
Scroll Top /wp-admin/options-general.php?page=wpfront-scroll-top | 2,479 | 9.77 | 155.67 | 41.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: back to top, scroll up, wordpress scroll top, scroll to top, scroll top
wpfront-scroll-top/wpfront-scroll-top.php Passed 13 tests
The principal PHP file in "WPFront Scroll Top" v. 2.2 is loaded by WordPress automatically on each request
64 characters long description:
Allows the visitor to easily scroll back to the top of the page.
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
There were no executable files found in this plugin2,214 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 295 | 872 | 1,045 |
HTML | 10 | 4 | 0 | 371 |
JavaScript | 6 | 60 | 24 | 334 |
PO File | 1 | 76 | 87 | 173 |
LESS | 7 | 38 | 0 | 146 |
CSS | 5 | 2 | 0 | 145 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 25.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 1 | 1.25% |
▷ Public methods | 35 | 43.75% |
▷ Protected methods | 44 | 55.00% |
▷ Private methods | 1 | 1.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
74 compressed PNG files occupy 0.15MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/110.png | 3.02KB | 3.06KB | 0.00% |
images/icons/46.png | 3.45KB | 3.55KB | 0.00% |
images/icons/106.png | 1.48KB | 1.53KB | 0.00% |
images/icons/95.png | 1.61KB | 1.54KB | ▼ 4.48% |
images/icons/7.png | 3.26KB | 3.30KB | 0.00% |