Enable CORS 1.2.0

Does Enable CORS work with WordPress 6.4.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: 10.35 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.4.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 5,000+
WordPress.org page https://wordpress.org/plugins/enable-cors/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

Enable CORS ‹ Test site — WordPress

Page screenshot: Enable CORS ‹ Test site — WordPress
URL /wp-admin/admin.php?page=enable-cors
Requested URL /wp-admin/plugins.php?action=activate&plugin=enable-cors%2Fenable-cors.php&plugin_status=all&paged=1&s&_wpnonce=51bd2617cd
Aspect after-activation
HTTP status 200
Load time 0.908 s
Memory usage 3.3 MiB
JS errors None
Resource errors None

Enable CORS

Page screenshot: Enable CORS
URL /wp-admin/admin.php?page=enable-cors
Aspect menu-item
HTTP status 200
Load time 0.306 s
Memory usage 3.3 MiB
JS errors None
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.240 s
Memory usage 3.31 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.390 s0.346 s-0.044 s3.38 MiB3.4 MiB+ 21.8 KiB
/wp-admin/edit.php0.225 s0.212 s-0.013 s3.41 MiB3.43 MiB+ 21.8 KiB
/wp-admin/post-new.php0.953 s0.640 s-0.313 s5.46 MiB5.49 MiB+ 32.7 KiB
/wp-admin/upload.php0.796 s0.499 s-0.297 s3.32 MiB3.33 MiB+ 5.13 KiB
/wp-admin/options-writing.php0.241 s0.221 s-0.020 s3.32 MiB3.31 MiB- 3.02 KiB
/wp-admin/media-new.php0.329 s0.324 s-0.005 s3.29 MiB3.31 MiB+ 17.31 KiB
/wp-admin/edit-tags.php?taxonomy=category0.205 s0.205 s+0.000 s3.31 MiB3.33 MiB+ 21.75 KiB
/wp-admin/post-new.php?post_type=page0.647 s0.630 s-0.017 s5.45 MiB5.48 MiB+ 32.28 KiB
/wp-admin/options-discussion.php0.317 s0.314 s-0.003 s3.3 MiB3.31 MiB+ 4.88 KiB
/wp-admin/edit-comments.php0.274 s0.258 s-0.016 s3.34 MiB3.34 MiB+ 4.42 KiB
/0.315 s0.209 s-0.106 s3.36 MiB3.31 MiB- 45.21 KiB
Average 0.427 s0.351 s-0.076 s3.72 MiB3.73 MiB+ 10.35 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
Language % Lines of code Comment lines Files
PHP100.0%5912659
Total 591 265 9

PHP Code Analysis | More results »

Lines of code 432
Total complexity 73
Median class complexity 11.0
Median method complexity 1.0
Most complex class Enable\Cors\Helpers\Htaccess
Most complex function Enable\Cors\Helpers\Htaccess::modify()
Classes 5
Methods 25
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.

Options wp_options 1

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide the "Enable CORS" Admin Menu