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
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/scroll-to-top-inthiscode/scroll-to-top-inthiscode.php+34
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.85MB] [CPU: ▼50.85ms] Passed 4 tests
An overview of server-side resources used by Scroll To Top Plugin by InThisCode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.33 | 5.68 ▼39.38 |
Dashboard /wp-admin | 2.16 ▼1.15 | 6.68 ▼44.82 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 7.69 ▼39.17 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 7.41 ▼80.03 |
Media Library /wp-admin/upload.php | 2.16 ▼1.08 | 6.67 ▼25.46 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Scroll To Top Plugin by InThisCode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.45 ▲0.19 | 1.74 ▼0.09 | 44.78 ▼4.52 |
Dashboard /wp-admin | 2,222 ▲48 | 5.84 ▼0.02 | 100.18 ▼11.17 | 40.70 ▼5.58 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.05 ▲0.03 | 40.36 ▲1.87 | 35.07 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,553 ▲23 | 23.01 ▼0.21 | 658.13 ▼31.07 | 56.30 ▼5.87 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.15 ▼0.04 | 98.08 ▼11.83 | 43.97 ▼1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/scroll-to-top-inthiscode/scroll-to-top-inthiscode.php+34
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/scroll-to-top-inthiscode/scroll-to-top-inthiscode.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-to-top-inthiscode/includes/itct-scroll-to-top-settings-init.php:2
- > PHP Notice
Undefined variable: itct_options in wp-content/plugins/scroll-to-top-inthiscode/includes/itct-scroll-to-top-settings-filters.php on line 4
- > PHP Notice
Undefined variable: itct_options in wp-content/plugins/scroll-to-top-inthiscode/includes/itct-scroll-to-top-settings-filters.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scroll-to-top-inthiscode/includes/itct-scroll-to-top-callbacks.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-to-top-inthiscode/includes/itct-scroll-to-top-settings-filters.php:53
- > PHP Notice
Undefined variable: itct_options in wp-content/plugins/scroll-to-top-inthiscode/includes/itct-scroll-to-top-settings-filters.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/scroll-to-top-inthiscode/includes/itct-scroll-to-top-settings-filters.php on line 3
- > PHP Notice
Undefined variable: itct_options in wp-content/plugins/scroll-to-top-inthiscode/includes/itct-scroll-to-top-settings-filters.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/scroll-to-top-inthiscode/includes/itct-scroll-to-top-settings-filters.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/scroll-to-top-inthiscode/includes/itct-scroll-to-top-settings-filters.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
scroll-to-top-inthiscode/scroll-to-top-inthiscode.php 92% from 13 tests
The principal PHP file in "Scroll To Top Plugin by InThisCode" v. 1.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin379 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 71 | 70 | 370 |
JavaScript | 3 | 1 | 22 | 6 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 35 | |
▷ Named functions | 35 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
34 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/1.png | 0.84KB | 0.64KB | ▼ 24.13% |
images/icons/34.png | 5.39KB | 2.36KB | ▼ 56.23% |
images/icons/25.png | 3.12KB | 2.10KB | ▼ 32.79% |
images/icons/16.png | 8.33KB | 3.09KB | ▼ 62.94% |
images/icons/22.png | 2.82KB | 2.48KB | ▼ 11.79% |