Add Custom Fields to Media 1.2.5

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

Summary

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

Memory usage: 338.18 bytes
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.4.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=cbafd66c27
Aspect after-activation
HTTP status 200
Load time 0.291 s
Memory usage 3.33 MiB
JS errors None
Resource errors None

Settings → Add Custom Fields to Media Upload

Page screenshot: Settings → Add Custom Fields to Media Upload
URL /wp-admin/options-general.php?page=thisismyurl_add_custom_media_fields
Aspect menu-item
HTTP status 200
Load time 0.191 s
Memory usage 3.31 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.188 s
Memory usage 3.31 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.423 s0.351 s-0.072 s3.38 MiB3.39 MiB+ 12.47 KiB
/wp-admin/edit.php0.282 s0.222 s-0.060 s3.41 MiB3.42 MiB+ 12.47 KiB
/wp-admin/post-new.php0.961 s0.800 s-0.161 s5.46 MiB5.47 MiB+ 16.04 KiB
/wp-admin/upload.php0.683 s0.473 s-0.210 s3.32 MiB3.32 MiB- 4.94 KiB
/wp-admin/options-writing.php0.243 s0.225 s-0.018 s3.32 MiB3.3 MiB- 12.35 KiB
/wp-admin/media-new.php0.366 s0.313 s-0.053 s3.29 MiB3.3 MiB+ 7.25 KiB
/wp-admin/edit-tags.php?taxonomy=category0.223 s0.209 s-0.014 s3.31 MiB3.32 MiB+ 12.42 KiB
/wp-admin/post-new.php?post_type=page0.644 s0.643 s-0.001 s5.45 MiB5.46 MiB+ 15.63 KiB
/wp-admin/options-discussion.php0.375 s0.270 s-0.105 s3.3 MiB3.3 MiB- 4.45 KiB
/wp-admin/edit-comments.php0.268 s0.482 s+0.214 s3.34 MiB3.33 MiB- 4.95 KiB
/0.328 s0.221 s-0.107 s3.36 MiB3.31 MiB- 45.95 KiB
Average 0.436 s0.383 s-0.053 s3.72 MiB3.72 MiB+ 338.18 bytes

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%151931
Total 151 93 1

PHP Code Analysis | More results »

Lines of code 159
Total complexity 29
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function thisismyurl_add_custom_media_fields_do_page()
Classes 0
Methods 0
Functions 11

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 7 lines

[17-Dec-2023 21:18:09 UTC] PHP Deprecated:  Optional parameter $attachment_id declared before required parameter $unique_field_id is implicitly treated as a required parameter in /wp-content/plugins/add-custom-fields-to-media/add-custom-fields-to-media.php on line 35
[17-Dec-2023 21:18:09 UTC] PHP Deprecated:  Optional parameter $attachment_id declared before required parameter $unique_field_id is implicitly treated as a required parameter in /wp-content/plugins/add-custom-fields-to-media/add-custom-fields-to-media.php on line 52
[17-Dec-2023 21:18:09 UTC] PHP Deprecated:  Optional parameter $attachment_id declared before required parameter $unique_field_id is implicitly treated as a required parameter in /wp-content/plugins/add-custom-fields-to-media/add-custom-fields-to-media.php on line 74
[17-Dec-2023 21:18:10 UTC] PHP Warning:  Undefined array key "delete" in /wp-content/plugins/add-custom-fields-to-media/add-custom-fields-to-media.php on line 200
[17-Dec-2023 21:18:16 UTC] PHP Warning:  foreach() argument must be of type array|object, null given in /wp-content/plugins/add-custom-fields-to-media/add-custom-fields-to-media.php on line 94
[17-Dec-2023 21:18:16 UTC] PHP Warning:  foreach() argument must be of type array|object, null given in /wp-content/plugins/add-custom-fields-to-media/add-custom-fields-to-media.php on line 94
[17-Dec-2023 21:18:16 UTC] PHP Warning:  foreach() argument must be of type array|object, null given in /wp-content/plugins/add-custom-fields-to-media/add-custom-fields-to-media.php on line 94
See also: All tests for this plugin, How to Hide the "Media Custom Fields" Admin Menu