wp-mpdf 3.5.1

Does wp-mpdf work with WordPress 5.7.2 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
12PHP notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 10.15 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.7.2
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 1,000+
WordPress.org page https://wordpress.org/plugins/wp-mpdf/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 5

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=wp-mpdf%2Fwp-mpdf.php&plugin_status=all&paged=1&s&_wpnonce=ebd3e1dec7
Aspect after-activation
HTTP status 200
Load time 0.389 s
Memory usage 2.72 MiB
JS errors None
Resource errors None

Settings → WP-MPDF

Page screenshot: Settings → WP-MPDF
URL /wp-admin/options-general.php?page=wp-mpdf
Aspect menu-item
HTTP status 200
Load time 0.151 s
Memory usage 2.96 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.256 s
Memory usage 2.65 MiB
JS errors None
Resource errors None

Add New Post ‹ Test site — WordPress

Page screenshot: Add New Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 1.323 s
Memory usage 5.05 MiB
JS errors None
Resource errors None

Add New Page ‹ Test site — WordPress

Page screenshot: Add New Page ‹ Test site — WordPress
URL /wp-admin/post-new.php?post_type=page
Aspect new-meta-boxes
HTTP status 200
Load time 0.695 s
Memory usage 5.03 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.247 s0.267 s+0.020 s2.82 MiB2.83 MiB+ 12.5 KiB
/wp-admin/edit.php0.170 s0.182 s+0.012 s2.86 MiB2.88 MiB+ 12.87 KiB
/wp-admin/post-new.php0.802 s0.846 s+0.044 s5.02 MiB5.05 MiB+ 23.61 KiB
/wp-admin/upload.php0.692 s0.455 s-0.237 s2.7 MiB2.71 MiB+ 11.77 KiB
/wp-admin/options-writing.php0.248 s0.141 s-0.107 s2.71 MiB2.69 MiB- 20.25 KiB
/wp-admin/media-new.php0.200 s0.144 s-0.056 s2.67 MiB2.68 MiB+ 11.95 KiB
/wp-admin/edit-tags.php?taxonomy=category0.174 s0.231 s+0.057 s2.77 MiB2.78 MiB+ 12.85 KiB
/wp-admin/post-new.php?post_type=page0.974 s0.655 s-0.319 s5.01 MiB5.03 MiB+ 19.2 KiB
/wp-admin/options-discussion.php0.295 s0.256 s-0.039 s2.67 MiB2.69 MiB+ 12.26 KiB
/wp-admin/edit-comments.php0.225 s0.244 s+0.019 s2.78 MiB2.79 MiB+ 11.76 KiB
/0.252 s0.187 s-0.065 s2.65 MiB2.66 MiB+ 3.17 KiB
Average 0.389 s0.328 s-0.061 s3.15 MiB3.16 MiB+ 10.15 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.

PHP
Language % Lines of code Comment lines Files
PHP99.1%141,71022,671375
CSS0.7%931685
Markdown0.2%22002
JSON0.0%4001
XML0.0%1601
YAML0.0%1601
Total 142,933 22,739 385

PHP Code Analysis | More results »

Lines of code 66,727
Total complexity 19,399
Median class complexity 136.0
Median method complexity 5.0
Most complex class mPDF
Most complex function Tag::OpenTag()
Classes 28
Methods 853
Functions 81

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.

Database Tables 1

Options wp_options 10

Meta Boxes

{
    "post": {
        "mpdf_admin": {
            "title": "wp-mpdf",
            "context": "normal"
        }
    },
    "page": {
        "mpdf_admin": {
            "title": "wp-mpdf",
            "context": "normal"
        }
    }
}

PHP Error Log 12 lines

[15-May-2021 21:48:04 UTC] PHP Notice:  Trying to get property 'general' of non-object in /wp-content/plugins/wp-mpdf/wp-mpdf.php on line 520
[15-May-2021 21:48:04 UTC] PHP Notice:  Trying to get property 'login' of non-object in /wp-content/plugins/wp-mpdf/wp-mpdf.php on line 526
[15-May-2021 21:48:04 UTC] PHP Notice:  Trying to get property 'pdfname' of non-object in /wp-content/plugins/wp-mpdf/wp-mpdf.php on line 532
[15-May-2021 21:48:07 UTC] PHP Notice:  Trying to get property 'general' of non-object in /wp-content/plugins/wp-mpdf/wp-mpdf.php on line 520
[15-May-2021 21:48:07 UTC] PHP Notice:  Trying to get property 'login' of non-object in /wp-content/plugins/wp-mpdf/wp-mpdf.php on line 526
[15-May-2021 21:48:07 UTC] PHP Notice:  Trying to get property 'pdfname' of non-object in /wp-content/plugins/wp-mpdf/wp-mpdf.php on line 532
[15-May-2021 21:48:10 UTC] PHP Notice:  Trying to get property 'general' of non-object in /wp-content/plugins/wp-mpdf/wp-mpdf.php on line 520
[15-May-2021 21:48:10 UTC] PHP Notice:  Trying to get property 'login' of non-object in /wp-content/plugins/wp-mpdf/wp-mpdf.php on line 526
[15-May-2021 21:48:10 UTC] PHP Notice:  Trying to get property 'pdfname' of non-object in /wp-content/plugins/wp-mpdf/wp-mpdf.php on line 532
[15-May-2021 21:48:12 UTC] PHP Notice:  Trying to get property 'general' of non-object in /wp-content/plugins/wp-mpdf/wp-mpdf.php on line 520
[15-May-2021 21:48:12 UTC] PHP Notice:  Trying to get property 'login' of non-object in /wp-content/plugins/wp-mpdf/wp-mpdf.php on line 526
[15-May-2021 21:48:12 UTC] PHP Notice:  Trying to get property 'pdfname' of non-object in /wp-content/plugins/wp-mpdf/wp-mpdf.php on line 532
See also: All tests for this plugin, How to Hide wp-mpdf Admin Menus and Meta Boxes