Daily Prayer Time 2024.04.26

Does Daily Prayer Time work with WordPress 6.6.1 and PHP 8.1.12? A smoke test was performed on .

Summary

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

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

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

Environment
WordPress version6.6.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 1,000+
WordPress.org page https://wordpress.org/plugins/daily-prayer-time-for-mosques/
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=daily-prayer-time-for-mosques%2Fdaily-prayer-time.php&plugin_status=all&paged=1&s&_wpnonce=2c4fba9459
Aspect after-activation
HTTP status 200
Load time 1.270 s
Memory usage 5.29 MiB
JS errors
[
    {
        "message": "SyntaxError: Unexpected token u in JSON at position 0\n    at JSON.parse (<anonymous>)\n    at Object.fadingMessages (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:389:20)\n    at Object.init (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:26:14)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:405:41)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,utils,wp-hooks&ver=6.6.1:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,utils,wp-hooks&ver=6.6.1:2:27330)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Prayer time

Page screenshot: Prayer time
URL /wp-admin/admin.php?page=dpt
Aspect menu-item
HTTP status 200
Load time 2.620 s
Memory usage 14.4 MiB
JS errors
[
    {
        "message": "SyntaxError: Unexpected token u in JSON at position 0\n    at JSON.parse (<anonymous>)\n    at Object.fadingMessages (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:389:20)\n    at Object.init (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:26:14)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:405:41)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,utils,wp-hooks&ver=6.6.1:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,utils,wp-hooks&ver=6.6.1:2:27330)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Prayer time → Helps and Tips

Page screenshot: Prayer time → Helps and Tips
URL /wp-admin/admin.php?page=helps-and-tips
Aspect menu-item
HTTP status 200
Load time 0.238 s
Memory usage 3.55 MiB
JS errors
[
    {
        "message": "SyntaxError: Unexpected token u in JSON at position 0\n    at JSON.parse (<anonymous>)\n    at Object.fadingMessages (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:389:20)\n    at Object.init (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:26:14)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:405:41)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,utils,wp-hooks&ver=6.6.1:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,utils,wp-hooks&ver=6.6.1: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.367 s
Memory usage 3.62 MiB
JS errors
[
    {
        "message": "SyntaxError: Unexpected token u in JSON at position 0\n    at JSON.parse (<anonymous>)\n    at Object.fadingMessages (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:389:20)\n    at Object.init (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:26:14)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:405:41)\n    at e (/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27028)\n    at t (/wp-includes/js/jquery/jquery.min.js?ver=3.7.1: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 2.281 s
Memory usage 5.72 MiB
JS errors
[
    {
        "message": "SyntaxError: Unexpected token u in JSON at position 0\n    at JSON.parse (<anonymous>)\n    at Object.fadingMessages (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:389:20)\n    at Object.init (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:26:14)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/daily-prayer-time-for-mosques/Assets/js/dpt.js?ver=2024.04.26:405:41)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,utils,wp-hooks&ver=6.6.1:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-mouse,jquery-ui-draggable,utils,wp-hooks&ver=6.6.1: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.360 s0.385 s+0.025 s3.47 MiB3.57 MiB+ 101.05 KiB
/wp-admin/edit.php0.227 s0.238 s+0.011 s3.54 MiB3.64 MiB+ 101.03 KiB
/wp-admin/post-new.php0.807 s1.248 s+0.441 s5.75 MiB5.88 MiB+ 126.01 KiB
/wp-admin/upload.php0.671 s0.410 s-0.261 s3.49 MiB3.57 MiB+ 81.13 KiB
/wp-admin/options-writing.php0.226 s0.237 s+0.011 s3.41 MiB3.55 MiB+ 144.87 KiB
/wp-admin/media-new.php0.256 s0.253 s-0.003 s3.4 MiB3.55 MiB+ 158.25 KiB
/wp-admin/edit-tags.php?taxonomy=category0.212 s0.268 s+0.056 s3.47 MiB3.57 MiB+ 105.55 KiB
/wp-admin/post-new.php?post_type=page0.611 s1.043 s+0.432 s5.75 MiB5.87 MiB+ 122.05 KiB
/wp-admin/options-discussion.php0.332 s0.317 s-0.015 s3.41 MiB3.55 MiB+ 147.18 KiB
/wp-admin/edit-comments.php0.274 s0.258 s-0.016 s3.49 MiB3.57 MiB+ 82.05 KiB
/0.307 s0.325 s+0.018 s3.45 MiB3.62 MiB+ 169.68 KiB
Average 0.389 s0.453 s+0.064 s3.88 MiB3.99 MiB+ 121.71 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
PHP74.3%7,3751,23756
CSS17.2%1,712415
JavaScript7.8%7751277
YAML0.3%3231
JSON0.3%3001
HTML0.1%801
Total 9,932 1,408 71

PHP Code Analysis | More results »

Lines of code 5,955
Total complexity 986
Median class complexity 10.0
Median method complexity 2.0
Most complex class TimetablePrinter
Most complex function dpt\datetime::format()
Classes 40
Methods 350
Functions 5

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 2

Options wp_options 3

Sidebar Widgets 1

ID Name
dailyprayertimeDaily Prayer Time

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide Daily Prayer Time Admin Menus