PDF.js Viewer 2.2

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: 51.63 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=162d7456ff
Aspect after-activation
HTTP status 200
Load time 0.220 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.165 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.201 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.347 s0.263 s-0.084 s3.47 MiB3.49 MiB+ 21.44 KiB
/wp-admin/edit.php0.210 s0.170 s-0.040 s3.54 MiB3.56 MiB+ 22.77 KiB
/wp-admin/post-new.php0.739 s0.648 s-0.091 s5.75 MiB5.9 MiB+ 155.52 KiB
/wp-admin/upload.php0.504 s0.458 s-0.046 s3.49 MiB3.5 MiB+ 7.07 KiB
/wp-admin/options-writing.php0.188 s0.242 s+0.054 s3.41 MiB3.48 MiB+ 68.16 KiB
/wp-admin/media-new.php0.213 s0.241 s+0.028 s3.4 MiB3.48 MiB+ 81.55 KiB
/wp-admin/edit-tags.php?taxonomy=category0.184 s0.211 s+0.027 s3.47 MiB3.5 MiB+ 28.22 KiB
/wp-admin/post-new.php?post_type=page0.553 s0.573 s+0.020 s5.75 MiB5.89 MiB+ 147.1 KiB
/wp-admin/options-discussion.php0.207 s0.218 s+0.011 s3.41 MiB3.48 MiB+ 69.85 KiB
/wp-admin/edit-comments.php0.249 s0.188 s-0.061 s3.49 MiB3.49 MiB+ 5.35 KiB
/0.300 s0.206 s-0.094 s3.45 MiB3.42 MiB- 39.09 KiB
Average 0.336 s0.311 s-0.025 s3.87 MiB3.93 MiB+ 51.63 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
JavaScript71.1%91,49437311
Freemarker Template24.2%31,1080111
CSS3.0%3,806282
PHP1.0%1,32710010
HTML0.3%445161
SVG0.2%318960
Markdown0.1%14901
JSON0.0%4502
Sass0.0%1702
Total 128,709 526 200

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