Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.25ms] Passed 4 tests
This is a short check of server-side resources used by Keyboard Scroll
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.37 ▼7.93 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.56 ▼1.03 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.58 ▲3.18 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.59 ▲7.66 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.04 ▲0.77 |
Keyboard Scroll /wp-admin/options-general.php?page=keyboard-scroll | 3.24 | 29.60 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
keyboard-scroll |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Keyboard Scroll
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,991 ▲256 | 14.04 ▼0.57 | 9.84 ▲7.72 | 39.37 ▼4.29 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼1.02 | 109.82 ▼3.78 | 37.70 ▼5.44 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▼0.14 | 40.40 ▲3.65 | 34.16 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,531 ▲11 | 23.00 ▼0.18 | 672.89 ▼25.33 | 58.11 ▲3.64 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▼0.01 | 92.91 ▼12.81 | 41.66 ▼5.19 |
Keyboard Scroll /wp-admin/options-general.php?page=keyboard-scroll | 852 | 2.03 | 28.35 | 31.45 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- keyboard-scroll
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/keyboard-scroll/settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/keyboard-scroll/keyboard-scroll.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/keyboard-scroll/init-options.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues 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
2 plugin tags: keyboard, navigation
keyboard-scroll/keyboard-scroll.php Passed 13 tests
The main file in "Keyboard Scroll" v. 1.05 serves as a complement to information provided in readme.txt and as the entry point to the plugin
39 characters long description:
Scroll through posts using the J/K keys
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected383 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 39 | 21 | 169 |
JavaScript | 1 | 34 | 15 | 124 |
PO File | 2 | 34 | 38 | 90 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon_32x32.png | 4.67KB | 1.48KB | ▼ 68.22% |