hk_shortcode Security & Risk Analysis

wordpress.org/plugins/hk-shortcode

一个简单的短代码插件

0 active installs v1.0 PHP + WP 5.0+ Updated Nov 1, 2021
shortcode
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is hk_shortcode Safe to Use in 2026?

Generally Safe

Score 85/100

hk_shortcode has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 4yr ago
Risk Assessment

The 'hk-shortcode' plugin version 1.0 exhibits a strong security posture based on the provided static analysis. The absence of dangerous functions, all SQL queries using prepared statements, and properly escaped outputs are excellent indicators of secure coding practices. Furthermore, the plugin has no recorded vulnerability history, suggesting a history of stable and secure development. The total entry points are limited to shortcodes, and there are no unprotected entry points identified in the static analysis, which is a positive sign for attack surface management.

However, several areas present potential concerns despite the otherwise clean static analysis. The lack of nonce checks and capability checks across all entry points is a significant oversight. While the static analysis found no direct unsanitized taint flows, the absence of these fundamental security mechanisms means that even if the code itself is currently written safely, it is highly susceptible to Cross-Site Request Forgery (CSRF) and privilege escalation vulnerabilities if user-supplied data is ever incorporated into any of the shortcode functionalities without proper validation and authorization. The presence of file operations without explicit context also warrants caution, though its specific risk is not immediately clear without further code review.

In conclusion, 'hk-shortcode' v1.0 benefits from a clean codebase regarding SQL injection and output escaping, and a spotless vulnerability history. However, the complete omission of nonce and capability checks on its entry points represents a critical weakness that could be exploited. The plugin's security is strong in terms of preventing common vulnerabilities like SQL injection, but significantly weakened by its lack of foundational authorization and CSRF protection mechanisms.

Key Concerns

  • Missing nonce checks on entry points
  • Missing capability checks on entry points
Vulnerabilities
None known

hk_shortcode Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Version History

hk_shortcode Release Timeline

v1.0Current
v0.9
v0.8
v0.6
Code Analysis
Analyzed Apr 16, 2026

hk_shortcode Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
1 prepared
Unescaped Output
0
1 escaped
Nonce Checks
0
Capability Checks
0
File Operations
1
External Requests
0
Bundled Libraries
0

SQL Query Safety

100% prepared1 total queries

Output Escaping

100% escaped1 total outputs
Attack Surface

hk_shortcode Attack Surface

Entry Points16
Unprotected0

Shortcodes 16

[title-plane] function/shortcode.php:3
[start-plane] function/shortcode.php:14
[icon-url] function/shortcode.php:21
[zd-plane] function/shortcode.php:35
[zd-plane] function/shortcode.php:47
[loginshow] function/shortcode.php:49
[clickshow] function/shortcode.php:60
[c-alert] function/shortcode.php:74
[c-downbtn] function/shortcode.php:93
[pwdshow] function/shortcode.php:158
[selectbox] function/shortcode.php:194
[new_li] function/shortcode.php:208
[reply] function/shortcode.php:241
[bvideo] function/shortcode.php:253
[c-video] function/shortcode.php:255
[dh] function/shortcode.php:273
WordPress Hooks 5
actionmedia_buttonsfunction/edit-power.php:67
actionadmin_headfunction/edit-power.php:74
actionwp_headfunction/load.php:19
actionwp_footerfunction/load.php:24
actionadmin_enqueue_scriptsfunction/load.php:35
Maintenance & Trust

hk_shortcode Maintenance & Trust

Maintenance Signals

WordPress version tested5.8.13
Last updatedNov 1, 2021
PHP min version
Downloads4K

Community Trust

Rating0/100
Number of ratings0
Active installs0
Developer Profile

hk_shortcode Developer Profile

huankong

1 plugin · 0 total installs

84
trust score
Avg Security Score
85/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect hk_shortcode

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/hk-shortcode/static/css/post.css/wp-content/plugins/hk-shortcode/static/css/addon.css/wp-content/plugins/hk-shortcode/static/lib/font-awesome/css/font-awesome.min.css/wp-content/plugins/hk-shortcode/static/lib/plyr/plyr.css/wp-content/plugins/hk-shortcode/static/lib/highlight/highlight.min.js/wp-content/plugins/hk-shortcode/static/lib/highlight/init.js/wp-content/plugins/hk-shortcode/static/lib/highlight/dark.css/wp-content/plugins/hk-shortcode/static/js/addon.js+5 more

HTML / DOM Fingerprints

CSS Classes
button_shortcodebutton_normal_shortcodebutton_panel_shortcodebutton_cloud_shortcodeshortcodenormal_shortcodeclose_buttonshort_code_select+7 more
Data Attributes
type
JS Globals
huankong_THEME_PATH
Shortcode Output
<div class="title-plane"><div class="start-plane"<div class="icon-url"
FAQ

Frequently Asked Questions about hk_shortcode