ChordPress 2.4.0

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

Summary

Errors
13PHP notices
1JavaScript exceptions
All test pages loaded successfully
10Resource errors (CSS, JS, images, fonts and so on.)
  • 10 net::ERR_CONNECTION_REFUSED
Performance

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

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

Environment
WordPress version5.7.2
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 200+
WordPress.org page https://wordpress.org/plugins/chordpress/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 10

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=chordpress%2Fchordpress.php&plugin_status=all&paged=1&s&_wpnonce=b7c3da5558
Aspect after-activation
HTTP status 200
Load time 0.609 s
Memory usage 2.76 MiB
JS errors None
Resource errors
[
    {
        "status": null,
        "statusText": null,
        "url": "http://localhost:8203/sockjs-node/info?t=1621278016665",
        "errorString": "net::ERR_CONNECTION_REFUSED"
    }
]

Guitar Chords

Page screenshot: Guitar Chords
URL /wp-admin/edit.php?post_type=guitar_chord
Aspect menu-item
HTTP status 200
Load time 0.266 s
Memory usage 2.86 MiB
JS errors None
Resource errors
[
    {
        "status": null,
        "statusText": null,
        "url": "http://localhost:8203/sockjs-node/info?t=1621278017692",
        "errorString": "net::ERR_CONNECTION_REFUSED"
    }
]

Guitar Chords → Add New

Page screenshot: Guitar Chords → Add New
URL /wp-admin/post-new.php?post_type=guitar_chord
Aspect menu-item
HTTP status 200
Load time 0.404 s
Memory usage 2.98 MiB
JS errors
[
    {
        "message": "DOMException: Failed to execute 'querySelector' on 'Document': '#9AIB3bUPfW' is not a valid selector.\n    at makeInstance (webpack://%5Bname%5D/./node_modules/@svgdotjs/svg.js/src/utils/adopter.js?:47:86)\n    at Svg.addTo (webpack://%5Bname%5D/./node_modules/@svgdotjs/svg.js/src/elements/Dom.js?:46:82)\n    at new ChordBox (webpack://%5Bname%5D/./chordbox.js?:56:82)\n    at draw (webpack://%5Bname%5D/./index.js?:21:10)\n    at /wp-admin/post-new.php?post_type=guitar_chord:503:4",
        "trace": null,
        "code": null
    }
]
Resource errors
[
    {
        "status": null,
        "statusText": null,
        "url": "http://localhost:8203/sockjs-node/info?t=1621278018285",
        "errorString": "net::ERR_CONNECTION_REFUSED"
    }
]

Guitar Chords → Categories

Page screenshot: Guitar Chords → Categories
URL /wp-admin/edit-tags.php?taxonomy=category&post_type=guitar_chord
Aspect menu-item
HTTP status 200
Load time 0.264 s
Memory usage 2.82 MiB
JS errors None
Resource errors
[
    {
        "status": null,
        "statusText": null,
        "url": "http://localhost:8203/sockjs-node/info?t=1621278018922",
        "errorString": "net::ERR_CONNECTION_REFUSED"
    }
]

Guitar Chords → Tags

Page screenshot: Guitar Chords → Tags
URL /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=guitar_chord
Aspect menu-item
HTTP status 200
Load time 0.229 s
Memory usage 2.75 MiB
JS errors None
Resource errors
[
    {
        "status": null,
        "statusText": null,
        "url": "http://localhost:8203/sockjs-node/info?t=1621278019390",
        "errorString": "net::ERR_CONNECTION_REFUSED"
    }
]

ChordPress

Page screenshot: ChordPress
URL /wp-admin/admin.php?page=chordpress%2Fadmin%2Fpartials%2Fchordpress-admin-options.php
Requested URL /wp-admin/admin.php?page=chordpress/admin/partials/chordpress-admin-options.php
Aspect menu-item
HTTP status 200
Load time 0.417 s
Memory usage 3.06 MiB
JS errors None
Resource errors
[
    {
        "status": null,
        "statusText": null,
        "url": "http://localhost:8203/sockjs-node/info?t=1621278020066",
        "errorString": "net::ERR_CONNECTION_REFUSED"
    }
]

ChordPress → Formatting Options

Page screenshot: ChordPress → Formatting Options
URL /wp-admin/admin.php?page=%2Fopt%2Fbitnami%2Fapps%2Fwordpress%2Fhtdocs%2Fwp-content%2Fplugins%2Fchordpress%2Fadmin%2Fpartials%2Fchordpress-admin-options.php&tab=tab_formatting
Requested URL /wp-admin/admin.php?page=/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php&tab=tab_formatting
Aspect menu-item-tab
HTTP status 200
Load time 0.221 s
Memory usage 2.73 MiB
JS errors None
Resource errors
[
    {
        "status": null,
        "statusText": null,
        "url": "http://localhost:8203/sockjs-node/info?t=1621278020612",
        "errorString": "net::ERR_CONNECTION_REFUSED"
    }
]

ChordPress → Chord Diagram Options

Page screenshot: ChordPress → Chord Diagram Options
URL /wp-admin/admin.php?page=%2Fopt%2Fbitnami%2Fapps%2Fwordpress%2Fhtdocs%2Fwp-content%2Fplugins%2Fchordpress%2Fadmin%2Fpartials%2Fchordpress-admin-options.php&tab=tab_chord
Requested URL /wp-admin/admin.php?page=/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php&tab=tab_chord
Aspect menu-item-tab
HTTP status 200
Load time 0.353 s
Memory usage 2.73 MiB
JS errors None
Resource errors
[
    {
        "status": null,
        "statusText": null,
        "url": "http://localhost:8203/sockjs-node/info?t=1621278021227",
        "errorString": "net::ERR_CONNECTION_REFUSED"
    }
]

ChordPress → Plugin Options

Page screenshot: ChordPress → Plugin Options
URL /wp-admin/admin.php?page=%2Fopt%2Fbitnami%2Fapps%2Fwordpress%2Fhtdocs%2Fwp-content%2Fplugins%2Fchordpress%2Fadmin%2Fpartials%2Fchordpress-admin-options.php&tab=tab_plugin
Requested URL /wp-admin/admin.php?page=/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php&tab=tab_plugin
Aspect menu-item-tab
HTTP status 200
Load time 0.198 s
Memory usage 2.73 MiB
JS errors None
Resource errors
[
    {
        "status": null,
        "statusText": null,
        "url": "http://localhost:8203/sockjs-node/info?t=1621278021899",
        "errorString": "net::ERR_CONNECTION_REFUSED"
    }
]

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.812 s
Memory usage 2.69 MiB
JS errors None
Resource errors
[
    {
        "status": null,
        "statusText": null,
        "url": "http://localhost:8203/sockjs-node/info?t=1621278022920",
        "errorString": "net::ERR_CONNECTION_REFUSED"
    }
]

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.607 s0.827 s+0.220 s2.82 MiB2.87 MiB+ 50.24 KiB
/wp-admin/edit.php0.252 s0.284 s+0.032 s2.86 MiB2.91 MiB+ 50.92 KiB
/wp-admin/post-new.php0.922 s1.512 s+0.590 s5.02 MiB5.09 MiB+ 72.2 KiB
/wp-admin/upload.php0.426 s0.597 s+0.171 s2.7 MiB2.74 MiB+ 45.79 KiB
/wp-admin/options-writing.php0.204 s0.239 s+0.035 s2.71 MiB2.72 MiB+ 12.83 KiB
/wp-admin/media-new.php0.239 s0.270 s+0.031 s2.67 MiB2.72 MiB+ 45.96 KiB
/wp-admin/edit-tags.php?taxonomy=category0.229 s0.246 s+0.017 s2.77 MiB2.82 MiB+ 48.12 KiB
/wp-admin/post-new.php?post_type=page0.978 s1.127 s+0.149 s5.01 MiB5.07 MiB+ 63.78 KiB
/wp-admin/options-discussion.php0.343 s0.306 s-0.037 s2.67 MiB2.72 MiB+ 45.34 KiB
/wp-admin/edit-comments.php0.264 s0.473 s+0.209 s2.78 MiB2.82 MiB+ 45.5 KiB
/0.474 s0.470 s-0.004 s2.65 MiB2.69 MiB+ 39.93 KiB
Average 0.449 s0.577 s+0.128 s3.15 MiB3.2 MiB+ 47.33 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
PHP62.0%2,5512,05317
CSS23.3%9601442
JavaScript14.7%6035744
DOS Batch0.0%101
Total 4,115 2,771 24

PHP Code Analysis | More results »

Lines of code 1,963
Total complexity 402
Median class complexity 29.0
Median method complexity 1.0
Most complex class ChordPress_Renderer
Most complex function ChordPress_Renderer::displayText()
Classes 10
Methods 99
Functions 8

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.

Custom Post Types 1

ID Name
guitar_chordGuitar Chords

Meta Boxes

{
    "guitar_chord": {
        "guitar_chord_meta_box": {
            "title": "Guitar Chord Details",
            "context": "normal"
        }
    }
}

PHP Error Log 13 lines

[17-May-2021 19:00:18 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/chordpress/admin/class-chordpress-admin.php on line 290
[17-May-2021 19:00:19 UTC] PHP Notice:  Undefined variable: show_alert in /wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php on line 84
[17-May-2021 19:00:19 UTC] PHP Notice:  Undefined variable: show_alert in /wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php on line 116
[17-May-2021 19:00:19 UTC] PHP Notice:  Undefined variable: pnmae in /wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php on line 317
[17-May-2021 19:00:20 UTC] PHP Notice:  Undefined variable: show_alert in /wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php on line 84
[17-May-2021 19:00:20 UTC] PHP Notice:  Undefined variable: show_alert in /wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php on line 116
[17-May-2021 19:00:20 UTC] PHP Notice:  Undefined variable: pnmae in /wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php on line 317
[17-May-2021 19:00:20 UTC] PHP Notice:  Undefined variable: show_alert in /wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php on line 84
[17-May-2021 19:00:20 UTC] PHP Notice:  Undefined variable: show_alert in /wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php on line 116
[17-May-2021 19:00:20 UTC] PHP Notice:  Undefined variable: pnmae in /wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php on line 317
[17-May-2021 19:00:21 UTC] PHP Notice:  Undefined variable: show_alert in /wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php on line 84
[17-May-2021 19:00:21 UTC] PHP Notice:  Undefined variable: show_alert in /wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php on line 116
[17-May-2021 19:00:21 UTC] PHP Notice:  Undefined variable: pnmae in /wp-content/plugins/chordpress/admin/partials/chordpress-admin-options.php on line 317
See also: All tests for this plugin, How to Hide Lewe ChordPress Admin Menus and Meta Boxes