Custom Post Type Attachment 3.4.2

Does "Custom Post Type Attachment ( PDF )" work with WordPress 5.6.1 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: 37.7 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.6.1
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=5f0f42cb7f
Aspect after-activation
HTTP status 200
Load time 0.486 s
Memory usage 2.72 MiB
JS errors None
Resource errors None

Settings → Custom Post Type Attachment ( PDF )

Page screenshot: Settings → Custom Post Type Attachment ( PDF )
URL /wp-admin/options-general.php?page=custom_pdf_attachment
Aspect menu-item
HTTP status 200
Load time 0.178 s
Memory usage 2.74 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.214 s
Memory usage 2.64 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.713 s
Memory usage 2.79 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.271 s0.261 s-0.010 s2.79 MiB2.83 MiB+ 34.48 KiB
/wp-admin/edit.php0.183 s0.216 s+0.033 s2.84 MiB2.87 MiB+ 35.69 KiB
/wp-admin/post-new.php0.919 s1.031 s+0.112 s4.94 MiB4.99 MiB+ 54.95 KiB
/wp-admin/upload.php0.506 s0.286 s-0.220 s2.67 MiB2.7 MiB+ 29.4 KiB
/wp-admin/options-writing.php0.229 s0.148 s-0.081 s2.68 MiB2.68 MiB- 1.74 KiB
/wp-admin/media-new.php0.211 s0.156 s-0.055 s2.65 MiB2.67 MiB+ 29.52 KiB
/wp-admin/edit-tags.php?taxonomy=category0.179 s0.285 s+0.106 s2.68 MiB2.77 MiB+ 95.36 KiB
/wp-admin/post-new.php?post_type=page1.154 s0.776 s-0.378 s4.92 MiB4.97 MiB+ 46.53 KiB
/wp-admin/options-discussion.php0.290 s0.306 s+0.016 s2.65 MiB2.68 MiB+ 30.77 KiB
/wp-admin/edit-comments.php0.240 s0.293 s+0.053 s2.75 MiB2.78 MiB+ 28.7 KiB
/0.262 s0.240 s-0.022 s2.61 MiB2.65 MiB+ 31.07 KiB
Average 0.404 s0.363 s-0.041 s3.11 MiB3.14 MiB+ 37.7 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
JavaScript
Language % Lines of code Comment lines Files
PHP83.2%74211617
JavaScript8.7%7813
CSS6.5%5842
PO File1.6%1401
Total 892 121 23

PHP Code Analysis | More results »

Lines of code 603
Total complexity 179
Median class complexity 13.0
Median method complexity 2.0
Most complex class Form_Class
Most complex function CPTA_Attachments_Init::save_custom_pdf_attachment_meta_data()
Classes 8
Methods 44
Functions 9

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