Staatic – Static Site Generator for WordPress

Use WordPress as your CMS, then publish a fast, lower-exposure static version of your site.

v1.12.4Team StaaticUpdated Added 2k+ installs88% rating0% support resolved
31
Score
420
Errors
195
Warnings
+0
Change

Category Scores

Security0
Repo81
Performance100
Maintainability44

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

615 findings

Security

468

11 issue groups

Maintainability

99

8 issue groups

I18n

33

5 issue groups

Supply Chain

2

1 issue group

ERRORSecuritySQL query is not preparedUse placeholders and $wpdb->prepare(); found !151
Category
Security
Occurrences
151
Severity
error

Sample message

Use placeholders and $wpdb->prepare(); found !

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"{$rootPath}/wp-content/uploads"'.98
Category
Security
Occurrences
98
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"{$rootPath}/wp-content/uploads"'.

WARNINGSecurityInterpolated SQL is not preparedUse placeholders and $wpdb->prepare(); found interpolated variable {$direction} at "\n ORDER BY {$orderBy} {$direction}\n LIMIT {$limit} OFFSET {$offset}"62
Category
Security
Occurrences
62
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable {$direction} at "\n ORDER BY {$orderBy} {$direction}\n LIMIT {$limit} OFFSET {$offset}"

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;55
Category
Maintainability
Occurrences
55
Severity
error

Sample message

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

ERRORSecurityException output is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Column type '{$class}' is not supported"'.48
Category
Security
Occurrences
48
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Column type '{$class}' is not supported"'.

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$build".29
Category
Maintainability
Occurrences
29
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$build".

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

Sample message

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

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

Sample message

Processing form data without nonce verification.

ERRORSecurityUnsafe printing functionAll output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.21
Category
Security
Occurrences
21
Severity
error

Sample message

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

WARNINGSecurityRequest data is not unslashed$_GET['staatic'] not unslashed before sanitization. Use wp_unslash() or similar19
Category
Security
Occurrences
19
Severity
warning

Sample message

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

Show 15 more
WARNINGI18nNo Html Wrapped Strings19
Category
I18n
Occurrences
19
Severity
warning

Sample message

Translatable string should not be wrapped in HTML. Found: '<p>In order to successfully generate a static version of your WordPress site, a permalink structure compatible with static sites needs to be configured.</p>'

ERRORSecurityDatabase parameter is not escaped14
Category
Security
Occurrences
14
Severity
error

Sample message

Unescaped parameter $buildIds used in $wpdb->get_results()\n$buildIds assigned unsafely at line 163.

ERRORI18nMissing Arg Domain7
Category
I18n
Occurrences
7
Severity
error

Sample message

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

WARNINGSecurityDatabase parameter is not escaped4
Category
Security
Occurrences
4
Severity
warning

Sample message

Unescaped parameter $this->deployTableName used in $wpdb->get_results()

ERRORMaintainabilityfile system operations is writable4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

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

ERRORMaintainabilityfile system operations mkdir4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

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

WARNINGSecurityInput is not validated3
Category
Security
Occurrences
3
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_SERVER['HTTP_HOST']. Check that the array index exists before using it.

ERRORI18nMissing Translators Comment3
Category
I18n
Occurrences
3
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.

ERRORI18nText Domain Mismatch3
Category
I18n
Occurrences
3
Severity
error

Sample message

Mismatched text domain. Expected 'staatic' but got 'staatic_premium'.

WARNINGMaintainabilityDynamic hook name2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "$hookName".

ERRORMaintainabilityparse url parse url2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

parse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.

ERRORSupply ChainHidden files included2
Category
Supply Chain
Occurrences
2
Severity
error

Sample message

Hidden files are not permitted.

ERRORMaintainabilitywp function not compatible with requires wp2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

Function "wp_get_scheduled_event()" requires WordPress 5.1.0, but your plugin minimum supported version is WordPress 5.0.0.

WARNINGI18nDiscouraged text-domain loading1
Category
I18n
Occurrences
1
Severity
warning

Sample message

load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.

WARNINGMaintainabilityDiscouraged PHP function1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The use of function set_time_limit() is discouraged

External Connections

Not analyzed yet.

Score History

First score snapshot

v1.12.4

31

Latest

Findings
615
Errors
420
Warnings
195
Check
2.0.0

Related Plugins

Dam Spam

1k+ active installs

100
DietPress

2k+ active installs

100
Disable Emojis (GDPR friendly)

60k+ active installs

100
Embed Optimizer

50k+ active installs

100
Image Placeholders

60k+ active installs

100
100