Custom Post Type Attachment 3.4.4

Does Custom Post Type Attachment work with WordPress 5.7 and PHP 7.4.8? 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: 50.45 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 version5.7
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 1,000+
WordPress.org page https://wordpress.org/plugins/custom-post-type-pdf-attachment/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

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=custom-post-type-pdf-attachment%2Fcustom-pdf-attachment.php&plugin_status=all&paged=1&s&_wpnonce=0f1a543e0c
Aspect after-activation
HTTP status 200
Load time 0.281 s
Memory usage 2.83 MiB
JS errors None
Resource errors None

Settings → Custom Post Type Attachment

Page screenshot: Settings → Custom Post Type Attachment
URL /wp-admin/options-general.php?page=custom_pdf_attachment
Aspect menu-item
HTTP status 200
Load time 0.191 s
Memory usage 2.78 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.174 s
Memory usage 2.68 MiB
JS errors None
Resource errors None

Widgets ‹ Test site — WordPress

Page screenshot: Widgets ‹ Test site — WordPress
URL /wp-admin/widgets.php
Aspect new-sidebar-widgets
HTTP status 200
Load time 0.970 s
Memory usage 2.82 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.279 s0.271 s-0.008 s2.82 MiB2.88 MiB+ 58.54 KiB
/wp-admin/edit.php0.195 s0.233 s+0.038 s2.86 MiB2.91 MiB+ 47.65 KiB
/wp-admin/post-new.php0.981 s1.165 s+0.184 s5.02 MiB5.08 MiB+ 55.01 KiB
/wp-admin/upload.php0.513 s0.411 s-0.102 s2.7 MiB2.75 MiB+ 57.09 KiB
/wp-admin/options-writing.php0.169 s0.174 s+0.005 s2.71 MiB2.74 MiB+ 26.32 KiB
/wp-admin/media-new.php0.237 s0.187 s-0.050 s2.67 MiB2.73 MiB+ 57.58 KiB
/wp-admin/edit-tags.php?taxonomy=category0.210 s0.195 s-0.015 s2.77 MiB2.83 MiB+ 59.42 KiB
/wp-admin/post-new.php?post_type=page1.204 s0.687 s-0.517 s5.01 MiB5.06 MiB+ 50.59 KiB
/wp-admin/options-discussion.php0.354 s0.257 s-0.097 s2.68 MiB2.73 MiB+ 58.83 KiB
/wp-admin/edit-comments.php0.229 s0.207 s-0.022 s2.78 MiB2.83 MiB+ 56.77 KiB
/0.267 s0.215 s-0.052 s2.65 MiB2.68 MiB+ 27.13 KiB
Average 0.422 s0.364 s-0.058 s3.15 MiB3.2 MiB+ 50.45 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
PHP85.5%89011521
JavaScript7.2%7513
CSS6.0%6242
PO File1.3%1401
Total 1,041 120 27

PHP Code Analysis | More results »

Lines of code 692
Total complexity 191
Median class complexity 12.0
Median method complexity 2.0
Most complex class Form_Class
Most complex function CPTA_Attachments_Init::save_custom_pdf_attachment_meta_data()
Classes 9
Methods 48
Functions 10

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

Sidebar Widgets 1

ID Name
pdf_attachment_widLatest Attachment Widget

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide the "Custom Post Type Attachment" Admin Menu