PDF.js Viewer 2.1.8

Does PDFjs Viewer - Embed PDFs work with WordPress 6.4.3 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: 10.46 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.4.3
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=c66d885a7c
Aspect after-activation
HTTP status 200
Load time 0.427 s
Memory usage 3.34 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.190 s
Memory usage 3.32 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.244 s
Memory usage 3.31 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.392 s0.353 s-0.039 s3.38 MiB3.4 MiB+ 21.28 KiB
/wp-admin/edit.php0.223 s0.220 s-0.003 s3.41 MiB3.43 MiB+ 21.28 KiB
/wp-admin/post-new.php0.933 s0.665 s-0.268 s5.46 MiB5.49 MiB+ 34.88 KiB
/wp-admin/upload.php0.597 s0.572 s-0.025 s3.32 MiB3.33 MiB+ 5.95 KiB
/wp-admin/options-writing.php0.245 s0.290 s+0.045 s3.32 MiB3.31 MiB- 3.54 KiB
/wp-admin/media-new.php0.352 s0.273 s-0.079 s3.3 MiB3.31 MiB+ 16.06 KiB
/wp-admin/edit-tags.php?taxonomy=category0.219 s0.198 s-0.021 s3.31 MiB3.33 MiB+ 21.23 KiB
/wp-admin/post-new.php?post_type=page0.605 s0.645 s+0.040 s5.45 MiB5.48 MiB+ 34.46 KiB
/wp-admin/options-discussion.php0.416 s0.253 s-0.163 s3.3 MiB3.31 MiB+ 4.37 KiB
/wp-admin/edit-comments.php0.267 s0.225 s-0.042 s3.34 MiB3.34 MiB+ 3.87 KiB
/0.316 s0.358 s+0.042 s3.36 MiB3.31 MiB- 44.81 KiB
Average 0.415 s0.368 s-0.047 s3.72 MiB3.73 MiB+ 10.46 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
Language % Lines of code Comment lines Files
JavaScript88.4%38,5315938
CSS7.8%3,414391
PHP2.6%1,13010010
SVG0.7%3209679
Markdown0.3%14601
JSON0.1%4401
Sass0.0%1702
Total 43,602 828 102

PHP Code Analysis | More results »

Lines of code 387
Total complexity 62
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