Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5663
register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.89MB] [CPU: ▼198.01ms] Passed 4 tests
A check of server-side resources used by Ultimate Back To Top Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼1.09 | 6.77 ▼20.33 |
Dashboard /wp-admin | 1.76 ▼1.30 | 4.72 ▼41.27 |
Posts /wp-admin/edit.php | 1.76 ▼1.35 | 5.56 ▼46.17 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 5.37 ▼662.29 |
Media Library /wp-admin/upload.php | 1.76 ▼1.25 | 4.91 ▼42.32 |
Ultimate Back To Top /wp-admin/options-general.php?page=nyams_ultimate_button | 1.76 | 9.19 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
nyams_ultimate_button |
Browser metrics Passed 4 tests
A check of browser resources used by Ultimate Back To Top Button
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,855 ▲208 | 16.78 ▲0.85 | 16.12 ▲2.31 | 60.66 ▲8.07 |
Dashboard /wp-admin | 2,999 ▲62 | 6.05 ▲0.07 | 153.27 ▼12.55 | 129.09 ▼4.52 |
Posts /wp-admin/edit.php | 2,771 ▲35 | 2.88 ▲0.16 | 75.37 ▲1.78 | 109.09 ▲4.01 |
Add New Post /wp-admin/post-new.php | 1,603 ▼80 | 20.86 ▲2.54 | 398.46 ▼28.13 | 124.20 ▲2.51 |
Media Library /wp-admin/upload.php | 1,839 ▲32 | 5.09 ▲0.05 | 159.94 ▼10.74 | 126.25 ▼14.76 |
Ultimate Back To Top /wp-admin/options-general.php?page=nyams_ultimate_button | 1,280 | 2.48 | 60.57 | 101.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5663
register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- This plugin did not uninstall successfully, leaving 1 option in the database
- nyams_ultimate_button
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=nyams_ultimate_button
- > User notice in wp-includes/functions.php+5663
register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- > GET request to /wp-admin/options-general.php?page=nyams_ultimate_button
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=nyams_ultimate_button
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ultimate-back-to-top/nyams-ultimate-button.php:375
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: links, plugin, posts
ultimate-back-to-top/nyams-ultimate-button.php 92% from 13 tests
The main PHP file in "Ultimate Back To Top Button" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimate-back-to-top.php" instead of "nyams-ultimate-button.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected541 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 41 | 21 | 326 |
JavaScript | 2 | 3 | 3 | 81 |
CSS | 2 | 5 | 0 | 70 |
PO File | 1 | 25 | 27 | 64 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 92.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin