Peter’s Post Notes

Add notes to the "edit post" and "edit page" sidebars. Collaborators can also share notes on the WordPress dashboard.

v1.6.5PeterUpdated Added 3k+ installs98% rating
36
Score
224
Errors
102
Warnings
+0
Change

Category Scores

Security0
Repo80
Performance100
Maintainability71

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

326 findings

Security

203

11 issue groups

I18n

63

2 issue groups

Maintainability

55

9 issue groups

Repo Compliance

3

3 issue groups

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

Sample message

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

ERRORI18nText Domain MismatchMismatched text domain. Expected 'peters-post-notes' but got 'peters_post_notes'.62
Category
I18n
Occurrences
62
Severity
error

Sample message

Mismatched text domain. Expected 'peters-post-notes' but got 'peters_post_notes'.

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

Sample message

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

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

Sample message

Use of a direct database call is discouraged.

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

Sample message

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

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

Sample message

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

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

Sample message

Processing form data without nonce verification.

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

Sample message

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

WARNINGSecurityDatabase parameter is not escapedUnescaped parameter $ppn_db_generalnotes used in $wpdb->get_var()\n$ppn_db_generalnotes used without escaping.8
Category
Security
Occurrences
8
Severity
warning

Sample message

Unescaped parameter $ppn_db_generalnotes used in $wpdb->get_var()\n$ppn_db_generalnotes used without escaping.

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_POST['note_id']. Check that the array index exists before using it.7
Category
Security
Occurrences
7
Severity
warning

Sample message

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

Show 15 more
WARNINGSecurityInput is not sanitized6
Category
Security
Occurrences
6
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST['note_text']

WARNINGSecurityRequest data is not unslashed6
Category
Security
Occurrences
6
Severity
warning

Sample message

$_POST['note_text'] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGMaintainabilitySchema Change5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

Attempting a database schema change is discouraged.

WARNINGSecurityInterpolated SQL is not prepared2
Category
Security
Occurrences
2
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $ppn_db_notes at "ALTER TABLE $ppn_db_notes ADD `personal` BOOLEAN NOT NULL DEFAULT '0' AFTER `notetime`"

WARNINGSecurityPlugin menu slug uses __FILE__1
Category
Security
Occurrences
1
Severity
warning

Sample message

Using __FILE__ for menu slugs risks exposing filesystem structure.

ERRORI18nDeprecated parameter: load_plugin_textdomain parameter 21
Category
I18n
Occurrences
1
Severity
error

Sample message

The parameter "PLUGINDIR . '/' . dirname(plugin_basename(__FILE__)) . '/languages'" at position #2 of load_plugin_textdomain() has been deprecated since WordPress version 2.7.0. Use "" instead.

ERRORMaintainabilityDiscouraged WordPress constant usage: PLUGINDIR1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Found usage of constant "PLUGINDIR". Use WP_PLUGIN_DIR instead.

WARNINGMaintainabilityDiscouraged PHP function1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

query_posts() is discouraged. Use WP_Query instead.

WARNINGMaintainabilityMissing Version1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

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

WARNINGMaintainabilityNot In Footer1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

In footer ($in_footer) is not set explicitly wp_register_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.

ERRORMaintainabilityinvalid plugin name1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Plugin name header in your readme is missing or invalid. Please update your readme with a valid plugin name header. Eg: "=== Example Name ==="

ERRORMaintainabilityMissing direct file access protection1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

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

ERRORRepo Complianceno license1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

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

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

Sample message

Tested up to: 5.5 < 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.

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.

Score History

First score snapshot

v1.6.5

36

Latest

Findings
326
Errors
224
Warnings
102
Check
2.0.0

Related Plugins

PufferDesk

0 active installs

100
Redux Framework

900k+ active installs

100
Simply Show Hooks

2k+ active installs

100
Custom Post Exporter

3k+ active installs

99
Header and Footer Scripts

200k+ active installs

99