Enable CORS 2.0.0

Does Enable CORS work with WordPress 6.8.1 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: 19.13 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.8.1
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

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=enable-cors%2Fenable-cors.php&plugin_status=all&paged=1&s&_wpnonce=5272c60669
Aspect after-activation
HTTP status 200
Load time 0.370 s
Memory usage 3.54 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 1.072 s
Memory usage 3.51 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.255 s
Memory usage 3.44 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.362 s0.298 s-0.064 s3.51 MiB3.53 MiB+ 23.51 KiB
/wp-admin/edit.php0.249 s0.198 s-0.051 s3.57 MiB3.59 MiB+ 23.82 KiB
/wp-admin/post-new.php0.896 s0.621 s-0.275 s6.06 MiB6.1 MiB+ 40.51 KiB
/wp-admin/upload.php0.863 s0.387 s-0.476 s3.52 MiB3.53 MiB+ 6.41 KiB
/wp-admin/options-writing.php0.208 s0.189 s-0.019 s3.5 MiB3.51 MiB+ 10.41 KiB
/wp-admin/media-new.php0.290 s0.297 s+0.007 s3.49 MiB3.51 MiB+ 18.6 KiB
/wp-admin/edit-tags.php?taxonomy=category0.197 s0.206 s+0.009 s3.5 MiB3.53 MiB+ 29.27 KiB
/wp-admin/post-new.php?post_type=page0.758 s0.635 s-0.123 s6.05 MiB6.09 MiB+ 36.03 KiB
/wp-admin/options-discussion.php0.698 s0.296 s-0.402 s3.5 MiB3.51 MiB+ 6.91 KiB
/wp-admin/edit-comments.php0.268 s0.187 s-0.081 s3.52 MiB3.53 MiB+ 6.41 KiB
/0.359 s0.208 s-0.151 s3.43 MiB3.44 MiB+ 8.56 KiB
Average 0.468 s0.320 s-0.148 s3.97 MiB3.99 MiB+ 19.13 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%75443011
Total 754 430 11

PHP Code Analysis | More results »

Lines of code 556
Total complexity 108
Median class complexity 10.0
Median method complexity 1.0
Most complex class Enable\Cors\Helpers\Option
Most complex function Enable\Cors\Helpers\Htaccess::modify()
Classes 7
Methods 46
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 2

PHP Error Log

The log file is empty.

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