Enable CORS 1.2.3

Does Enable CORS work with WordPress 6.7.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: 14.7 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.7.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

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=c010f3b5d5
Aspect after-activation
HTTP status 200
Load time 0.598 s
Memory usage 3.48 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.345 s
Memory usage 3.48 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.190 s
Memory usage 3.41 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.334 s0.294 s-0.040 s3.48 MiB3.5 MiB+ 22.73 KiB
/wp-admin/edit.php0.204 s0.203 s-0.001 s3.54 MiB3.56 MiB+ 23.04 KiB
/wp-admin/post-new.php0.793 s0.630 s-0.163 s5.92 MiB5.98 MiB+ 55.58 KiB
/wp-admin/upload.php0.565 s0.505 s-0.060 s3.49 MiB3.5 MiB+ 5.63 KiB
/wp-admin/options-writing.php0.231 s0.199 s-0.032 s3.47 MiB3.48 MiB+ 9.63 KiB
/wp-admin/media-new.php0.381 s0.235 s-0.146 s3.46 MiB3.48 MiB+ 17.82 KiB
/wp-admin/edit-tags.php?taxonomy=category0.191 s0.201 s+0.010 s3.47 MiB3.5 MiB+ 28.49 KiB
/wp-admin/post-new.php?post_type=page0.630 s0.603 s-0.027 s5.92 MiB5.97 MiB+ 51.11 KiB
/wp-admin/options-discussion.php0.303 s0.251 s-0.052 s3.47 MiB3.48 MiB+ 6.13 KiB
/wp-admin/edit-comments.php0.413 s0.209 s-0.204 s3.49 MiB3.5 MiB+ 5.63 KiB
/0.350 s0.206 s-0.144 s3.48 MiB3.41 MiB- 64.06 KiB
Average 0.400 s0.321 s-0.078 s3.93 MiB3.94 MiB+ 14.7 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%72042210
Total 720 422 10

PHP Code Analysis | More results »

Lines of code 528
Total complexity 103
Median class complexity 10.5
Median method complexity 1.0
Most complex class Enable\Cors\Helpers\Option
Most complex function Enable\Cors\Helpers\Option::validate()
Classes 6
Methods 44
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