Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.38ms] Passed 4 tests
This is a short check of server-side resources used by Scroll to Top
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 39.91 ▼9.10 |
Dashboard /wp-admin | 3.55 ▲0.24 | 57.08 ▲6.34 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 58.04 ▼1.87 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 91.17 ▼15.44 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.51 ▲4.88 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 88 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
mdc_scroll_to_top_style |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
mdc_scroll_to_top_icon |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Scroll to Top
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲235 | 14.81 ▲0.62 | 2.61 ▲0.44 | 45.01 ▼1.61 |
Dashboard /wp-admin | 2,373 ▲182 | 6.60 ▲0.72 | 152.03 ▲31.65 | 47.03 ▼0.11 |
Posts /wp-admin/edit.php | 2,285 ▲196 | 3.49 ▲1.47 | 54.03 ▲13.65 | 32.58 ▼5.20 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 20.93 ▲3.21 | 644.70 ▼114.19 | 69.78 ▲15.26 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.33 ▲0.13 | 87.11 ▼22.42 | 43.50 ▼2.22 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- mdc_scroll_to_top_icon
- widget_recent-posts
- db_upgraded
- mdc_scroll_to_top_style
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: top scroll, page scrolling, scroll to top, go to top of page, page top...
mdc-scroll-to-top/mdc-scroll-to-top.php Passed 13 tests
The main file in "Scroll to Top" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
44 characters long description:
Adds a 'Scroll to Top' feature to your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin593 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 146 | 195 | 547 |
JavaScript | 2 | 0 | 1 | 24 |
CSS | 2 | 0 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 23.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 1 | 2.38% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
80 PNG files occupy 0.21MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/arrow5.png | 0.76KB | 0.73KB | ▼ 3.34% |
assets/icons/arrow52.png | 5.11KB | 2.88KB | ▼ 43.59% |
assets/icons/arrow54.png | 1.64KB | 2.02KB | 0.00% |
assets/icons/arrow42.png | 1.33KB | 1.34KB | 0.00% |
assets/icons/arrow28.png | 3.48KB | 1.97KB | ▼ 43.39% |