Templ Optimizer

Optimize your site and improve its performance with a few clicks.

v2.1.2TemplUpdated Added 1k+ installs100% rating
72
Score
6
Errors
63
Warnings
+0
Change

Category Scores

Security60
Repo89
Performance100
Maintainability80

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

69 findings

Maintainability

57

7 issue groups

Security

10

3 issue groups

Repo Compliance

2

2 issue groups

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.24
Category
Maintainability
Occurrences
24
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().24
Category
Maintainability
Occurrences
24
Severity
warning

Sample message

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

WARNINGSecurityInterpolated SQL is not preparedUse placeholders and $wpdb->prepare(); found interpolated variable {$table_name} at "ALTER TABLE {$table_name} ENGINE=InnoDB"5
Category
Security
Occurrences
5
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable {$table_name} at "ALTER TABLE {$table_name} ENGINE=InnoDB"

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

Sample message

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

WARNINGSecurityDatabase parameter is not escapedUnescaped parameter $table_name used in $wpdb->query()\n$table_name assigned unsafely at line 101.3
Category
Security
Occurrences
3
Severity
warning

Sample message

Unescaped parameter $table_name used in $wpdb->query()\n$table_name assigned unsafely at line 101.

ERRORSecurityDatabase parameter is not escapedUnescaped parameter $transient_name used in $wpdb->query()\n$transient_name assigned unsafely at line 154.2
Category
Security
Occurrences
2
Severity
error

Sample message

Unescaped parameter $transient_name used in $wpdb->query()\n$transient_name assigned unsafely at line 154.

WARNINGMaintainabilitySchema ChangeAttempting a database schema change is discouraged.2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Attempting a database schema change is discouraged.

ERRORMaintainabilitydate datedate() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.1
Category
Maintainability
Occurrences
1
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: "hosted_by_templ".1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "hosted_by_templ".

ERRORMaintainabilityNon Enqueued ScriptScripts must be registered/enqueued via wp_enqueue_script()1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Scripts must be registered/enqueued via wp_enqueue_script()

Show 2 more
ERRORRepo Compliancelicense mismatch1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Your plugin has a different license declared in the readme file and plugin header. Please update your readme with a valid GPL license identifier.

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

Sample message

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

External Connections

Potential connections found in static code analysis.

6 domains

Outbound calls

22

External assets

0

Incoming endpoints

3

Notable Domains

templ.io3 · outbound
help.templ.io1 · outbound
vuejs.org1 · outbound

Platform / Reference Domains

w3.org15 · platform/reference
gnu.org1 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

/wp-json/templ-optimizer/v1/get/REST

register_rest_route

/wp-json/templ-optimizer/v1/optimize-db/(?P<tool>.*)REST

register_rest_route

/wp-json/templ-optimizer/v1/set/REST

register_rest_route

Score History

First score snapshot

v2.1.2

72

Latest

Findings
69
Errors
6
Warnings
63
Check
2.0.0

Relationship Map

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

32 nodes

Related Plugins

DietPress

2k+ active installs

100
Disable Emojis (GDPR friendly)

60k+ active installs

100
Embed Optimizer

50k+ active installs

100
Image Placeholders

60k+ active installs

100
100
Memory Limit Manager

400 active installs

100