Does Apache Password Protect work with WordPress 7.1 and PHP 8.1.12? A smoke test was performed on .
| The plugin could not be activated | |
| 1 | PHP fatal errors |
| No JavaScript exceptions | |
| No resource errors |
No data available.
| WordPress version | 7.1 |
|---|---|
| PHP version | 8.1.12 |
| MySQL version | 10.6.10 |
| PHP memory limit | 512M |
| Last updated | |
|---|---|
| Active installs | 20+ |
| WordPress.org page | https://wordpress.org/plugins/apache-password-protect/ |
| Badges |
|
| URL | /wp-admin/plugins.php?plugin=apache-password-protect%2Fapache-password-protect.php |
|---|---|
| Requested URL | /wp-admin/plugins.php?action=activate&plugin=apache-password-protect%2Fapache-password-protect.php&plugin_status=all&paged=1&s&_wpnonce=994605c632 |
| Aspect | after-activation |
| HTTP status | 200 |
| Load time | 0.581 s |
| Memory usage | 4.24 MiB |
| JS errors | None |
| Resource errors | None |
No benchmark data available.
Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.
| Language | % | Lines of code | Comment lines | Files | |
|---|---|---|---|---|---|
| PHP | 40.7% | 236 | 44 | 2 | |
| PO File | 28.6% | 166 | 777 | 3 | |
| JavaScript | 21.7% | 126 | 13 | 2 | |
| CSS | 9.0% | 52 | 0 | 1 | |
| Total | 580 | 834 | 8 | ||
| Lines of code | 190 |
|---|---|
| Total complexity | 10 |
| Median class complexity | 0.0 |
| Median method complexity | 0.0 |
| Most complex class | — |
| Most complex function | install() |
| Classes | 0 |
|---|---|
| Methods | 0 |
| Functions | 10 |
Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.
No new entries found.
[14-Sep-2026 03:25:37 UTC] PHP Fatal error: Uncaught Error: Undefined constant "DOCUMENT_ROOT" in /wp-content/plugins/apache-password-protect/apache-password-protect.php:21
Stack trace:
#0 /wp-includes/class-wp-hook.php(353): install()
#1 /wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(523): WP_Hook->do_action()
#3 /wp-admin/includes/plugin.php(703): do_action()
#4 /wp-admin/plugins.php(60): activate_plugin()
#5 {main}
thrown in /wp-content/plugins/apache-password-protect/apache-password-protect.php on line 21