PDF.js Viewer 2.1.6

Does PDFjs Viewer - Embed PDFs work with WordPress 5.9.3 and PHP 7.4.8? 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: 11.93 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 version5.9.3
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
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=15f9abd72c
Aspect after-activation
HTTP status 200
Load time 0.275 s
Memory usage 3.28 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.264 s
Memory usage 3.24 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.230 s
Memory usage 3.36 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.355 s0.249 s-0.106 s3.37 MiB3.38 MiB+ 15.23 KiB
/wp-admin/edit.php0.180 s0.194 s+0.014 s3.4 MiB3.42 MiB+ 15.23 KiB
/wp-admin/post-new.php0.794 s1.040 s+0.246 s5.65 MiB5.68 MiB+ 21.36 KiB
/wp-admin/upload.php0.359 s0.326 s-0.033 s3.25 MiB3.27 MiB+ 23.18 KiB
/wp-admin/options-writing.php0.251 s0.145 s-0.106 s3.24 MiB3.25 MiB+ 5.32 KiB
/wp-admin/media-new.php0.284 s0.194 s-0.090 s3.23 MiB3.25 MiB+ 22.27 KiB
/wp-admin/edit-tags.php?taxonomy=category0.199 s0.187 s-0.012 s3.27 MiB3.28 MiB+ 14.55 KiB
/wp-admin/post-new.php?post_type=page0.946 s0.723 s-0.223 s5.65 MiB5.67 MiB+ 16.32 KiB
/wp-admin/options-discussion.php0.234 s0.342 s+0.108 s3.22 MiB3.24 MiB+ 22.58 KiB
/wp-admin/edit-comments.php0.239 s0.233 s-0.006 s3.27 MiB3.28 MiB+ 13.45 KiB
/0.282 s0.224 s-0.058 s3.4 MiB3.36 MiB- 38.25 KiB
Average 0.375 s0.351 s-0.024 s3.72 MiB3.73 MiB+ 11.93 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.5%1,10610110
SVG0.7%3209679
Markdown0.3%13901
JSON0.1%4401
Sass0.0%1702
Total 43,571 829 102

PHP Code Analysis | More results »

Lines of code 363
Total complexity 55
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function pdfjs_options_page()
Classes 0
Methods 0
Functions 11

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