uninstall.php

Uninstall script for Performance Optimisation.

Source uninstall.php2 min readPart of Performance Optimisation

uninstall.php

Uninstall script for Performance Optimisation.

Lines: 761

function wppo_cleanup_network_files()

function wppo_cleanup_network_files(): void

Clean up network-global filesystem artifacts (runs once per process).

Return: void.

Source: uninstall.php, line 36

function wppo_cleanup_dropin_artifacts()

function wppo_cleanup_dropin_artifacts(): void

Delete advanced-cache backup/tmp siblings (fail-open).

Return: void.

Source: uninstall.php, line 125

function wppo_cleanup_redis_state_files()

function wppo_cleanup_redis_state_files(): void

Delete Redis circuit-breaker sidecar files (fail-open).

Return: void.

Tags: @since 2.2.0

Source: uninstall.php, line 164

function wppo_cleanup_redis_config_htaccess_block()

function wppo_cleanup_redis_config_htaccess_block(): void

Remove the orphan \”WPPO Redis Config\” deny block from wp-content/.htaccess (fail-open).

Return: void.

Tags: @since 2.2.0

Source: uninstall.php, line 246

function wppo_remove_htaccess_rules()

function wppo_remove_htaccess_rules(): void

Remove the wppo_rules marker block from .htaccess (fail-open).

Return: void.

Source: uninstall.php, line 331

function wppo_cleanup_htaccess_artifacts()

function wppo_cleanup_htaccess_artifacts(string $htaccess_file): void

Delete .htaccess backup/tmp siblings (fail-open).

ParameterTypeDefaultDescription
$htaccess_filestring—Absolute path to the .htaccess file.

Return: void.

Source: uninstall.php, line 388

function wppo_clear_scheduled_jobs()

function wppo_clear_scheduled_jobs(): void

Unschedule plugin WP-Cron events and Action Scheduler actions (fail-open).

Return: void.

Tags: @since 2.2.0

Source: uninstall.php, line 419

function wppo_cleanup_site()

function wppo_cleanup_site(bool=true $clean_network_files): void

Clean up plugin data for a single site.

ParameterTypeDefaultDescription
$clean_network_filesbool=true—Whether to clean network-global files.

Return: void.

Source: uninstall.php, line 490

function wppo_delete_directory()

function wppo_delete_directory(string $dir): void

Recursively delete a directory using native PHP (safe for uninstall context).

ParameterTypeDefaultDescription
$dirstring—Absolute path to the directory.

Return: void.

Tags: @since 2.0.0 Symlink guard (is_link) + path-containment guard (WP_CONTENT_DIR prefix + realpath).

Source: uninstall.php, line 653