Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/showkeys/lib/upgrade.php+9
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.45ms] Passed 4 tests
Analyzing server-side resources used by ShowKeys
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 43.35 ▲3.41 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.95 ▼3.35 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 46.42 ▼5.64 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.69 ▼15.15 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.60 ▲2.35 |
ShowKeys /wp-admin/options-general.php?page=showkeys-skeys | 3.33 | 35.58 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
skey_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by ShowKeys
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲13 | 14.24 ▼0.05 | 1.76 ▼0.19 | 44.36 ▲1.63 |
Dashboard /wp-admin | 2,206 ▲29 | 5.65 ▲0.04 | 89.13 ▼2.13 | 40.26 ▼0.54 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.01 ▲0.04 | 35.35 ▼7.26 | 32.32 ▼6.78 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 22.74 ▼0.34 | 636.32 ▲18.24 | 52.80 ▼1.46 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.20 ▼0.03 | 97.73 ▼1.78 | 41.19 ▼4.24 |
ShowKeys /wp-admin/options-general.php?page=showkeys-skeys | 1,182 | 1.99 | 22.75 | 54.30 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- skey_options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: tastenkrzel, tasten, shortcodes, keys, shortcuts...
showkeys/showkeys.php 92% from 13 tests
The entry point to "ShowKeys" version 0.5.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin1,119 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 84 | 88 | 831 |
PO File | 2 | 88 | 112 | 247 |
CSS | 4 | 2 | 0 | 41 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 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
There were not PNG files found in your plugin