PDF.js Viewer 2.2.2

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.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.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=01c0683433
Aspect after-activation
HTTP status 200
Load time 0.312 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.163 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.231 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.344 s0.283 s-0.061 s3.51 MiB3.53 MiB+ 21.66 KiB
/wp-admin/edit.php0.203 s0.197 s-0.006 s3.57 MiB3.59 MiB+ 22.98 KiB
/wp-admin/post-new.php0.784 s0.669 s-0.115 s6.06 MiB6.09 MiB+ 24.93 KiB
/wp-admin/upload.php0.578 s0.488 s-0.090 s3.52 MiB3.53 MiB+ 7.29 KiB
/wp-admin/options-writing.php0.222 s0.184 s-0.038 s3.5 MiB3.51 MiB+ 9.57 KiB
/wp-admin/media-new.php0.361 s0.239 s-0.122 s3.49 MiB3.51 MiB+ 17.77 KiB
/wp-admin/edit-tags.php?taxonomy=category0.207 s0.207 s+0.000 s3.5 MiB3.53 MiB+ 28.44 KiB
/wp-admin/post-new.php?post_type=page0.614 s0.643 s+0.029 s6.05 MiB6.07 MiB+ 20.45 KiB
/wp-admin/options-discussion.php0.453 s0.379 s-0.074 s3.5 MiB3.51 MiB+ 6.07 KiB
/wp-admin/edit-comments.php0.263 s0.179 s-0.084 s3.52 MiB3.53 MiB+ 5.57 KiB
/0.307 s0.166 s-0.141 s3.43 MiB3.45 MiB+ 13.76 KiB
Average 0.394 s0.330 s-0.064 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