Better WordPress Minify

Allows you to combine and minify your CSS and JS files to improve page load time.

v1.3.3Khang MinhUpdated Added 8k+ installs84% rating
22
Score
412
Errors
484
Warnings
+0
Change

Category Scores

Security0
Repo78
Performance100
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

896 findings

Security

353

9 issue groups

Maintainability

257

12 issue groups

I18n

237

4 issue groups

ERRORI18nNon Singular String Literal DomainThe $domain parameter must be a single text string literal. Found: $this->_domain170
Category
I18n
Occurrences
170
Severity
error

Sample message

The $domain parameter must be a single text string literal. Found: $this->_domain

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_ENV['TEMP']79
Category
Security
Occurrences
79
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_ENV['TEMP']

WARNINGMaintainabilityNon-prefixed constantGlobal constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "BWP_MINIFY_DETECTOR_LOG".73
Category
Maintainability
Occurrences
73
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "BWP_MINIFY_DETECTOR_LOG".

WARNINGSecurityRequest data is not unslashed$_GET[$key] not unslashed before sanitization. Use wp_unslash() or similar71
Category
Security
Occurrences
71
Severity
warning

Sample message

$_GET[$key] not unslashed before sanitization. Use wp_unslash() or similar

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<h1>$h1</h1>"'.59
Category
Security
Occurrences
59
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<h1>$h1</h1>"'.

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$_oc&quot;.54
Category
Maintainability
Occurrences
54
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$_oc&quot;.

WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.45
Category
Security
Occurrences
45
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORI18nNon Singular String Literal TextThe $text parameter must be a single text string literal. Found: "<strong>%d</strong> cached files "\n . "have been deleted successfully!"42
Category
I18n
Occurrences
42
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: "<strong>%d</strong> cached files "\n . "have been deleted successfully!"

WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;&#039;bwp_minify&#039; . $filter . $key&quot;.40
Category
Maintainability
Occurrences
40
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;&#039;bwp_minify&#039; . $filter . $key&quot;.

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_GET[&#039;page&#039;]. Check that the array index exists before using it.40
Category
Security
Occurrences
40
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_GET[&#039;page&#039;]. Check that the array index exists before using it.

Show 15 more
ERRORSecurityException output is not escaped32
Category
Security
Occurrences
32
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '": {$pattern}"'.

WARNINGMaintainabilityNon-prefixed class25
Category
Maintainability
Occurrences
25
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: &quot;BWP_Enqueued_Detector&quot;.

ERRORSecurityUnsafe printing function16
Category
Security
Occurrences
16
Severity
error

Sample message

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

ERRORI18nMissing Arg Domain16
Category
I18n
Occurrences
16
Severity
error

Sample message

Missing $domain parameter in function call to __().

ERRORMaintainabilityMissing direct file access protection14
Category
Maintainability
Occurrences
14
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

WARNINGMaintainabilityNon-prefixed global variable11
Category
Maintainability
Occurrences
11
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$const&quot;.

ERRORMaintainabilityfile system operations is writable11
Category
Maintainability
Occurrences
11
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: is_writable().

ERRORI18nMissing Translators Comment9
Category
I18n
Occurrences
9
Severity
error

Sample message

A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.

ERRORMaintainabilitywp function not compatible with requires wp9
Category
Maintainability
Occurrences
9
Severity
error

Sample message

Function "mb_strlen()" requires WordPress 4.2.0, but your plugin minimum supported version is WordPress 3.1.0.

WARNINGMaintainabilityDynamic hook name6
Category
Maintainability
Occurrences
6
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$action_hook&quot;.

WARNINGSecurityMissing nonce verification6
Category
Security
Occurrences
6
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORMaintainabilitycurl curl setopt6
Category
Maintainability
Occurrences
6
Severity
error

Sample message

Using cURL functions is highly discouraged. Use wp_remote_get() instead.

WARNINGSecurityInput is not validated or sanitized5
Category
Security
Occurrences
5
Severity
warning

Sample message

Detected usage of a non-sanitized, non-validated input variable _GET: &quot;/{$_GET[&#039;b&#039;]}/&quot;

WARNINGMaintainabilityDiscouraged PHP function4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

The use of function ini_set() is discouraged

WARNINGMaintainabilityerror log var export4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

var_export() found. Debug code should not normally be used in production.

External Connections

Not analyzed yet.

Score History

First score snapshot

v1.3.3

22

Latest

Findings
896
Errors
412
Warnings
484
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

29 nodes

Related Plugins