Custom Post Type Attachment 3.4.6

Does Custom Post Type Attachment 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: 25.98 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 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=2facec2e38
Aspect after-activation
HTTP status 200
Load time 0.287 s
Memory usage 3.55 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.186 s
Memory usage 3.54 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.234 s
Memory usage 3.46 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 1.526 s
Memory usage 5.85 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.358 s0.311 s-0.047 s3.51 MiB3.54 MiB+ 32.4 KiB
/wp-admin/edit.php0.212 s0.199 s-0.013 s3.57 MiB3.6 MiB+ 31.99 KiB
/wp-admin/post-new.php0.850 s0.660 s-0.190 s6.06 MiB6.1 MiB+ 35.06 KiB
/wp-admin/upload.php0.759 s0.380 s-0.379 s3.52 MiB3.54 MiB+ 14.27 KiB
/wp-admin/options-writing.php0.213 s0.200 s-0.013 s3.5 MiB3.52 MiB+ 18.58 KiB
/wp-admin/media-new.php0.277 s0.260 s-0.017 s3.49 MiB3.52 MiB+ 26.77 KiB
/wp-admin/edit-tags.php?taxonomy=category0.183 s0.270 s+0.087 s3.5 MiB3.54 MiB+ 37.45 KiB
/wp-admin/post-new.php?post_type=page0.801 s0.598 s-0.203 s6.05 MiB6.08 MiB+ 30.59 KiB
/wp-admin/options-discussion.php0.329 s0.271 s-0.058 s3.5 MiB3.52 MiB+ 15.7 KiB
/wp-admin/edit-comments.php0.238 s0.228 s-0.010 s3.52 MiB3.54 MiB+ 14.58 KiB
/0.315 s0.210 s-0.105 s3.43 MiB3.46 MiB+ 28.38 KiB
Average 0.412 s0.326 s-0.086 s3.97 MiB4 MiB+ 25.98 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.9%92011522
JavaScript7.0%7513
CSS5.8%6242
PO File1.3%1401
Total 1,071 120 28

PHP Code Analysis | More results »

Lines of code 703
Total complexity 192
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 49
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