PDF.js Viewer 2.2.1

Does PDFjs Viewer - Embed PDFs work with WordPress 6.6.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: 56.41 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.6.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 20,000+
WordPress.org page https://wordpress.org/plugins/pdfjs-viewer-shortcode/
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=pdfjs-viewer-shortcode%2Fpdfjs-viewer.php&plugin_status=all&paged=1&s&_wpnonce=381a66c113
Aspect after-activation
HTTP status 200
Load time 0.263 s
Memory usage 3.51 MiB
JS errors None
Resource errors None

Settings → PDFjs Viewer

Page screenshot: Settings → PDFjs Viewer
URL /wp-admin/options-general.php?page=pdfjs
Aspect menu-item
HTTP status 200
Load time 0.160 s
Memory usage 3.5 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.198 s
Memory usage 3.41 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.344 s0.293 s-0.051 s3.47 MiB3.49 MiB+ 21.44 KiB
/wp-admin/edit.php0.203 s0.196 s-0.007 s3.54 MiB3.56 MiB+ 22.77 KiB
/wp-admin/post-new.php0.799 s0.622 s-0.177 s5.75 MiB5.9 MiB+ 155.52 KiB
/wp-admin/upload.php0.696 s0.462 s-0.234 s3.49 MiB3.5 MiB+ 7.07 KiB
/wp-admin/options-writing.php0.215 s0.193 s-0.022 s3.41 MiB3.48 MiB+ 68.16 KiB
/wp-admin/media-new.php0.238 s0.231 s-0.007 s3.4 MiB3.48 MiB+ 81.55 KiB
/wp-admin/edit-tags.php?taxonomy=category0.213 s0.220 s+0.007 s3.47 MiB3.5 MiB+ 28.22 KiB
/wp-admin/post-new.php?post_type=page0.585 s0.583 s-0.002 s5.75 MiB5.89 MiB+ 147.1 KiB
/wp-admin/options-discussion.php0.443 s0.237 s-0.206 s3.41 MiB3.48 MiB+ 69.85 KiB
/wp-admin/edit-comments.php0.289 s0.416 s+0.127 s3.49 MiB3.49 MiB+ 5.35 KiB
/0.309 s0.233 s-0.076 s3.4 MiB3.42 MiB+ 13.54 KiB
Average 0.394 s0.335 s-0.059 s3.87 MiB3.93 MiB+ 56.41 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.

JavaScript
Freemarker Template
Language % Lines of code Comment lines Files
JavaScript49.0%35,8593019
Freemarker Template42.6%31,1640111
CSS5.2%3,825282
PHP1.8%1,32710010
HTML0.6%445161
SVG0.4%318960
Markdown0.2%15201
JSON0.1%4502
Sass0.0%1702
Total 73,152 454 198

PHP Code Analysis | More results »

Lines of code 369
Total complexity 50
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function pdfjs_options_page()
Classes 0
Methods 0
Functions 14

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

The log file is empty.

See also: All tests for this plugin, How to Hide the "PDFjs Viewer" Admin Menu