Enable CORS 2.0.2

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.76 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=dab4dfbd64
Aspect after-activation
HTTP status 200
Load time 0.494 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 0.862 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.205 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.276 s0.251 s-0.025 s3.51 MiB3.53 MiB+ 24.56 KiB
/wp-admin/edit.php0.193 s0.196 s+0.003 s3.57 MiB3.6 MiB+ 24.88 KiB
/wp-admin/post-new.php0.732 s0.629 s-0.103 s6.06 MiB6.1 MiB+ 41.59 KiB
/wp-admin/upload.php0.527 s0.350 s-0.177 s3.52 MiB3.53 MiB+ 7.46 KiB
/wp-admin/options-writing.php0.195 s0.191 s-0.004 s3.5 MiB3.51 MiB+ 11.45 KiB
/wp-admin/media-new.php0.262 s0.375 s+0.113 s3.49 MiB3.51 MiB+ 19.65 KiB
/wp-admin/edit-tags.php?taxonomy=category0.188 s0.235 s+0.047 s3.5 MiB3.53 MiB+ 30.32 KiB
/wp-admin/post-new.php?post_type=page0.576 s0.516 s-0.060 s6.05 MiB6.09 MiB+ 37.11 KiB
/wp-admin/options-discussion.php0.424 s0.279 s-0.145 s3.5 MiB3.51 MiB+ 7.95 KiB
/wp-admin/edit-comments.php0.190 s0.216 s+0.026 s3.52 MiB3.53 MiB+ 7.45 KiB
/0.283 s0.184 s-0.099 s3.44 MiB3.44 MiB+ 4.99 KiB
Average 0.350 s0.311 s-0.039 s3.97 MiB3.99 MiB+ 19.76 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%76143611
Total 761 436 11

PHP Code Analysis | More results »

Lines of code 558
Total complexity 109
Median class complexity 11.0
Median method complexity 1.0
Most complex class Enable\Cors\Helpers\Option
Most complex function Enable\Cors\Helpers\Htaccess::modify()
Classes 7
Methods 47
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