WordPress Importer

Import posts, pages, comments, custom fields, categories, tags and more from a WordPress export file.

v0.9.5WordPress.orgUpdated Added 2m+ installs62% rating0% support resolved
25
Score
238
Errors
110
Warnings
+0
Change

Category Scores

Security0
Repo88
Performance100
Maintainability8

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

348 findings

Maintainability

167

18 issue groups

Security

132

5 issue groups

I18n

34

2 issue groups

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Since $package $version: "'.75
Category
Security
Occurrences
75
Severity
error

Sample message

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

WARNINGMaintainabilityNon Prefixed Namespace FoundNamespaces declared by a theme/plugin should start with the theme/plugin prefix. Found: "Psr\EventDispatcher".37
Category
Maintainability
Occurrences
37
Severity
warning

Sample message

Namespaces declared by a theme/plugin should start with the theme/plugin prefix. Found: "Psr\EventDispatcher".

ERRORSecurityException Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$base'.37
Category
Security
Occurrences
37
Severity
error

Sample message

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

WARNINGMaintainabilityNon Prefixed Hookname FoundHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "import_allow_create_users".28
Category
Maintainability
Occurrences
28
Severity
warning

Sample message

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

ERRORMaintainabilitywp function not compatible with requires wpFunction "_wp_has_noncharacters_fallback()" requires WordPress 6.9.0, but your plugin minimum supported version is WordPress 5.2.0.20
Category
Maintainability
Occurrences
20
Severity
error

Sample message

Function "_wp_has_noncharacters_fallback()" requires WordPress 6.9.0, but your plugin minimum supported version is WordPress 5.2.0.

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

Sample message

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

ERRORI18nMissing Arg DomainMissing $domain parameter in function call to __().17
Category
I18n
Occurrences
17
Severity
error

Sample message

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

ERRORI18nMissing Translators CommentA 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.17
Category
I18n
Occurrences
17
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.

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

Sample message

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

WARNINGMaintainabilityerror log var exportvar_export() found. Debug code should not normally be used in production.8
Category
Maintainability
Occurrences
8
Severity
warning

Sample message

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

Show 15 more
ERRORMaintainabilityfile system operations fclose8
Category
Maintainability
Occurrences
8
Severity
error

Sample message

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

ERRORMaintainabilityFound7
Category
Maintainability
Occurrences
7
Severity
error

Sample message

The "goto" language construct should not be used.

ERRORMaintainabilityunlink unlink7
Category
Maintainability
Occurrences
7
Severity
error

Sample message

unlink() is discouraged. Use wp_delete_file() to delete a file.

WARNINGSecurityMissing6
Category
Security
Occurrences
6
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORMaintainabilityFound5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

Do not use Localhost/127.0.0.1/*.local in your code. Found: http://localhost/

ERRORMaintainabilityfile system operations fopen5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

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

WARNINGMaintainabilityNon Prefixed Constant Found4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

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

WARNINGMaintainabilityNon Prefixed Function Found4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "addslashes_strings_only".

ERRORMaintainabilityNot Allowed3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

Use of heredoc syntax (<<<) is not allowed; use standard strings or inline HTML instead

WARNINGMaintainabilityDirect Query3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilitytrademarked term3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

The plugin name includes a restricted term. Your chosen plugin name - "WordPress Importer" - contains the restricted term "wordpress" which cannot be used at all in your plugin name.

WARNINGMaintainabilityNo Caching2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().

WARNINGMaintainabilityNon Prefixed Variable Found2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

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

WARNINGMaintainabilityerror log trigger error2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

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

WARNINGSecurityInput Not Sanitized2
Category
Security
Occurrences
2
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST[&#039;imported_authors&#039;]

Score History

First score snapshot

v0.9.5

25

Latest

Findings
348
Errors
238
Warnings
110
Check
2.0.0

Related Plugins

Widget Importer & Exporter

200k+ active installs

98
WP Options Importer

6k+ active installs

96
Mystery Themes Demo Importer

7k+ active installs

95
WPML to Polylang

6k+ active installs

90