Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼143.75ms] Passed 4 tests
Server-side resources used by Kento Scroll Jump Top
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 36.20 ▲16.14 |
Dashboard /wp-admin | 3.07 ▲0.02 | 34.21 ▲0.07 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 43.26 ▼0.06 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 90.47 ▼562.01 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 32.45 ▼13.00 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Kento Scroll Jump Top
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,836 ▲240 | 16.28 ▲0.76 | 13.09 ▲4.60 | 48.24 ▲0.04 |
Dashboard /wp-admin | 2,996 ▲67 | 5.88 ▼0.26 | 141.54 ▲6.07 | 114.59 ▲6.13 |
Posts /wp-admin/edit.php | 2,765 ▲26 | 2.70 ▲0.00 | 64.05 ▼7.61 | 102.71 ▲8.16 |
Add New Post /wp-admin/post-new.php | 1,691 ▲8 | 18.67 ▲0.11 | 353.82 ▼37.07 | 86.52 ▼34.27 |
Media Library /wp-admin/upload.php | 1,836 ▲29 | 5.06 ▲0.02 | 140.00 ▼38.08 | 127.05 ▼8.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
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 everything seems fine, this is not 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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kento-scroll-jump-top/kento-scroll-to-top-admin.php:5
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/kento-scroll-jump-top/kento-scroll-to-top.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/kento-scroll-jump-top/kento-scroll-to-top.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% 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
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Admin Panel)
- Donate link: Please fix this invalid url: ""
kento-scroll-jump-top/kento-scroll-to-top.php 85% from 13 tests
"Kento Scroll Jump Top" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please improve your description making it at least 10 characters long (currently 0 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("kento-scroll-jump-top.php" instead of "kento-scroll-to-top.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin803 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 138 | 208 | 383 |
JavaScript | 1 | 41 | 14 | 288 |
PHP | 2 | 58 | 16 | 132 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
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 | 6 | |
▷ Named functions | 6 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
28 PNG files occupy 0.44MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/square-hover.png | 1.26KB | 0.33KB | ▼ 73.95% |
css/arrow-one.png | 1.70KB | 1.15KB | ▼ 32.37% |
css/home-one.png | 0.48KB | 0.49KB | 0.00% |
css/black.png | 4.13KB | 1.29KB | ▼ 68.75% |
css/home.png | 0.87KB | 0.92KB | 0.00% |