Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼1.67ms] Passed 4 tests
Analyzing server-side resources used by Beam me up Scotty - Back to Top Button
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 59.81 ▲15.15 |
Dashboard /wp-admin | 3.50 ▲0.20 | 59.57 ▲1.17 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 54.83 ▲6.42 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 90.65 ▼24.57 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 43.96 ▲10.29 |
Beam me up Scotty1 /wp-admin/themes.php?page=beam-me-up-scotty_settings | 3.40 | 44.17 |
Server storage [IO: ▲2.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
otb_new_plugin |
widget_recent-comments |
can_compress_scripts |
beam_me_up_scotty_version |
widget_recent-posts |
widget_theysaidso_widget |
otb_new_theme |
Browser metrics Passed 4 tests
An overview of browser requirements for Beam me up Scotty - Back to Top Button
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲165 | 13.56 ▼1.04 | 10.44 ▲8.62 | 55.00 ▲12.28 |
Dashboard /wp-admin | 2,205 ▲25 | 5.55 ▼0.02 | 87.00 ▼4.51 | 38.75 ▲3.29 |
Posts /wp-admin/edit.php | 2,113 ▲16 | 1.95 ▼0.04 | 34.87 ▼5.80 | 37.30 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 18.23 ▼4.84 | 620.04 ▲13.24 | 65.28 ▲13.37 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.24 ▲0.05 | 97.26 ▼10.56 | 42.32 ▼3.54 |
Beam me up Scotty1 /wp-admin/themes.php?page=beam-me-up-scotty_settings | 1,160 | 1.76 | 29.93 | 39.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- beam_me_up_scotty_version
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- otb_new_theme
- widget_recent-posts
- widget_theysaidso_widget
- otb_new_plugin
Smoke tests 75% from 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 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
Almost there! Just fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/beam-me-up-scotty/library/template-parts/tabs.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/beam-me-up-scotty/library/includes/dynamic-css.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/beam-me-up-scotty/library/template-parts/content-themes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/beam-me-up-scotty/library/template-parts/content-settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/beam-me-up-scotty/library/template-parts/content-plugins.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/beam-me-up-scotty/library/template-parts/back-to-top-button.php:1
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
beam-me-up-scotty/beam-me-up-scotty.php Passed 13 tests
"Beam me up Scotty - Back to Top Button" version 1.0.19's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
103 characters long description:
Add a back to top button to your site quickly and easily with this simple and easy to configure plugin.
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 detected10,121 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 56 | 31 | 5,016 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 8 | 367 | 222 | 1,520 |
PHP | 12 | 266 | 344 | 914 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 38.67 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.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 | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 35 | 92.11% |
▷ Protected methods | 1 | 2.63% |
▷ Private methods | 2 | 5.26% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin