SOGO Add Script to Individual Pages Header Footer

Simple plugin to add script to header and footer for individual pages & posts

v3.9SOGOUpdated Added 20k+ installs86% rating
39
Score
74
Errors
40
Warnings
+0
Change

Category Scores

Security0
Repo89
Performance100
Maintainability78

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

114 findings

Security

65

6 issue groups

Maintainability

31

7 issue groups

I18n

16

1 issue group

Repo Compliance

2

2 issue groups

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

Sample message

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

ERRORI18nText Domain MismatchMismatched text domain. Expected 'oh-add-script-header-footer' but got 'oh_add_script'.16
Category
I18n
Occurrences
16
Severity
error

Sample message

Mismatched text domain. Expected 'oh-add-script-header-footer' but got 'oh_add_script'.

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

Sample message

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

ERRORMaintainabilitywp function not compatible with requires wpFunction "delete_term_meta()" requires WordPress 4.4.0, but your plugin minimum supported version is WordPress 3.5.0.14
Category
Maintainability
Occurrences
14
Severity
error

Sample message

Function "delete_term_meta()" requires WordPress 4.4.0, but your plugin minimum supported version is WordPress 3.5.0.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_POST['oh-footer-script']12
Category
Security
Occurrences
12
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST['oh-footer-script']

WARNINGSecurityRequest data is not unslashed$_POST['oh-footer-script'] not unslashed before sanitization. Use wp_unslash() or similar12
Category
Security
Occurrences
12
Severity
warning

Sample message

$_POST['oh-footer-script'] not unslashed before sanitization. Use wp_unslash() or similar

WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "oh_add_script".7
Category
Maintainability
Occurrences
7
Severity
warning

Sample message

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

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

Sample message

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

WARNINGMaintainabilityNon-prefixed classClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: "OHHeaderFooterSetting".2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "OHHeaderFooterSetting".

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

Sample message

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

Show 6 more
WARNINGSecurityMissing nonce verification2
Category
Security
Occurrences
2
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not validated1
Category
Security
Occurrences
1
Severity
warning

Sample message

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

WARNINGMaintainabilityDeprecated function: screen_icon1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

screen_icon() has been deprecated since WordPress version 3.8.0.

WARNINGMaintainabilitymismatched plugin name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin name "SOGO Add Script to Individual Pages Header Footer" is different from the name declared in plugin header "SOGO Add Script Header Footer".

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

Sample message

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

External Connections

Not analyzed yet.

Score History

First score snapshot

v3.9

39

Latest

Findings
114
Errors
74
Warnings
40
Check
2.0.0

Relationship Map

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

29 nodes

Related Plugins

Code Embed

10k+ active installs

100
Header and Footer Scripts

200k+ active installs

99
Speculative Loading

70k+ active installs

99
Web Worker Offloading

10k+ active installs

99
jQuery Updater

20k+ active installs

97
FancyBox

4k+ active installs

96