Benchmarks
Plugin footprint Passed 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.22MB] [CPU: ▼121.51ms] Passed 4 tests
Analyzing server-side resources used by WP Hotkeys
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 38.57 ▲7.96 |
Dashboard /wp-admin | 3.28 ▲0.22 | 79.61 ▲30.04 |
Posts /wp-admin/edit.php | 3.40 ▲0.29 | 80.81 ▲32.40 |
Add New Post /wp-admin/post-new.php | 5.63 ▲0.20 | 120.56 ▼556.45 |
Media Library /wp-admin/upload.php | 3.23 ▲0.23 | 75.79 ▲41.47 |
WP Hotkeys /wp-admin/options-general.php?page=wp-hotkeys | 3.18 | 66.64 |
Server storage [IO: ▲0.05MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wh-options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Hotkeys
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,963 ▲368 | 16.38 ▲0.80 | 10.27 ▲0.88 | 46.02 ▼7.05 |
Dashboard /wp-admin | 3,227 ▲293 | 6.63 ▲0.68 | 167.13 ▼0.66 | 117.06 ▼1.76 |
Posts /wp-admin/edit.php | 3,037 ▲301 | 3.02 ▲0.32 | 76.50 ▲10.04 | 93.99 ▼6.61 |
Add New Post /wp-admin/post-new.php | 1,797 ▲114 | 16.93 ▼1.51 | 365.01 ▼74.16 | 112.68 ▼5.48 |
Media Library /wp-admin/upload.php | 2,111 ▲301 | 5.37 ▲0.35 | 162.61 ▲0.31 | 129.76 ▲1.18 |
WP Hotkeys /wp-admin/options-general.php?page=wp-hotkeys | 3,564 | 2.47 | 77.51 | 106.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wp-hotkeys
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wp-hotkeys
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-hotkeys
- > Notice in wp-content/plugins/wp-hotkeys/lib/admin/admin.php+280
Undefined index: modifier-themes.php-customize.php?return=%2Fwp-admin%2Foptions-general.php%3Fpage%3Dwp-hotkeys&autofocus%5Bcontrol%5D=background_image
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-hotkeys/lib/admin/admin.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-hotkeys/lib/admin/admin.php:22
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
wp-hotkeys/wp-hotkeys.php Passed 13 tests
The main file in "WP Hotkeys" v. 0.9.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
Provides keyboard shortcuts to quickly navigate the WordPress dashboard.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin646 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 203 | 248 | 467 |
JavaScript | 2 | 74 | 48 | 167 |
CSS | 1 | 4 | 6 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
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 | 17 | |
▷ Named functions | 17 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected