Prevent Direct Access 2.3.4

Does Prevent Direct Access work with WordPress 4.9.2 and PHP 7.0.16? A smoke test was performed on .

Summary

Errors
3PHP notices
134Unrecognized messages in the PHP error log
No JavaScript exceptions
All test pages loaded successfully
2Resource errors (CSS, JS, images, fonts and so on.)
  • 2 404 Not Found
Performance

Memory usage: 117.19 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version4.9.2
PHP version7.0.16
MySQL version5.7.17
PHP memory limit256M
Plugin Info
Last updated
Active installs 10,000+
WordPress.org page https://wordpress.org/plugins/prevent-direct-access/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=
Requested URL /wp-admin/plugins.php?action=activate&plugin=prevent-direct-access%2Fprevent-direct-access.php&plugin_status=all&paged=1&s&_wpnonce=b4be0cae26
Aspect after-activation
HTTP status 200 OK
Load time 0.190 s
Memory usage 3.16 MiB
JS errors None
Resource errors
[
    {
        "errorCode": 5,
        "errorString": "Operation canceled",
        "status": 404,
        "statusText": "Not Found",
        "url": "[testSite]/wp-content/plugins/prevent-direct-access/includes/css/pda.css?ver=4.9.2"
    }
]

Prevent Direct Access

Page screenshot: Prevent Direct Access
URL /wp-admin/admin.php?page=wp_pda_settings_options
Aspect menu-item
HTTP status 200 OK
Load time 0.040 s
Memory usage 3.25 MiB
JS errors None
Resource errors
[
    {
        "errorCode": 5,
        "errorString": "Operation canceled",
        "status": 404,
        "statusText": "Not Found",
        "url": "[testSite]/wp-content/plugins/prevent-direct-access/includes/css/pda.css?ver=4.9.2"
    }
]

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200 OK
Load time 0.117 s
Memory usage 2.81 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.139 s0.052 s-0.087 s2.97 MiB3.12 MiB+ 144.4 KiB
/wp-admin/edit.php0.108 s0.046 s-0.062 s3 MiB3.12 MiB+ 121.2 KiB
/wp-admin/post-new.php0.187 s0.092 s-0.095 s3.07 MiB3.2 MiB+ 137.39 KiB
/wp-admin/upload.php0.105 s0.052 s-0.053 s2.9 MiB3 MiB+ 98.13 KiB
/wp-admin/options-writing.php0.088 s0.055 s-0.033 s2.89 MiB3 MiB+ 106.26 KiB
/wp-admin/media-new.php0.055 s0.035 s-0.020 s2.88 MiB3 MiB+ 115.37 KiB
/wp-admin/edit-tags.php?taxonomy=category0.091 s0.038 s-0.053 s2.92 MiB3 MiB+ 76.53 KiB
/wp-admin/post-new.php?post_type=page0.187 s0.057 s-0.130 s3.07 MiB3.21 MiB+ 137.39 KiB
/wp-admin/options-discussion.php0.078 s0.045 s-0.033 s2.89 MiB3 MiB+ 111.17 KiB
/wp-admin/edit-comments.php0.075 s0.079 s+0.004 s2.93 MiB3.06 MiB+ 139.84 KiB
/0.082 s0.108 s+0.026 s2.71 MiB2.81 MiB+ 101.39 KiB
Average 0.109 s0.060 s-0.049 s2.93 MiB3.04 MiB+ 117.19 KiB

Additions

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.

Database Tables 1

Options wp_options 3

PHP Error Log 138 lines

[24-Jan-2018 07:46:42 UTC] Installed ver: 1.0
[24-Jan-2018 07:46:42 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:42 UTC]  Different 
[24-Jan-2018 07:46:42 UTC] Installed ver: 1.1
[24-Jan-2018 07:46:42 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:42 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:42 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:42 UTC] 1
[24-Jan-2018 07:46:42 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:42 UTC] Installed ver: 1.2
[24-Jan-2018 07:46:42 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:43 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:43 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:43 UTC]  Same 
[24-Jan-2018 07:46:43 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:43 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:43 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:43 UTC]  Same 
[24-Jan-2018 07:46:43 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:43 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:43 UTC]  Same 
[24-Jan-2018 07:46:43 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:43 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:43 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:43 UTC]  Same 
[24-Jan-2018 07:46:43 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:43 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:43 UTC]  Same 
[24-Jan-2018 07:46:44 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:44 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:44 UTC]  Same 
[24-Jan-2018 07:46:44 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:44 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:44 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:44 UTC]  Same 
[24-Jan-2018 07:46:44 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:44 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:44 UTC]  Same 
[24-Jan-2018 07:46:44 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:44 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:44 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:44 UTC]  Same 
[24-Jan-2018 07:46:44 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:44 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:44 UTC]  Same 
[24-Jan-2018 07:46:44 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:44 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:44 UTC]  Same 
[24-Jan-2018 07:46:44 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:44 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:44 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:44 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:44 UTC]  Same 
[24-Jan-2018 07:46:45 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:45 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:45 UTC]  Same 
[24-Jan-2018 07:46:45 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:45 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:45 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:45 UTC] 1
[24-Jan-2018 07:46:45 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:45 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:45 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:45 UTC]  Same 
[24-Jan-2018 07:46:45 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:45 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:45 UTC]  Same 
[24-Jan-2018 07:46:45 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:45 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:45 UTC]  Same 
[24-Jan-2018 07:46:45 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:45 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:45 UTC] PHP Notice:  Use of undefined constant html - assumed 'html' in /wp-content/plugins/prevent-direct-access/prevent-direct-access.php on line 72
[24-Jan-2018 07:46:45 UTC] PHP Notice:  Use of undefined constant html - assumed 'html' in /wp-content/plugins/prevent-direct-access/prevent-direct-access.php on line 72
[24-Jan-2018 07:46:45 UTC] PHP Notice:  Use of undefined constant html - assumed 'html' in /wp-content/plugins/prevent-direct-access/prevent-direct-access.php on line 72
[24-Jan-2018 07:46:45 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:45 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:45 UTC]  Same 
[24-Jan-2018 07:46:45 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:45 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:45 UTC]  Same 
[24-Jan-2018 07:46:45 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:45 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:45 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:45 UTC]  Same 
[24-Jan-2018 07:46:45 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:45 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:45 UTC]  Same 
[24-Jan-2018 07:46:45 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:45 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:45 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:45 UTC]  Same 
[24-Jan-2018 07:46:46 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:46 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:46 UTC]  Same 
[24-Jan-2018 07:46:46 UTC] .htaccess is writeable: 1
[24-Jan-2018 07:46:46 UTC] Installed ver: 1.3
[24-Jan-2018 07:46:46 UTC] Jal db ver: 1.0
[24-Jan-2018 07:46:46 UTC]  Same 
[24-Jan-2018 07:46:46 UTC] Installed ver: 1.3

(+38 more lines)
See also: All tests for this plugin, How to Hide Prevent Direct Access Admin Menus