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.00MB] [CPU: ▼7.27ms] Passed 4 tests
This is a short check of server-side resources used by WP Scroll To Up
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 27.70 ▼10.13 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.13 ▼1.29 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.59 ▼1.30 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.88 ▼16.35 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.86 ▲7.44 |
Scroll To Up settings /wp-admin/options-general.php?page=scrolltop-settings | 3.22 | 32.77 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Scroll To Up: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲122 | 13.62 ▼0.74 | 9.41 ▲7.51 | 39.97 ▼2.20 |
Dashboard /wp-admin | 2,223 ▲46 | 5.74 ▲0.16 | 90.56 ▼0.83 | 38.70 ▼3.80 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 2.30 ▲0.26 | 41.34 ▲1.32 | 35.50 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,546 ▲6 | 23.37 ▲0.50 | 667.03 ▲15.47 | 36.25 ▼17.31 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.47 ▲0.27 | 97.35 ▼9.39 | 43.86 ▼2.52 |
Scroll To Up settings /wp-admin/options-general.php?page=scrolltop-settings | 1,314 | 2.58 | 62.89 | 28.10 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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 | 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
The following issues need your attention
- 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/my-scroll-to-up/jeba-index.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
my-scroll-to-up/jeba-index.php 92% from 13 tests
The main PHP file in "WP Scroll To Up" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("my-scroll-to-up.php" instead of "jeba-index.php")
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
Success! There were no dangerous files found in this plugin2,385 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 1,673 |
CSS | 1 | 7 | 0 | 576 |
PHP | 1 | 83 | 19 | 126 |
JavaScript | 2 | 8 | 1 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 9 | |
▷ Named functions | 9 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected