Enable CORS 1.0.4

Does Enable CORS work with WordPress 6.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: 11.16 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
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=0a632bb2a8
Aspect after-activation
HTTP status 200
Load time 4.259 s
Memory usage 3.03 MiB
JS errors None
Resource errors None

Settings → Enable CORS

Page screenshot: Settings → Enable CORS
URL /wp-admin/options-general.php?page=enable-cors
Aspect menu-item
HTTP status 200
Load time 0.246 s
Memory usage 3.02 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.246 s
Memory usage 2.98 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.277 s0.227 s-0.050 s3.07 MiB3.09 MiB+ 19.97 KiB
/wp-admin/edit.php0.181 s0.195 s+0.014 s3.1 MiB3.12 MiB+ 19.97 KiB
/wp-admin/post-new.php0.743 s0.921 s+0.178 s5.02 MiB5.04 MiB+ 23.54 KiB
/wp-admin/upload.php0.539 s0.302 s-0.237 s3.02 MiB3.02 MiB+ 2.56 KiB
/wp-admin/options-writing.php0.174 s0.138 s-0.036 s3.01 MiB3 MiB- 10.74 KiB
/wp-admin/media-new.php0.306 s0.182 s-0.124 s2.99 MiB3.01 MiB+ 14.75 KiB
/wp-admin/edit-tags.php?taxonomy=category0.191 s0.177 s-0.014 s3.01 MiB3.02 MiB+ 19.92 KiB
/wp-admin/post-new.php?post_type=page0.596 s0.720 s+0.124 s5.01 MiB5.03 MiB+ 19.13 KiB
/wp-admin/options-discussion.php0.216 s0.221 s+0.005 s3 MiB3 MiB+ 3.3 KiB
/wp-admin/edit-comments.php0.231 s0.199 s-0.032 s3.03 MiB3.03 MiB+ 2.55 KiB
/0.307 s0.216 s-0.091 s2.97 MiB2.98 MiB+ 7.84 KiB
Average 0.342 s0.318 s-0.024 s3.38 MiB3.4 MiB+ 11.16 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
PHP99.1%3451334
JavaScript0.9%301
Total 348 133 5

PHP Code Analysis | More results »

Lines of code 315
Total complexity 47
Median class complexity 23.5
Median method complexity 1.5
Most complex class DevKabir\EnableCors\Plugin
Most complex function DevKabir\EnableCors\Plugin::init()
Classes 2
Methods 16
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