Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼39.02ms] Passed 4 tests
Server-side resources used by Keypress-list
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.00 ▼0.06 |
Dashboard /wp-admin | 3.00 ▼0.30 | 21.90 ▼34.88 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 24.87 ▼27.78 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.88 | 24.48 ▼74.84 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 19.80 ▼18.57 |
Key navigation menu /wp-admin/admin.php?page=keypress-list/admin/kprl_nav.php | 3.00 | 23.61 |
Keypress List /wp-admin/admin.php?page=keypress-list/admin/kprl_admin.php | 3.00 | 22.29 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Keypress-list
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲39 | 14.75 ▲0.02 | 3.01 ▲1.03 | 47.05 ▲2.85 |
Dashboard /wp-admin | 2,209 ▲29 | 5.56 ▼0.06 | 81.93 ▼20.03 | 75.85 ▲24.53 |
Posts /wp-admin/edit.php | 2,129 ▲32 | 1.98 ▼0.17 | 38.95 ▲2.47 | 35.69 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,563 ▲37 | 23.06 ▲0.15 | 664.68 ▼8.21 | 60.06 ▲5.40 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.10 ▼0.00 | 103.91 ▼12.11 | 69.75 ▲20.07 |
Key navigation menu /wp-admin/admin.php?page=keypress-list/admin/kprl_nav.php | 870 | 2.00 | 28.32 | 30.19 |
Keypress List /wp-admin/admin.php?page=keypress-list/admin/kprl_admin.php | 1,069 | 2.00 | 24.97 | 25.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=keypress-list/admin/kprl_admin.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=keypress-list/admin/kprl_nav.php
- > Notice in wp-content/plugins/keypress-list/admin/kprl_nav.php+3
Undefined index: kprl_nav_form
- > GET request to /wp-admin/admin.php?page=keypress-list/admin/kprl_admin.php
- > Notice in wp-content/plugins/keypress-list/admin/kprl_admin.php+3
Undefined index: kprl_hidden
- > GET request to /wp-admin/admin.php?page=keypress-list/admin/kprl_admin.php
- > Warning in wp-content/plugins/keypress-list/admin/kprl_admin.php+42
Use of undefined constant checked - assumed 'checked' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/keypress-list/kprl.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/keypress-list/admin/kprl_admin.php:34
- > PHP Notice
Undefined index: kprl_hidden in wp-content/plugins/keypress-list/admin/kprl_admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/keypress-list/keypress-list.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/keypress-list/admin/kprl_nav.php:19
- > PHP Notice
Undefined index: kprl_nav_form in wp-content/plugins/keypress-list/admin/kprl_nav.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: shortcuts, keys, key navigation
keypress-list/keypress-list.php 92% from 13 tests
The primary PHP file in "Keypress-list" version 0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 604 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected802 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 58 | 18 | 371 |
JavaScript | 4 | 31 | 1 | 332 |
PO File | 1 | 33 | 86 | 99 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/keypress_list_ico.png | 52.43KB | 1.08KB | ▼ 97.94% |