Easy Table of Contents 2.0.82.1

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

Summary

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

Memory usage: 463.36 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 version6.9.4
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 600,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=75d7a7df31
Aspect after-activation
HTTP status 200
Load time 0.741 s
Memory usage 4.56 MiB
JS errors
[
    {
        "message": "ReferenceError: cn_toc_admin_data is not defined\n    at HTMLDocument.<anonymous> (/wp-content/plugins/easy-table-of-contents/assets/js/admin.min.js?ver=2.0.82.1:1:4901)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.9.4:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.9.4:2:27330)",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: cn_toc_admin_data is not defined\n    at HTMLDocument.<anonymous> (/wp-content/plugins/easy-table-of-contents/assets/js/admin.min.js?ver=2.0.82.1:1:15689)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.9.4:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.9.4:2:27330)",
        "trace": null,
        "code": null
    }
]
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.448 s
Memory usage 4.18 MiB
JS errors
[
    {
        "message": "ReferenceError: cn_toc_admin_data is not defined\n    at HTMLDocument.<anonymous> (/wp-content/plugins/easy-table-of-contents/assets/js/admin.min.js?ver=2.0.82.1:1:4901)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.9.4:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.9.4:2:27330)",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: cn_toc_admin_data is not defined\n    at HTMLDocument.<anonymous> (/wp-content/plugins/easy-table-of-contents/assets/js/admin.min.js?ver=2.0.82.1:1:15689)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.9.4:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.9.4:2:27330)",
        "trace": null,
        "code": null
    }
]
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.227 s
Memory usage 4.23 MiB
JS errors None
Resource errors None

Add Post ‹ Test site — WordPress

Page screenshot: Add Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.874 s
Memory usage 6.85 MiB
JS errors
[
    {
        "message": "ReferenceError: cn_toc_admin_data is not defined\n    at HTMLDocument.<anonymous> (/wp-content/plugins/easy-table-of-contents/assets/js/admin.min.js?ver=2.0.82.1:1:4901)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.9.4:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.9.4:2:27330)",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: cn_toc_admin_data is not defined\n    at HTMLDocument.<anonymous> (/wp-content/plugins/easy-table-of-contents/assets/js/admin.min.js?ver=2.0.82.1:1:15689)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.9.4:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.9.4:2:27330)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Add Page ‹ Test site — WordPress

Page screenshot: Add Page ‹ Test site — WordPress
URL /wp-admin/post-new.php?post_type=page
Aspect new-meta-boxes
HTTP status 200
Load time 0.792 s
Memory usage 6.79 MiB
JS errors
[
    {
        "message": "ReferenceError: cn_toc_admin_data is not defined\n    at HTMLDocument.<anonymous> (/wp-content/plugins/easy-table-of-contents/assets/js/admin.min.js?ver=2.0.82.1:1:4901)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.9.4:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.9.4:2:27330)",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: cn_toc_admin_data is not defined\n    at HTMLDocument.<anonymous> (/wp-content/plugins/easy-table-of-contents/assets/js/admin.min.js?ver=2.0.82.1:1:15689)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.9.4:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.9.4:2:27330)",
        "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.228 s
Memory usage 6.63 MiB
JS errors
[
    {
        "message": "ReferenceError: cn_toc_admin_data is not defined\n    at HTMLDocument.<anonymous> (/wp-content/plugins/easy-table-of-contents/assets/js/admin.min.js?ver=2.0.82.1:1:4901)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2:27330)",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: cn_toc_admin_data is not defined\n    at HTMLDocument.<anonymous> (/wp-content/plugins/easy-table-of-contents/assets/js/admin.min.js?ver=2.0.82.1:1:15689)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2:27330)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.498 s0.463 s-0.035 s3.78 MiB4.26 MiB+ 494.64 KiB
/wp-admin/edit.php0.434 s0.471 s+0.037 s3.78 MiB4.27 MiB+ 501 KiB
/wp-admin/post-new.php0.917 s0.863 s-0.054 s6.31 MiB6.85 MiB+ 559.77 KiB
/wp-admin/upload.php0.506 s0.744 s+0.238 s3.74 MiB4.2 MiB+ 471.65 KiB
/wp-admin/options-writing.php0.367 s0.375 s+0.008 s3.71 MiB4.18 MiB+ 481.45 KiB
/wp-admin/media-new.php0.585 s0.580 s-0.005 s3.7 MiB4.18 MiB+ 489.65 KiB
/wp-admin/edit-tags.php?taxonomy=category0.524 s0.399 s-0.125 s3.72 MiB4.2 MiB+ 500.01 KiB
/wp-admin/post-new.php?post_type=page0.769 s0.773 s+0.004 s6.3 MiB6.79 MiB+ 504.26 KiB
/wp-admin/options-discussion.php0.489 s0.466 s-0.023 s3.71 MiB4.18 MiB+ 472.45 KiB
/wp-admin/edit-comments.php0.388 s0.416 s+0.028 s3.73 MiB4.22 MiB+ 496.33 KiB
/0.336 s0.230 s-0.106 s4.11 MiB4.23 MiB+ 125.74 KiB
Average 0.528 s0.525 s-0.003 s4.24 MiB4.69 MiB+ 463.36 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
JavaScript
Language % Lines of code Comment lines Files
PHP66.4%9,4222,76917
CSS17.0%2,410336
JavaScript13.9%1,9792019
PO File2.7%3781231
XML0.0%701
Total 14,196 3,126 34

PHP Code Analysis | More results »

Lines of code 8,702
Total complexity 1,915
Median class complexity 112.0
Median method complexity 4.0
Most complex class ezTOC
Most complex function ezTOC_WidgetSticky::widget()
Classes 10
Methods 180
Functions 71

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 3

Sidebar Widgets 2

ID Name
ezw_tcoTable of Contents
ez_toc_widget_stickySticky Sidebar Table 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