Easy Table of Contents 2.0.32

Does Easy Table of Contents work with WordPress 6.0.2 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
3JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 351.66 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.046 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.0.2
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 500,000+
WordPress.org page https://wordpress.org/plugins/easy-table-of-contents/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 6

Table of Contents ‹ Test site — WordPress

Page screenshot: Table of Contents ‹ Test site — WordPress
URL /wp-admin/options-general.php?page=table-of-contents#welcome
Requested URL /wp-admin/plugins.php?action=activate&plugin=easy-table-of-contents%2Feasy-table-of-contents.php&plugin_status=all&paged=1&s&_wpnonce=e3423f8550
Aspect after-activation
HTTP status 200
Load time 0.584 s
Memory usage 3.97 MiB
JS errors None
Resource errors None

Settings → Table of Contents

Page screenshot: Settings → Table of Contents
URL /wp-admin/options-general.php?page=table-of-contents
Aspect menu-item
HTTP status 200
Load time 0.466 s
Memory usage 3.86 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.295 s
Memory usage 3.61 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 0.638 s
Memory usage 5.75 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'getElementsByTagName')\n    at HTMLDocument.<anonymous> (/wp-content/plugins/easy-table-of-contents/assets/js/admin.js?ver=2.0.32:9:28)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.0.2:2:30038)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.0.2:2:30340)",
        "trace": null,
        "code": null
    }
]
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.653 s
Memory usage 5.74 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'getElementsByTagName')\n    at HTMLDocument.<anonymous> (/wp-content/plugins/easy-table-of-contents/assets/js/admin.js?ver=2.0.32:9:28)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.0.2:2:30038)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.0.2:2:30340)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Widgets ‹ Test site — WordPress

Page screenshot: Widgets ‹ Test site — WordPress
URL /wp-admin/widgets.php
Aspect new-sidebar-widgets
HTTP status 200
Load time 1.849 s
Memory usage 5.72 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'getElementsByTagName')\n    at HTMLDocument.<anonymous> (/wp-content/plugins/easy-table-of-contents/assets/js/admin.js?ver=2.0.32:9:28)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.2:2:30038)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.2:2:30340)",
        "trace": null,
        "code": null
    }
]
External errors: The following JavaScript errors were probably triggered by WordPress itself, or by compatibility issues in the test runner. They are not related to the plugin.
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetHeight')\n    at t (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10419)\n    at IntersectionObserver.n.threshold (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10591)",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetHeight')\n    at t (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10419)\n    at IntersectionObserver.n.threshold (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10591)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.333 s0.294 s-0.039 s3.72 MiB3.91 MiB+ 192.47 KiB
/wp-admin/edit.php0.185 s0.220 s+0.035 s3.76 MiB3.94 MiB+ 190.71 KiB
/wp-admin/post-new.php0.967 s1.738 s+0.771 s5.55 MiB7.47 MiB+ 1.92 MiB
/wp-admin/upload.php0.423 s0.388 s-0.035 s3.69 MiB3.87 MiB+ 190.71 KiB
/wp-admin/options-writing.php0.279 s0.200 s-0.079 s3.62 MiB3.85 MiB+ 237.68 KiB
/wp-admin/media-new.php0.347 s0.207 s-0.140 s3.66 MiB3.85 MiB+ 191.51 KiB
/wp-admin/edit-tags.php?taxonomy=category0.185 s0.205 s+0.020 s3.69 MiB3.88 MiB+ 192.73 KiB
/wp-admin/post-new.php?post_type=page0.861 s0.884 s+0.023 s5.54 MiB5.74 MiB+ 196.13 KiB
/wp-admin/options-discussion.php0.212 s0.264 s+0.052 s3.6 MiB3.85 MiB+ 258.26 KiB
/wp-admin/edit-comments.php0.241 s0.226 s-0.015 s3.7 MiB3.88 MiB+ 191.95 KiB
/0.296 s0.210 s-0.086 s3.55 MiB3.61 MiB+ 60.45 KiB
Average 0.394 s0.440 s+0.046 s4.01 MiB4.35 MiB+ 351.66 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
CSS
Language % Lines of code Comment lines Files
PHP60.8%3,9941,89713
CSS27.3%1,793484
JavaScript6.0%395565
PO File5.8%3781231
XML0.1%701
Total 6,567 2,124 24

PHP Code Analysis | More results »

Lines of code 3,591
Total complexity 584
Median class complexity 41.5
Median method complexity 3.0
Most complex class ezTOC_Post
Most complex function ezTOC_Post::getTOC()
Classes 8
Methods 118
Functions 19

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.

Options wp_options 2

Sidebar Widgets 1

ID Name
ezw_tcoTable of Contents

Meta Boxes

{
    "post": {
        "ez-toc": {
            "title": "Table of Contents",
            "context": "advanced"
        }
    },
    "page": {
        "ez-toc": {
            "title": "Table of Contents",
            "context": "advanced"
        }
    }
}

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide Easy Table of Contents Admin Menus and Meta Boxes