YOURLS Link Creator

Creates a custom short URL when saving posts. Requires your own YOURLS install.

v2.1.1Andrew NorcrossUpdated Added 500 installs90% rating
37
Score
196
Errors
39
Warnings
+0
Change

Category Scores

Security0
Repo86
Performance100
Maintainability70

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

235 findings

I18n

121

4 issue groups

Security

80

10 issue groups

Maintainability

30

8 issue groups

Repo Compliance

3

3 issue groups

ERRORI18nText Domain MismatchMismatched text domain. Expected 'yourls-link-creator' but got 'wpyourls'.112
Category
I18n
Occurrences
112
Severity
error

Sample message

Mismatched text domain. Expected 'yourls-link-creator' but got 'wpyourls'.

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

Sample message

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

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<a href=\"$short\" rel=\"$rel\" title=\"$title\">$anchor</a>"'.15
Category
Security
Occurrences
15
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<a href=\"$short\" rel=\"$rel\" title=\"$title\">$anchor</a>"'.

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

Sample message

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

ERRORSecurityQuoted Simple PlaceholderSimple placeholders should not be quoted in the query string in $wpdb->prepare(). Found: '%s'.5
Category
Security
Occurrences
5
Severity
error

Sample message

Simple placeholders should not be quoted in the query string in $wpdb->prepare(). Found: '%s'.

WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;ozh_yourls_shorturl&quot;.5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

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

WARNINGSecurityMissing nonce verificationProcessing form data without nonce verification.5
Category
Security
Occurrences
5
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_POST[&#039;keyword&#039;]5
Category
Security
Occurrences
5
Severity
warning

Sample message

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

WARNINGSecurityRequest data is not unslashed$_POST[&#039;keyword&#039;] not unslashed before sanitization. Use wp_unslash() or similar5
Category
Security
Occurrences
5
Severity
warning

Sample message

$_POST[&#039;keyword&#039;] not unslashed before sanitization. Use wp_unslash() or similar

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.5
Category
I18n
Occurrences
5
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.

Show 15 more
WARNINGMaintainabilityNon-prefixed function4
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: &quot;get_yourls_shortlink&quot;.

WARNINGMaintainabilityDirect Query3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo Caching3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

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

ERRORSecuritySQL query is not prepared3
Category
Security
Occurrences
3
Severity
error

Sample message

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

WARNINGSecurityNonce verification recommended3
Category
Security
Occurrences
3
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORMaintainabilityDeprecated parameter: add_option parameter 33
Category
Maintainability
Occurrences
3
Severity
error

Sample message

The parameter "null" at position #3 of add_option() has been deprecated since WordPress version 2.3.0. Use "" instead.

ERRORI18nMissing Arg Domain3
Category
I18n
Occurrences
3
Severity
error

Sample message

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

WARNINGMaintainabilityNon-prefixed constant2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

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

WARNINGSecuritywp redirect wp redirect2
Category
Security
Occurrences
2
Severity
warning

Sample message

wp_redirect() found. Using wp_safe_redirect(), along with the &quot;allowed_redirect_hosts&quot; filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.

ERRORMaintainabilityOffloaded Content1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Offloading images, js, css, and other scripts to your servers or any remote service is disallowed.

ERRORSecuritySetting is missing a sanitization callback1
Category
Security
Occurrences
1
Severity
error

Sample message

Sanitization missing for register_setting().

ERRORI18nUnordered Placeholders Text1
Category
I18n
Occurrences
1
Severity
error

Sample message

Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$s", but got "%s, %s" in 'Talk to <a href="%s" class="external">@norcross</a> on twitter or visit the <a href="%s" class="external">plugin support forum</a> for bugs or feature requests.'.

ERRORRepo Complianceoutdated tested upto header1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 4.4 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.

WARNINGRepo Complianceplugin header invalid domain path1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

The "Domain Path" header in the plugin file must start with forward slash.

ERRORRepo Complianceplugin header no license1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Missing "License" in Plugin Header. Please update your Plugin Header with a valid GPLv2 (or later) compatible license.

External Connections

Potential connections found in static code analysis.

9 domains

Outbound calls

14

External assets

1

Incoming endpoints

8

Notable Domains

andrewnorcross.com2 · outbound
twitter.com2 · outbound
l.norc.co1 · outbound
paypal.com1 · outbound
yourls.org1 · outbound

Platform / Reference Domains

wordpress.org3 · platform/reference
github.com2 · platform/reference
gnu.org1 · platform/reference

External Asset Domains

paypalobjects.com2 · asset + outbound

Incoming Endpoints

No public endpoints detected.

Admin AJAX endpoints8
wp_ajax_convert_yourlsauthenticated

wp_ajax

wp_ajax_create_yourlsauthenticated

wp_ajax

wp_ajax_delete_yourlsauthenticated

wp_ajax

wp_ajax_import_yourlsauthenticated

wp_ajax

wp_ajax_inline_yourlsauthenticated

wp_ajax

wp_ajax_refresh_yourlsauthenticated

wp_ajax

wp_ajax_stats_yourlsauthenticated

wp_ajax

wp_ajax_status_yourlsauthenticated

wp_ajax

Score History

First score snapshot

v2.1.1

37

Latest

Findings
235
Errors
196
Warnings
39
Check
2.0.0

Relationship Map

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

32 nodes

Related Plugins

Hum

600 active installs

75
Custom Permalink Editor

3k+ active installs

62
WP Custom Author URL

5k+ active installs

47
Bitly's WordPress Plugin

2k+ active installs

35
Easy Affiliate Links

7k+ active installs

30