MSN Partner Hub

MSN Partner Hub WordPress plugin is developed by Microsoft. It helps WordPress content creators to share content to MSN directly from their sites.

v2.9microsoftstartUpdated Added 1k+ installs40% rating
54
Score
21
Errors
25
Warnings
+0
Change

Category Scores

Security29
Repo91
Performance96
Maintainability73

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

46 findings

Maintainability

32

12 issue groups

Security

11

7 issue groups

Repo Compliance

2

2 issue groups

Performance

1

1 issue group

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

Sample message

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

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$msn_id'.5
Category
Security
Occurrences
5
Severity
error

Sample message

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

ERRORMaintainabilityShort PHP open tag foundShort PHP opening tag used with echo; expected "<?php echo ! ..." but found "<?= ! ..."4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

Short PHP opening tag used with echo; expected "<?php echo ! ..." but found "<?= ! ..."

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo CachingDirect database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

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

WARNINGMaintainabilityslow db query meta queryDetected usage of meta_query, possible slow query.4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Detected usage of meta_query, possible slow query.

ERRORMaintainabilitydate datedate() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.

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

Sample message

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

WARNINGMaintainabilityMissing VersionResource version not set in call to wp_enqueue_style(). This means new versions of the style may not always be loaded due to browser caching.2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Resource version not set in call to wp_enqueue_style(). This means new versions of the style may not always be loaded due to browser caching.

ERRORSecurityDatabase parameter is not escapedUnescaped parameter $msn_id used in $wpdb->get_results()\n$msn_id used without escaping.1
Category
Security
Occurrences
1
Severity
error

Sample message

Unescaped parameter $msn_id used in $wpdb->get_results()\n$msn_id used without escaping.

Show 12 more
WARNINGSecurityInterpolated SQL is not prepared1
Category
Security
Occurrences
1
Severity
warning

Sample message

Use placeholders and $wpdb-&gt;prepare(); found interpolated variable $msn_id at &quot;SELECT * FROM $wpdb-&gt;postmeta WHERE meta_key=&#039;msn_id&#039; AND meta_value=&#039;$msn_id&#039;&quot;

ERRORSecurityLike Wildcards In Query1
Category
Security
Occurrences
1
Severity
error

Sample message

SQL wildcards for a LIKE query should be passed in through a replacement parameter. Found: LIKE '{%}'.

WARNINGSecurityUnnecessary Prepare1
Category
Security
Occurrences
1
Severity
warning

Sample message

It is not necessary to prepare a query which doesn&#039;t use variable replacement.

WARNINGMaintainabilityslow db query meta key1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Detected usage of meta_key, possible slow query.

WARNINGMaintainabilityNon-prefixed global variable1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

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

WARNINGSecurityNonce verification recommended1
Category
Security
Occurrences
1
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecuritywp redirect wp redirect1
Category
Security
Occurrences
1
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.

WARNINGMaintainabilityNot In Footer1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

In footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.

ERRORPerformanceSuppress Filters suppress filters1
Category
Performance
Occurrences
1
Severity
error

Sample message

Setting `suppress_filters` to `true` is prohibited.

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

Sample message

Tested up to: 6.9 < 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 Compliancereadme parser warnings no short description present1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

The "Short Description" section is missing. An excerpt was generated from your main plugin description.

WARNINGMaintainabilitytrademarked term1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The plugin slug includes a restricted term. Your plugin slug - "microsoft-start" - contains the restricted term "microsoft" and cannot be used to begin your plugin slug. We disallow the use of certain terms in ways that are abused, or potentially infringe on and/or are misleading with regards to trademarks. You may use the term "microsoft" elsewhere in your plugin slug, such as "... for microsoft".

External Connections

Potential connections found in static code analysis.

16 domains

Outbound calls

38

External assets

0

Incoming endpoints

25

Notable Domains

msn.com5 · outbound
git.io4 · outbound
assets.msn.com3 · outbound
int.msn.com3 · outbound
int1.msn.com3 · outbound

Platform / Reference Domains

w3.org4 · platform/reference
github.com1 · platform/reference
gnu.org1 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

/wp-json/microsoft/v1/publish-settingsREST

register_rest_route

/wp-json/microsoft/v1/batch-submit-postsREST

register_rest_route

/wp-json/microsoft/v1/batch-submit-progressREST

register_rest_route

/wp-json/microsoft/v1/clear-batch-submit-progressREST

register_rest_route

/wp-json/microsoft/v1/delete-tokenREST

register_rest_route

/wp-json/microsoft/v1/dismiss-msph-notificationREST

register_rest_route

Score History

First score snapshot

v2.9

54

Latest

Findings
46
Errors
21
Warnings
25
Check
2.0.0

Relationship Map

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

35 nodes

Related Plugins