Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.08ms] Passed 4 tests
Server-side resources used by Simple Goto Top Button
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.05 ▼6.42 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.42 ▼2.01 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.34 ▲0.07 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.97 ▼3.95 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.00 ▲2.21 |
Server storage [IO: ▲0.04MB] [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 |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Goto Top Button
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 13.60 ▼1.15 | 2.00 ▲0.04 | 44.11 ▼3.95 |
Dashboard /wp-admin | 2,217 ▲29 | 5.04 ▲0.16 | 97.90 ▼16.53 | 74.35 ▲26.10 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.29 ▲0.26 | 48.80 ▲10.41 | 36.39 ▲4.32 |
Add New Post /wp-admin/post-new.php | 1,522 ▼8 | 17.59 ▼0.63 | 709.52 ▲67.34 | 38.57 ▼10.89 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.36 ▲0.20 | 102.69 ▼0.12 | 76.71 ▲31.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-goto-top-button/simple-goto-top-button.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: page scroll to top, easy scroll to top button, goto top button, page top button, scroll to top button...
simple-goto-top-button/simple-goto-top-button.php 85% from 13 tests
The entry point to "Simple Goto Top Button" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 188 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin302 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 34 | 13 | 160 |
CSS | 2 | 14 | 2 | 105 |
JavaScript | 2 | 10 | 0 | 37 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/arrow_style6.png | 1.54KB | 1.20KB | ▼ 22.11% |
assets/img/arrow_style4.png | 0.52KB | 0.39KB | ▼ 24.15% |
assets/img/arrow_style2.png | 4.83KB | 2.86KB | ▼ 40.81% |
assets/img/arrow_style3.png | 6.05KB | 2.74KB | ▼ 54.68% |
assets/img/sgtb.png | 0.39KB | 0.32KB | ▼ 17.25% |