The most popular gallery plugin that lets you create galleries and albums in seconds.
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
I18n
1,773
2 issue groups
Maintainability
1,058
15 issue groups
Security
225
7 issue groups
Performance
10
1 issue group
ERRORI18nText Domain MismatchMismatched text domain. Expected 'nextgen-gallery' but got ' nggallery'.1,769
- Category
- I18n
- Occurrences
- 1,769
- Severity
- error
Sample message
Mismatched text domain. Expected 'nextgen-gallery' but got ' nggallery'.
WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$HeightHtmlPrev".432
- Category
- Maintainability
- Occurrences
- 432
- Severity
- warning
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$HeightHtmlPrev".
WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "'ngg_ajax_' . $operation".221
- Category
- Maintainability
- Occurrences
- 221
- Severity
- warning
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "'ngg_ajax_' . $operation".
ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;147
- Category
- Maintainability
- Occurrences
- 147
- 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: "A_Custom_Lightbox_Form".121
- Category
- Maintainability
- Occurrences
- 121
- Severity
- warning
Sample message
Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "A_Custom_Lightbox_Form".
ERRORSecurityException output is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$components'.121
- Category
- Security
- Occurrences
- 121
- Severity
- error
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$components'.
WARNINGMaintainabilityNon-prefixed constantGlobal constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "DOING_AJAX".57
- Category
- Maintainability
- Occurrences
- 57
- Severity
- warning
Sample message
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "DOING_AJAX".
WARNINGSecurityDatabase parameter is not escapedUnescaped parameter $exclude_clause used in $wpdb->get_col()\n$exclude_clause assigned unsafely at line 126.26
- Category
- Security
- Occurrences
- 26
- Severity
- warning
Sample message
Unescaped parameter $exclude_clause used in $wpdb->get_col()\n$exclude_clause assigned unsafely at line 126.
ERRORSecuritySQL query is not preparedUse placeholders and $wpdb->prepare(); found $exclude19
- Category
- Security
- Occurrences
- 19
- Severity
- error
Sample message
Use placeholders and $wpdb->prepare(); found $exclude
WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "createNewThumb".19
- Category
- Maintainability
- Occurrences
- 19
- Severity
- warning
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "createNewThumb".
Show 15 moreShow less
WARNINGSecurityInterpolated SQL is not prepared17
- Category
- Security
- Occurrences
- 17
- Severity
- warning
Sample message
Use placeholders and $wpdb->prepare(); found interpolated variable $exclude_clause at "SELECT tt.pid FROM $wpdb->nggallery AS t INNER JOIN $wpdb->nggpictures AS tt ON t.gid = tt.galleryid WHERE t.gid = %d $exclude_clause ORDER BY tt.{$order_by} $order_dir"
ERRORSecurityOutput is not escaped16
- Category
- Security
- Occurrences
- 16
- Severity
- error
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$args'.
WARNINGMaintainabilityerror log error log14
- Category
- Maintainability
- Occurrences
- 14
- Severity
- warning
Sample message
error_log() found. Debug code should not normally be used in production.
WARNINGSecurityInput is not sanitized14
- Category
- Security
- Occurrences
- 14
- Severity
- warning
Sample message
Detected usage of a non-sanitized input variable: $_POST[$field]
WARNINGMaintainabilityABSPATHDetected13
- Category
- Maintainability
- Occurrences
- 13
- Severity
- warning
Sample message
Writing files using ABSPATH may be problematic. Consider using wp_upload_dir() instead if storing user data or generated files.
WARNINGSecurityRequest data is not unslashed12
- Category
- Security
- Occurrences
- 12
- Severity
- warning
Sample message
$_REQUEST[$key] not unslashed before sanitization. Use wp_unslash() or similar
WARNINGPerformancePost Not In exclude10
- Category
- Performance
- Occurrences
- 10
- Severity
- warning
Sample message
Using exclusionary parameters, like exclude, in calls to get_posts() should be done with caution, see https://wpvip.com/documentation/performance-improvements-by-removing-usage-of-post__not_in/ for more information.
ERRORMaintainabilityunlink unlink8
- Category
- Maintainability
- Occurrences
- 8
- Severity
- error
Sample message
unlink() is discouraged. Use wp_delete_file() to delete a file.
WARNINGMaintainabilityslow db query meta key5
- Category
- Maintainability
- Occurrences
- 5
- Severity
- warning
Sample message
Detected usage of meta_key, possible slow query.
WARNINGMaintainabilityDynamic hook name5
- Category
- Maintainability
- Occurrences
- 5
- Severity
- warning
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "$enqueue_action".
WARNINGMaintainabilityDiscouraged PHP function4
- Category
- Maintainability
- Occurrences
- 4
- Severity
- warning
Sample message
The use of function ini_set() is discouraged
WARNINGMaintainabilityerror log print r4
- Category
- Maintainability
- Occurrences
- 4
- Severity
- warning
Sample message
print_r() found. Debug code should not normally be used in production.
ERRORI18nMissing Translators Comment4
- Category
- I18n
- Occurrences
- 4
- 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.
ERRORMaintainabilitybadly named files4
- Category
- Maintainability
- Occurrences
- 4
- Severity
- error
Sample message
File and folder names must not contain spaces or special characters.
ERRORMaintainabilitywp function not compatible with requires wp4
- Category
- Maintainability
- Occurrences
- 4
- Severity
- error
Sample message
Function "str_contains()" requires WordPress 5.9.0, but your plugin minimum supported version is WordPress 5.5.4.
External Connections
Not analyzed yet.
Score History
First score snapshot
v4.2.2
23
Latest
- Findings
- 3,105
- Errors
- 2,119
- Warnings
- 986
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 23 | 3,105 | 2,119 | 986 | v4.2.2 | 2.0.0 |
Relationship Map
Author, categories, issues, domains, and nearby plugins.