Enable CORS 1.0.2

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=d01a86419b
Aspect after-activation
HTTP status 200
Load time 3.686 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.129 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.172 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.278 s0.318 s+0.040 s3.07 MiB3.09 MiB+ 19.97 KiB
/wp-admin/edit.php0.179 s0.260 s+0.081 s3.1 MiB3.12 MiB+ 19.97 KiB
/wp-admin/post-new.php0.710 s0.877 s+0.167 s5.02 MiB5.04 MiB+ 23.54 KiB
/wp-admin/upload.php0.641 s0.276 s-0.365 s3.02 MiB3.02 MiB+ 2.56 KiB
/wp-admin/options-writing.php0.136 s0.129 s-0.007 s3.01 MiB3 MiB- 10.74 KiB
/wp-admin/media-new.php0.243 s0.204 s-0.039 s2.99 MiB3.01 MiB+ 14.75 KiB
/wp-admin/edit-tags.php?taxonomy=category0.145 s0.154 s+0.009 s3.01 MiB3.02 MiB+ 19.92 KiB
/wp-admin/post-new.php?post_type=page0.582 s0.549 s-0.033 s5.01 MiB5.03 MiB+ 19.13 KiB
/wp-admin/options-discussion.php0.198 s0.233 s+0.035 s3 MiB3 MiB+ 3.3 KiB
/wp-admin/edit-comments.php0.181 s0.166 s-0.015 s3.03 MiB3.03 MiB+ 2.55 KiB
/0.298 s0.149 s-0.149 s2.97 MiB2.98 MiB+ 7.84 KiB
Average 0.326 s0.301 s-0.025 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%3441334
JavaScript0.9%301
Total 347 133 5

PHP Code Analysis | More results »

Lines of code 314
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