Truncate Comments Security & Risk Analysis

wordpress.org/plugins/truncate-comments

The plugin uses Javascript to hide long comments (Amazon-style comments).

80 active installs v2.00 PHP 5.3+ WP 3.0+ Updated May 19, 2025
amazoncollapsecommentcommentshide-content
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Truncate Comments Safe to Use in 2026?

Generally Safe

Score 100/100

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

No known CVEs Updated 10mo ago
Risk Assessment

The truncate-comments plugin version 2.00 exhibits a generally strong security posture based on the static analysis. The plugin has a minimal attack surface with no identified AJAX handlers, REST API routes, shortcodes, or cron events, and all entry points appear to be protected by authentication checks. The code also demonstrates good practices by exclusively using prepared statements for SQL queries and including nonce and capability checks. Furthermore, the absence of any known vulnerabilities or historical CVEs suggests a well-maintained and secure codebase. However, a significant concern is the low percentage (36%) of properly escaped output. This indicates a potential risk of Cross-Site Scripting (XSS) vulnerabilities if user-supplied data is not adequately sanitized before being displayed to users, which could be exploited by attackers to inject malicious scripts.

Key Concerns

  • Low percentage of properly escaped output
Vulnerabilities
None known

Truncate Comments Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

Truncate Comments Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
14
8 escaped
Nonce Checks
2
Capability Checks
4
File Operations
0
External Requests
0
Bundled Libraries
0

Output Escaping

36% escaped22 total outputs
Attack Surface

Truncate Comments Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 9
actionplugins_loadedtruncate-comments.php:20
actionactivate_truncate-comments/truncate-comments.phptruncate-comments.php:60
actioninittruncate-comments.php:82
actionadmin_enqueue_scriptstruncate-comments.php:109
actionadmin_menutruncate-comments.php:321
actionwp_enqueue_scriptstruncate-comments.php:329
actionwp_enqueue_scriptstruncate-comments.php:345
filtercomment_texttruncate-comments.php:352
actionwp_footertruncate-comments.php:379
Maintenance & Trust

Truncate Comments Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedMay 19, 2025
PHP min version5.3
Downloads4K

Community Trust

Rating96/100
Number of ratings6
Active installs80
Developer Profile

Truncate Comments Developer Profile

Flector

15 plugins · 44K total installs

77
trust score
Avg Security Score
97/100
Avg Patch Time
782 days
View full developer profile
Detection Fingerprints

How We Detect Truncate Comments

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/truncate-comments/inc/jquery.lettering.js/wp-content/plugins/truncate-comments/inc/jquery.textillate.js/wp-content/plugins/truncate-comments/inc/animate.min.css/wp-content/plugins/truncate-comments/inc/tc-script.js/wp-content/plugins/truncate-comments/inc/tc-css.css
Script Paths
/wp-content/plugins/truncate-comments/inc/jquery.lettering.js/wp-content/plugins/truncate-comments/inc/jquery.textillate.js/wp-content/plugins/truncate-comments/inc/tc-script.js
Version Parameters
truncate-comments/inc/tc-script.js?ver=truncate-comments/inc/tc-css.css?ver=

HTML / DOM Fingerprints

HTML Comments
<!--проверка версии плагина (запуск функции установки новых опций) begin--><!--проверка версии плагина (запуск функции установки новых опций) end--><!--функция установки новых опций при обновлении плагина у пользователей begin--><!--функция установки новых опций при обновлении плагина у пользователей end-->+19 more
Data Attributes
data-cutbydata-lengthdata-ellipsisdata-showtextdata-speeddata-hideText
JS Globals
tc_options
FAQ

Frequently Asked Questions about Truncate Comments