Enable CORS 1.2.2

Does Enable CORS work with WordPress 6.5.4 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.07 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.5.4
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=79bf7b101d
Aspect after-activation
HTTP status 200
Load time 0.553 s
Memory usage 3.36 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.332 s
Memory usage 3.36 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.201 s
Memory usage 3.37 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.383 s0.333 s-0.050 s3.44 MiB3.46 MiB+ 21.94 KiB
/wp-admin/edit.php0.223 s0.212 s-0.011 s3.46 MiB3.48 MiB+ 21.94 KiB
/wp-admin/post-new.php0.972 s0.623 s-0.349 s5.59 MiB5.64 MiB+ 54.86 KiB
/wp-admin/upload.php0.555 s0.428 s-0.127 s3.38 MiB3.38 MiB+ 5.27 KiB
/wp-admin/options-writing.php0.223 s0.212 s-0.011 s3.37 MiB3.37 MiB- 3.51 KiB
/wp-admin/media-new.php0.308 s0.267 s-0.041 s3.35 MiB3.37 MiB+ 17.45 KiB
/wp-admin/edit-tags.php?taxonomy=category0.204 s0.212 s+0.008 s3.37 MiB3.39 MiB+ 21.89 KiB
/wp-admin/post-new.php?post_type=page0.612 s0.613 s+0.001 s5.59 MiB5.63 MiB+ 50.45 KiB
/wp-admin/options-discussion.php0.256 s0.273 s+0.017 s3.36 MiB3.36 MiB+ 5.02 KiB
/wp-admin/edit-comments.php0.226 s0.211 s-0.015 s3.39 MiB3.4 MiB+ 4.56 KiB
/0.550 s0.174 s-0.376 s3.42 MiB3.37 MiB- 45.07 KiB
Average 0.410 s0.323 s-0.087 s3.79 MiB3.81 MiB+ 14.07 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%68537910
Total 685 379 10

PHP Code Analysis | More results »

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