Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.03ms] Passed 4 tests
A check of server-side resources used by Scroll To AnyWhere
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.95 ▼3.71 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.48 ▼1.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.53 ▼0.96 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.26 ▼1.10 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.73 ▼1.77 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Scroll To AnyWhere
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 13.63 ▼0.75 | 8.54 ▲6.82 | 38.19 ▼9.09 |
Dashboard /wp-admin | 2,219 ▲31 | 5.83 ▲0.73 | 98.23 ▼21.93 | 42.50 ▼5.22 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.03 ▲0.00 | 41.75 ▲6.07 | 35.35 ▲1.30 |
Add New Post /wp-admin/post-new.php | 1,555 ▲31 | 18.14 ▼5.09 | 627.15 ▼30.56 | 55.93 ▼7.57 |
Media Library /wp-admin/upload.php | 1,407 ▲25 | 4.28 ▲0.12 | 96.97 ▼0.90 | 42.70 ▲1.12 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scroll-to-anywhere/tag/scfront.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/scroll-to-anywhere/tag/scback.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/scroll-to-anywhere/scback.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scroll-to-anywhere/scfront.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Settings Page of the plugin.), #2 (Front View of scroll.)
- Requires at least: Invalid plugin version format
- Plugin Name: You should set the name of your plugin on the first line (
=== scroll-to-anywhere ===
)
scroll-to-anywhere/scback.php 85% from 13 tests
The principal PHP file in "Scroll To AnyWhere" v. 1.0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 236 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("scroll-to-anywhere.php" instead of "scback.php")
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
There were no executable files found in this plugin1,142 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 139 | 38 | 833 |
PHP | 2 | 73 | 14 | 273 |
CSS | 1 | 3 | 0 | 36 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
9 PNG files occupy 0.28MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tag/screenshot-1.png | 69.17KB | 21.83KB | ▼ 68.44% |
tag/screenshot-2.png | 61.04KB | 17.54KB | ▼ 71.26% |
tag/js/hs.png | 2.62KB | 7.54KB | 0.00% |
js/hs.png | 2.62KB | 7.54KB | 0.00% |
js/hv.png | 2.80KB | 7.32KB | 0.00% |