10% showkeys

Code Review | ShowKeys

WordPress plugin ShowKeys scored10%from 54 tests.

About plugin

  • Plugin page: showkeys
  • Plugin version: 0.5.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2019
  • Latest release: Nov 4, 2022
  • Number of updates: 16
  • Update frequency: every 67.6 days
  • Top authors: urbanbase (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,274 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.35 ▲3.41
Dashboard /wp-admin3.37 ▲0.0749.95 ▼3.35
Posts /wp-admin/edit.php3.42 ▲0.0746.42 ▼5.64
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.69 ▼15.15
Media Library /wp-admin/upload.php3.30 ▲0.0737.60 ▲2.35
ShowKeys /wp-admin/options-general.php?page=showkeys-skeys3.3335.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲1314.24 ▼0.051.76 ▼0.1944.36 ▲1.63
Dashboard /wp-admin2,206 ▲295.65 ▲0.0489.13 ▼2.1340.26 ▼0.54
Posts /wp-admin/edit.php2,108 ▲52.01 ▲0.0435.35 ▼7.2632.32 ▼6.78
Add New Post /wp-admin/post-new.php1,533 ▲522.74 ▼0.34636.32 ▲18.2452.80 ▼1.46
Media Library /wp-admin/upload.php1,402 ▲24.20 ▼0.0397.73 ▼1.7841.19 ▼4.24
ShowKeys /wp-admin/options-general.php?page=showkeys-skeys1,1821.9922.7554.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:
LanguageFilesBlank linesComment linesLines of code
PHP68488831
PO File288112247
CSS42041

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 code0.33
Average class complexity9.00
▷ Minimum class complexity2.00
▷ Maximum class complexity16.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.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