PhastPress

PhastPress automatically optimizes your site for the best possible performance.

v3.10Albert PescharUpdated Added 10k+ installs98% rating
29
Score
95
Errors
52
Warnings
+0
Change

Category Scores

Security0
Repo83
Performance100
Maintainability32

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

147 findings

Security

91

8 issue groups

Maintainability

44

16 issue groups

Supply Chain

2

1 issue group

ERRORSecurityException Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '": {$pattern}"'.31
Category
Security
Occurrences
31
Severity
error

Sample message

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

WARNINGSecurityRecommendedProcessing form data without nonce verification.18
Category
Security
Occurrences
18
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$message'.13
Category
Security
Occurrences
13
Severity
error

Sample message

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

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_SERVER['DOCUMENT_ROOT']10
Category
Security
Occurrences
10
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_SERVER['DOCUMENT_ROOT']

WARNINGSecurityMissing Unslash$_SERVER['DOCUMENT_ROOT'] not unslashed before sanitization. Use wp_unslash() or similar10
Category
Security
Occurrences
10
Severity
warning

Sample message

$_SERVER['DOCUMENT_ROOT'] not unslashed before sanitization. Use wp_unslash() or similar

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

Sample message

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

ERRORMaintainabilitymysql PDOAccessing the database directly should be avoided. Please use the $wpdb object and associated functions instead. Found: \PDO.7
Category
Maintainability
Occurrences
7
Severity
error

Sample message

Accessing the database directly should be avoided. Please use the $wpdb object and associated functions instead. Found: \PDO.

WARNINGSecurityInput Not ValidatedDetected usage of a possibly undefined superglobal array index: $_SERVER['DOCUMENT_ROOT']. Check that the array index exists before using it.6
Category
Security
Occurrences
6
Severity
warning

Sample message

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

ERRORMaintainabilityparse url parse urlparse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

parse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.

ERRORMaintainabilityrand mt randmt_rand() is discouraged. Use the far less predictable wp_rand() instead.4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

mt_rand() is discouraged. Use the far less predictable wp_rand() instead.

Show 15 more
ERRORMaintainabilityfile system operations fclose3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fclose().

ERRORMaintainabilityfile system operations mkdir3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: mkdir().

ERRORMaintainabilityunlink unlink3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

unlink() is discouraged. Use wp_delete_file() to delete a file.

ERRORMaintainabilityFound2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

The use of function str_rot13() is forbidden

WARNINGMaintainabilityerror log set error handler2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

set_error_handler() found. Debug code should not normally be used in production.

WARNINGSecurityMissing2
Category
Security
Occurrences
2
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORMaintainabilityfile system operations fopen2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fopen().

ERRORSupply Chainhidden files2
Category
Supply Chain
Occurrences
2
Severity
error

Sample message

Hidden files are not permitted.

ERRORMaintainabilityEcho Found1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Short PHP opening tag used with echo; expected "<?php echo esc_html ..." but found "<?= esc_html ..."

ERRORMaintainabilityNot Allowed1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Use of heredoc syntax (<<<) is not allowed; use standard strings or inline HTML instead

WARNINGMaintainabilityNon Prefixed Constant Found1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;REQUESTS_SILENCE_PSR0_DEPRECATIONS&quot;.

WARNINGMaintainabilityerror log error log1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

error_log() found. Debug code should not normally be used in production.

WARNINGSecurityInput Not Validated Not Sanitized1
Category
Security
Occurrences
1
Severity
warning

Sample message

Detected usage of a non-sanitized, non-validated input variable _SERVER: &quot;:{$_SERVER[&#039;SERVER_PORT&#039;]}&quot;

ERRORMaintainabilitycurl curl errno1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Using cURL functions is highly discouraged. Use wp_remote_get() instead.

ERRORMaintainabilitycurl curl error1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Using cURL functions is highly discouraged. Use wp_remote_get() instead.

Score History

First score snapshot

v3.10

29

Latest

Findings
147
Errors
95
Warnings
52
Check
2.0.0

Related Plugins

Optimization Detective

60k+ active installs

100
Featherweight

10k+ active installs

99
Image Prioritizer

50k+ active installs

99
Machete

7k+ active installs

99
Performance Lab

100k+ active installs

99
Helper Lite for PageSpeed

3k+ active installs

98