PDF.js Viewer 2.1.4

Does PDFjs Viewer - Embed PDFs work with WordPress 5.8.2 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: 9.68 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.8.2
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=8c9f4d9adf
Aspect after-activation
HTTP status 200
Load time 0.359 s
Memory usage 3.05 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.158 s
Memory usage 3.01 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.200 s
Memory usage 2.92 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.308 s0.259 s-0.049 s3.08 MiB3.1 MiB+ 14.8 KiB
/wp-admin/edit.php0.177 s0.192 s+0.015 s3.11 MiB3.13 MiB+ 14.8 KiB
/wp-admin/post-new.php0.717 s0.931 s+0.214 s5.27 MiB5.29 MiB+ 27.05 KiB
/wp-admin/upload.php0.377 s0.288 s-0.089 s3.03 MiB3.04 MiB+ 14.75 KiB
/wp-admin/options-writing.php0.241 s0.158 s-0.083 s3.02 MiB3.02 MiB- 2.98 KiB
/wp-admin/media-new.php0.349 s0.182 s-0.167 s3.01 MiB3.02 MiB+ 13.84 KiB
/wp-admin/edit-tags.php?taxonomy=category0.177 s0.177 s+0.000 s3.04 MiB3.05 MiB+ 14.12 KiB
/wp-admin/post-new.php?post_type=page0.622 s0.777 s+0.155 s5.26 MiB5.28 MiB+ 22.02 KiB
/wp-admin/options-discussion.php0.227 s0.263 s+0.036 s3 MiB3.02 MiB+ 14.15 KiB
/wp-admin/edit-comments.php0.202 s0.203 s+0.001 s3.04 MiB3.06 MiB+ 13.02 KiB
/0.274 s0.215 s-0.059 s2.96 MiB2.92 MiB- 39.08 KiB
Average 0.334 s0.331 s-0.002 s3.44 MiB3.45 MiB+ 9.68 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.5%38,5295928
CSS7.8%3,414391
PHP2.5%1,07410812
SVG0.7%3209679
Markdown0.3%13201
JSON0.1%4401
Sass0.0%1702
Total 43,530 835 104

PHP Code Analysis | More results »

Lines of code 345
Total complexity 53
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