Cloudflare 4.12.1

Does Cloudflare work with WordPress 6.2.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
2PHP warnings
2PHP deprecation warnings
1JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 29.8 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 version6.2.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 200,000+
WordPress.org page https://wordpress.org/plugins/cloudflare/
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?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=cloudflare%2Fcloudflare.php&plugin_status=all&paged=1&s&_wpnonce=55aa53a374
Aspect after-activation
HTTP status 200
Load time 0.232 s
Memory usage 3.05 MiB
JS errors None
Resource errors None

Settings → Cloudflare

Page screenshot: Settings → Cloudflare
URL /wp-admin/options-general.php?page=cloudflare#/
Requested URL /wp-admin/options-general.php?page=cloudflare
Aspect menu-item
HTTP status 200
Load time 0.486 s
Memory usage 3.07 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'success')\n    at i (/wp-content/plugins/cloudflare/compiled.js?ver=4.12.1:15:1721)\n    at Object.callback (/wp-content/plugins/cloudflare/compiled.js?ver=4.12.1:15:1853)\n    at /wp-content/plugins/cloudflare/compiled.js?ver=4.12.1:54:57533\n    at g.callback (/wp-content/plugins/cloudflare/compiled.js?ver=4.12.1:54:63989)\n    at g.<anonymous> (/wp-content/plugins/cloudflare/compiled.js?ver=4.12.1:54:60684)\n    at g.r.emit (/wp-content/plugins/cloudflare/compiled.js?ver=4.12.1:54:67409)\n    at XMLHttpRequest.n.onreadystatechange (/wp-content/plugins/cloudflare/compiled.js?ver=4.12.1:54:64844)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Test site – Just another WordPress site

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

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.290 s0.242 s-0.048 s3.07 MiB3.1 MiB+ 32.52 KiB
/wp-admin/edit.php0.197 s0.197 s+0.000 s3.1 MiB3.13 MiB+ 32.15 KiB
/wp-admin/post-new.php0.958 s0.651 s-0.307 s5.02 MiB5.06 MiB+ 36.88 KiB
/wp-admin/upload.php0.550 s0.475 s-0.075 s3.02 MiB3.03 MiB+ 15.11 KiB
/wp-admin/options-writing.php0.177 s0.163 s-0.014 s3.01 MiB3.01 MiB+ 1.87 KiB
/wp-admin/media-new.php0.349 s0.247 s-0.102 s2.99 MiB3.02 MiB+ 27.3 KiB
/wp-admin/edit-tags.php?taxonomy=category0.187 s0.189 s+0.002 s3.01 MiB3.04 MiB+ 32.47 KiB
/wp-admin/post-new.php?post_type=page0.611 s0.615 s+0.004 s5.01 MiB5.05 MiB+ 32.47 KiB
/wp-admin/options-discussion.php0.230 s0.233 s+0.003 s3 MiB3.01 MiB+ 15.6 KiB
/wp-admin/edit-comments.php0.219 s0.207 s-0.012 s3.03 MiB3.04 MiB+ 15.1 KiB
/0.313 s0.216 s-0.097 s2.97 MiB3.05 MiB+ 86.38 KiB
Average 0.371 s0.312 s-0.059 s3.38 MiB3.41 MiB+ 29.8 KiB

Code Statistics

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.

PHP
JavaScript
SVG
Language % Lines of code Comment lines Files
PHP64.3%3,80595161
JavaScript14.2%843459
SVG11.6%685420
CSS7.7%456443
JSON1.2%7002
Markdown1.0%5802
Total 5,917 1,044 97

PHP Code Analysis | More results »

Lines of code 3,684
Total complexity 549
Median class complexity 7.0
Median method complexity 1.0
Most complex class CF\WordPress\Hooks
Most complex function CF\WordPress\Hooks::purgeCacheByRelevantURLs()
Classes 51
Methods 308
Functions 0

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.

No new entries found.

PHP Error Log 4 lines

[18-Jul-2023 14:15:33 UTC] PHP Warning:  Undefined array key "proxyURLType" in /wp-content/plugins/cloudflare/src/WordPress/Proxy.php on line 86
[18-Jul-2023 14:15:33 UTC] PHP Warning:  Undefined array key "proxyURLType" in /wp-content/plugins/cloudflare/src/WordPress/Proxy.php on line 88
[18-Jul-2023 14:15:33 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-content/plugins/cloudflare/src/API/AbstractAPIClient.php on line 181
[18-Jul-2023 14:15:33 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-content/plugins/cloudflare/src/API/AbstractAPIClient.php on line 181
See also: All tests for this plugin, How to Hide the "Cloudflare" Admin Menu