PDF.js Viewer 2.2.2

Does PDFjs Viewer - Embed PDFs 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: 16.23 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 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=6d4a3de81c
Aspect after-activation
HTTP status 200
Load time 0.257 s
Memory usage 3.54 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.53 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.182 s
Memory usage 3.45 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.307 s0.300 s-0.007 s3.51 MiB3.53 MiB+ 21.66 KiB
/wp-admin/edit.php0.210 s0.195 s-0.015 s3.57 MiB3.59 MiB+ 22.98 KiB
/wp-admin/post-new.php0.774 s0.666 s-0.108 s6.06 MiB6.09 MiB+ 24.93 KiB
/wp-admin/upload.php0.609 s0.655 s+0.046 s3.52 MiB3.53 MiB+ 7.29 KiB
/wp-admin/options-writing.php0.234 s0.203 s-0.031 s3.5 MiB3.51 MiB+ 9.57 KiB
/wp-admin/media-new.php0.265 s0.197 s-0.068 s3.49 MiB3.51 MiB+ 17.77 KiB
/wp-admin/edit-tags.php?taxonomy=category0.278 s0.177 s-0.101 s3.5 MiB3.53 MiB+ 28.44 KiB
/wp-admin/post-new.php?post_type=page0.600 s0.628 s+0.028 s6.05 MiB6.07 MiB+ 20.45 KiB
/wp-admin/options-discussion.php0.440 s0.398 s-0.042 s3.5 MiB3.51 MiB+ 6.07 KiB
/wp-admin/edit-comments.php0.231 s0.200 s-0.031 s3.52 MiB3.53 MiB+ 5.57 KiB
/0.300 s0.206 s-0.094 s3.43 MiB3.45 MiB+ 13.76 KiB
Average 0.386 s0.348 s-0.038 s3.97 MiB3.99 MiB+ 16.23 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
JavaScript54.1%43,8951,2189
Freemarker Template38.4%31,1640111
CSS4.7%3,825282
PHP1.6%1,32710010
HTML0.5%445161
SVG0.4%318960
Markdown0.2%15401
JSON0.1%4502
Sass0.0%1702
Total 81,190 1,371 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