Add Custom Fields To Media 2.0.1

Does Add Custom Fields To Media work with WordPress 6.5.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
3PHP warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 12.68 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.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 90+
WordPress.org page https://wordpress.org/plugins/add-custom-fields-to-media/
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=add-custom-fields-to-media%2Fadd-custom-fields-to-media.php&plugin_status=all&paged=1&s&_wpnonce=6db004f016
Aspect after-activation
HTTP status 200
Load time 0.243 s
Memory usage 3.4 MiB
JS errors None
Resource errors None

Settings → Media Custom Fields

Page screenshot: Settings → Media Custom Fields
URL /wp-admin/options-general.php?page=add-custom-fields-to-media
Aspect menu-item
HTTP status 200
Load time 0.209 s
Memory usage 3.43 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.167 s
Memory usage 3.38 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.336 s0.300 s-0.036 s3.44 MiB3.46 MiB+ 19.8 KiB
/wp-admin/edit.php0.184 s0.181 s-0.003 s3.46 MiB3.48 MiB+ 20.17 KiB
/wp-admin/post-new.php0.803 s0.540 s-0.263 s5.59 MiB5.62 MiB+ 24.8 KiB
/wp-admin/upload.php0.621 s0.417 s-0.204 s3.38 MiB3.38 MiB+ 2.77 KiB
/wp-admin/options-writing.php0.194 s0.178 s-0.016 s3.37 MiB3.37 MiB- 5.27 KiB
/wp-admin/media-new.php0.268 s0.192 s-0.076 s3.35 MiB3.37 MiB+ 14.95 KiB
/wp-admin/edit-tags.php?taxonomy=category0.178 s0.183 s+0.005 s3.37 MiB3.39 MiB+ 20.13 KiB
/wp-admin/post-new.php?post_type=page0.514 s0.518 s+0.004 s5.59 MiB5.61 MiB+ 20.38 KiB
/wp-admin/options-discussion.php0.210 s0.414 s+0.204 s3.36 MiB3.36 MiB+ 3.26 KiB
/wp-admin/edit-comments.php0.453 s0.213 s-0.240 s3.39 MiB3.39 MiB+ 2.76 KiB
/0.332 s0.172 s-0.160 s3.37 MiB3.38 MiB+ 15.73 KiB
Average 0.372 s0.301 s-0.071 s3.79 MiB3.8 MiB+ 12.68 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
CSS
Language % Lines of code Comment lines Files
PHP89.0%34855313
CSS9.7%3801
SVG1.3%501
Total 391 553 15

PHP Code Analysis | More results »

Lines of code 245
Total complexity 55
Median class complexity 9.0
Median method complexity 1.0
Most complex class Add_Custom_Fields_To_Media_Admin
Most complex function Add_Custom_Fields_To_Media_Public::display_custom_media_field()
Classes 7
Methods 29
Functions 6

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.

No new entries found.

PHP Error Log 3 lines

[15-Apr-2024 17:21:27 UTC] PHP Warning:  foreach() argument must be of type array|object, null given in /wp-content/plugins/add-custom-fields-to-media/admin/class-add-custom-fields-to-media-admin.php on line 134
[15-Apr-2024 17:21:27 UTC] PHP Warning:  foreach() argument must be of type array|object, null given in /wp-content/plugins/add-custom-fields-to-media/admin/class-add-custom-fields-to-media-admin.php on line 134
[15-Apr-2024 17:21:27 UTC] PHP Warning:  foreach() argument must be of type array|object, null given in /wp-content/plugins/add-custom-fields-to-media/admin/class-add-custom-fields-to-media-admin.php on line 134
See also: All tests for this plugin, How to Hide the "Media Custom Fields" Admin Menu