Get caching and more with this powerful cache plugin. Cache, optimize images, clean your database and minify for maximum performance.
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
Maintainability
738
19 issue groups
Security
34
2 issue groups
I18n
1
1 issue group
Repo Compliance
1
1 issue group
WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$activate_url".233
- Category
- Maintainability
- Occurrences
- 233
- Severity
- warning
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$activate_url".
WARNINGMaintainabilityNon Prefixed Hookname FoundHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "'wp_optimize_admin_after_page_'.$page".221
- Category
- Maintainability
- Occurrences
- 221
- Severity
- warning
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "'wp_optimize_admin_after_page_'.$page".
WARNINGMaintainabilityNon Prefixed Class FoundClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: "Re_Smush_It_Task".87
- Category
- Maintainability
- Occurrences
- 87
- Severity
- warning
Sample message
Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "Re_Smush_It_Task".
WARNINGMaintainabilityNon Prefixed Function FoundFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "WP_Optimize".66
- Category
- Maintainability
- Occurrences
- 66
- Severity
- warning
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "WP_Optimize".
WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.39
- Category
- Maintainability
- Occurrences
- 39
- 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().39
- Category
- Maintainability
- Occurrences
- 39
- Severity
- warning
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
WARNINGSecurityUnescaped DBParameterUnescaped parameter $options_table_sql used in $wpdb->get_var()\n$options_table_sql assigned unsafely at line 439.31
- Category
- Security
- Occurrences
- 31
- Severity
- warning
Sample message
Unescaped parameter $options_table_sql used in $wpdb->get_var()\n$options_table_sql assigned unsafely at line 439.
WARNINGMaintainabilityNon Prefixed Constant FoundGlobal constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "MAX_FILE_SIZE".21
- Category
- Maintainability
- Occurrences
- 21
- Severity
- warning
Sample message
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "MAX_FILE_SIZE".
WARNINGMaintainabilityNot In FooterIn 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.15
- Category
- Maintainability
- Occurrences
- 15
- 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.
ERRORMaintainabilitywp function not compatible with requires wpFunction "current_datetime()" requires WordPress 5.3.0, but your plugin minimum supported version is WordPress 4.9.0.4
- Category
- Maintainability
- Occurrences
- 4
- Severity
- error
Sample message
Function "current_datetime()" requires WordPress 5.3.0, but your plugin minimum supported version is WordPress 4.9.0.
Show 13 moreShow less
WARNINGSecuritywp redirect wp redirect3
- Category
- Security
- Occurrences
- 3
- Severity
- warning
Sample message
wp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" 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.
WARNINGMaintainabilitytrademarked term3
- Category
- Maintainability
- Occurrences
- 3
- Severity
- warning
Sample message
The plugin name includes a restricted term. Your chosen plugin name - "WP-Optimize - Clean, Compress, Cache" - contains the restricted term "wp" which cannot be used at all in your plugin name.
WARNINGMaintainabilityslow db query meta query2
- Category
- Maintainability
- Occurrences
- 2
- Severity
- warning
Sample message
Detected usage of meta_query, possible slow query.
WARNINGI18nload plugin textdomain Found1
- Category
- I18n
- Occurrences
- 1
- Severity
- warning
Sample message
load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.
ERRORMaintainabilityPlugin Directory Write1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- error
Sample message
Plugin folders are deleted when upgraded. Do not save data to the plugin folder using file_put_contents(). Detected usage of constant WP_CONTENT_DIR. Use wp_upload_dir() to get the uploads directory path or save to the database instead.
WARNINGMaintainabilitySchema Change1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
Attempting a database schema change is discouraged.
WARNINGMaintainabilityslow db query meta key1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
Detected usage of meta_key, possible slow query.
WARNINGMaintainabilityslow db query meta value1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
Detected usage of meta_value, possible slow query.
WARNINGMaintainabilityNon Prefixed Interface Found1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
Interfaces declared by a theme/plugin should start with the theme/plugin prefix. Found: "WP_Optimize_Table_Interface".
WARNINGMaintainabilityNon Prefixed Trait Found1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
Traits declared by a theme/plugin should start with the theme/plugin prefix. Found: "WP_Optimize_HTTP_Error_Codes_Trait".
WARNINGMaintainabilitymismatched plugin name1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
Plugin name "WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance" is different from the name declared in plugin header "WP-Optimize - Clean, Compress, Cache".
WARNINGMaintainabilitymissing composer json file1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
The "/vendor" directory using composer exists, but "composer.json" file is missing.
WARNINGRepo Compliancereadme parser warnings too many tags1
- Category
- Repo Compliance
- Occurrences
- 1
- Severity
- warning
Sample message
One or more tags were ignored. Please limit your plugin to 5 tags.
Score History
First score snapshot
v4.5.5
56
Latest
- Findings
- 774
- Errors
- 5
- Warnings
- 769
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 56 | 774 | 5 | 769 | v4.5.5 | 2.0.0 |