PDF.js Viewer 2.2.3

Does PDFjs Viewer - Embed PDFs work with WordPress 6.8.2 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.56 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.2
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=9d52efce0b
Aspect after-activation
HTTP status 200
Load time 0.261 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.184 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.179 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.342 s0.289 s-0.053 s3.51 MiB3.53 MiB+ 22.02 KiB
/wp-admin/edit.php0.201 s0.206 s+0.005 s3.57 MiB3.59 MiB+ 23.35 KiB
/wp-admin/post-new.php0.818 s0.681 s-0.137 s6.06 MiB6.09 MiB+ 25.3 KiB
/wp-admin/upload.php0.750 s0.346 s-0.404 s3.52 MiB3.53 MiB+ 7.66 KiB
/wp-admin/options-writing.php0.222 s0.380 s+0.158 s3.5 MiB3.51 MiB+ 9.94 KiB
/wp-admin/media-new.php0.268 s0.243 s-0.025 s3.49 MiB3.51 MiB+ 18.13 KiB
/wp-admin/edit-tags.php?taxonomy=category0.197 s0.189 s-0.008 s3.5 MiB3.53 MiB+ 28.8 KiB
/wp-admin/post-new.php?post_type=page0.611 s0.607 s-0.004 s6.05 MiB6.07 MiB+ 20.82 KiB
/wp-admin/options-discussion.php0.309 s0.331 s+0.022 s3.5 MiB3.51 MiB+ 6.44 KiB
/wp-admin/edit-comments.php0.429 s0.208 s-0.221 s3.52 MiB3.53 MiB+ 5.94 KiB
/0.351 s0.203 s-0.148 s3.43 MiB3.45 MiB+ 13.76 KiB
Average 0.409 s0.335 s-0.074 s3.97 MiB3.99 MiB+ 16.56 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.2%50,4421,29910
Freemarker Template42.6%43,6700112
CSS5.4%5,508282
PHP1.5%1,57210010
HTML0.7%673161
SVG0.4%3681268
Markdown0.2%15901
JSON0.0%4602
Sass0.0%1702
Total 102,455 1,455 208

PHP Code Analysis | More results »

Lines of code 386
Total complexity 52
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