Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.49ms] Passed 4 tests
This is a short check of server-side resources used by GP Back To Top
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.11 ▼0.36 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.18 ▼1.94 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.53 ▲0.89 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.05 ▼0.59 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.92 ▼3.05 |
GP Back To Top /wp-admin/options-general.php?page=gp-back-to-top | 3.21 | 33.47 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GP Back To Top
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲161 | 13.98 ▼0.31 | 9.26 ▲7.46 | 44.28 ▲6.51 |
Dashboard /wp-admin | 2,214 ▲42 | 4.89 ▼0.03 | 111.57 ▼14.20 | 41.98 ▼3.27 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.05 ▲0.02 | 39.62 ▲1.88 | 34.43 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,525 ▼8 | 23.55 ▲0.25 | 612.65 ▼49.89 | 55.30 ▼0.49 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.21 ▲0.03 | 98.80 ▼7.47 | 43.16 ▼1.15 |
GP Back To Top /wp-admin/options-general.php?page=gp-back-to-top | 890 | 1.74 | 25.64 | 30.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/gp-back-to-top/gp-back-to-top.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/gp-back-to-top/inc/uninstall.php:4
- > 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 errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: simple plugin back to top, create back to top button, back to top, back to top plugin
gp-back-to-top/gp-back-to-top.php Passed 13 tests
The main PHP script in "GP Back To Top" version 3.0 is automatically included on every request by WordPress
33 characters long description:
Create Back To Top Button Custom.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected682 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 288 |
PHP | 2 | 27 | 21 | 203 |
CSS | 3 | 12 | 44 | 125 |
JavaScript | 2 | 14 | 16 | 66 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin