PDF.js Viewer 2.1.5

Does PDFjs Viewer - Embed PDFs work with WordPress 5.9 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: 13.31 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
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=6ba4e5163e
Aspect after-activation
HTTP status 200
Load time 0.454 s
Memory usage 3.27 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.157 s
Memory usage 3.23 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.37 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.315 s0.277 s-0.038 s3.36 MiB3.38 MiB+ 15.23 KiB
/wp-admin/edit.php0.177 s0.223 s+0.046 s3.39 MiB3.41 MiB+ 15.23 KiB
/wp-admin/post-new.php0.889 s1.114 s+0.225 s6.14 MiB6.17 MiB+ 21.36 KiB
/wp-admin/upload.php0.351 s0.363 s+0.012 s3.24 MiB3.26 MiB+ 23.18 KiB
/wp-admin/options-writing.php0.311 s0.143 s-0.168 s3.24 MiB3.24 MiB+ 5.32 KiB
/wp-admin/media-new.php0.253 s0.190 s-0.063 s3.22 MiB3.24 MiB+ 22.27 KiB
/wp-admin/edit-tags.php?taxonomy=category0.184 s0.182 s-0.002 s3.25 MiB3.27 MiB+ 22.55 KiB
/wp-admin/post-new.php?post_type=page0.761 s0.961 s+0.200 s6.14 MiB6.16 MiB+ 16.32 KiB
/wp-admin/options-discussion.php0.251 s0.280 s+0.029 s3.22 MiB3.24 MiB+ 22.58 KiB
/wp-admin/edit-comments.php0.214 s0.206 s-0.008 s3.26 MiB3.28 MiB+ 13.45 KiB
/0.271 s0.231 s-0.040 s3.4 MiB3.37 MiB- 31.03 KiB
Average 0.362 s0.379 s+0.018 s3.81 MiB3.82 MiB+ 13.31 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,13610712
SVG0.7%3209679
Markdown0.3%13501
JSON0.1%4401
Sass0.0%1702
Total 43,597 835 104

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