Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼137.91ms] Passed 4 tests
Server-side resources used by Scroll To CK
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.24 | 39.54 ▲18.14 |
Dashboard /wp-admin | 3.15 ▲0.09 | 50.10 ▲14.43 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 48.82 ▲4.75 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 93.60 ▼566.52 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 34.20 ▼4.28 |
Scroll To CK /wp-admin/options-general.php?page=scroll-to-ck | 3.12 | 33.10 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options |
---|
scrolltock_options |
Browser metrics Passed 4 tests
Checking browser requirements for Scroll To CK
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲229 | 16.28 ▲0.81 | 14.80 ▲5.64 | 52.01 ▲0.24 |
Dashboard /wp-admin | 2,978 ▲47 | 5.89 ▼0.15 | 141.19 ▼4.18 | 108.94 ▼21.33 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 72.65 ▲2.56 | 95.36 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,601 ▲20 | 18.78 ▲0.13 | 384.86 ▼47.94 | 116.67 ▼8.51 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 4.99 ▼0.05 | 158.35 ▼17.20 | 126.25 ▼13.57 |
Scroll To CK /wp-admin/options-general.php?page=scroll-to-ck | 1,478 | 3.62 | 77.77 | 119.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- scrolltock_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=scroll-to-ck
- > Network (severe)
wp-content/plugins/scroll-to-ck/assets/jscolor/jscolor.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: onepage, go to top, scroll
scroll-to-ck/scroll-to-ck.php Passed 13 tests
The main file in "Scroll To CK" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
Scroll To CK allows you to scroll your page with you links and add a go to top button on scroll.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/scroll-to-ck/assets/jscolor/Demos of JSColor.URL
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 150 | 69 | 1,133 |
JavaScript | 1 | 139 | 38 | 833 |
PHP | 4 | 103 | 139 | 525 |
PO File | 1 | 67 | 121 | 57 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 15.25 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 4 | 11.76% |
▷ Public methods | 27 | 79.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 20.59% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |
images/offsety.png | 0.31KB | 0.37KB | 0.00% |
images/arrowup.png | 0.36KB | 0.38KB | 0.00% |
assets/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
images/logo_scrolltock_64.png | 4.04KB | 2.94KB | ▼ 27.34% |