Mini Program API 1.2.2

Does Mini Program API work with WordPress 5.3 and PHP 7.2.16? A smoke test was performed on .

Summary

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

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

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

Environment
WordPress version5.3
PHP version7.2.16
MySQL version8.0.15
PHP memory limit256M
Plugin Info
Last updated
Active installs 600+
WordPress.org page https://wordpress.org/plugins/wp-mini-program/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 9

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-mini-program%2Fwp-mini-program.php&plugin_status=all&paged=1&s&_wpnonce=5324f79efd
Aspect after-activation
HTTP status 200
Load time 0.754 s
Memory usage 4.7 MiB
JS errors None
Resource errors None

小程序

Page screenshot: 小程序
URL /wp-admin/admin.php?page=miniprogram
Aspect menu-item
HTTP status 200
Load time 0.361 s
Memory usage 3.85 MiB
JS errors None
Resource errors None

小程序 → 订阅统计

Page screenshot: 小程序 → 订阅统计
URL /wp-admin/admin.php?page=subscribe
Aspect menu-item
HTTP status 200
Load time 0.316 s
Memory usage 3.74 MiB
JS errors None
Resource errors None

小程序 → 任务列表

Page screenshot: 小程序 → 任务列表
URL /wp-admin/admin.php?page=task
Aspect menu-item
HTTP status 200
Load time 0.318 s
Memory usage 3.75 MiB
JS errors None
Resource errors None

小程序 → 使用指南

Page screenshot: 小程序 → 使用指南
URL /wp-admin/admin.php?page=guide
Aspect menu-item
HTTP status 200
Load time 0.299 s
Memory usage 3.74 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.243 s
Memory usage 3.42 MiB
JS errors None
Resource errors None

Dashboard ‹ Test site — WordPress

Page screenshot: Dashboard ‹ Test site — WordPress
URL /wp-admin/index.php
Aspect new-meta-boxes
HTTP status 200
Load time 6.659 s
Memory usage N/A
JS errors
[
    {
        "message": "TypeError: $(...).sortable is not a function\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-mini-program/static/script.js?ver=1.0:254:17)\n    at i (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.3:2:27362)\n    at Object.fireWith [as resolveWith] (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.3:2:28121)\n    at Function.ready (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.3:2:29914)\n    at HTMLDocument.J (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.3:2:30276)",
        "trace": null,
        "code": null
    }
]
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.512 s
Memory usage 5.75 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 1.222 s
Memory usage 5.72 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.308 s3.527 s+3.219 s3.62 MiB3.94 MiB+ 330.07 KiB
/wp-admin/edit.php0.229 s0.380 s+0.151 s3.65 MiB3.87 MiB+ 225.38 KiB
/wp-admin/post-new.php1.276 s1.538 s+0.262 s5.36 MiB5.75 MiB+ 403.47 KiB
/wp-admin/upload.php0.609 s0.483 s-0.126 s3.48 MiB3.74 MiB+ 271.61 KiB
/wp-admin/options-writing.php0.167 s0.321 s+0.154 s3.56 MiB3.75 MiB+ 196.12 KiB
/wp-admin/media-new.php0.220 s0.358 s+0.138 s3.46 MiB3.74 MiB+ 290.63 KiB
/wp-admin/edit-tags.php?taxonomy=category0.337 s0.333 s-0.004 s3.56 MiB3.79 MiB+ 227.14 KiB
/wp-admin/post-new.php?post_type=page1.231 s1.428 s+0.197 s5.34 MiB5.72 MiB+ 388.02 KiB
/wp-admin/options-discussion.php0.377 s0.434 s+0.057 s3.46 MiB3.75 MiB+ 290.66 KiB
/wp-admin/edit-comments.php0.303 s0.390 s+0.087 s3.57 MiB3.79 MiB+ 226.14 KiB
/0.322 s0.289 s-0.033 s3.32 MiB3.43 MiB+ 113.22 KiB
Average 0.489 s0.862 s+0.373 s3.85 MiB4.12 MiB+ 269.31 KiB

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

Meta Boxes

{
    "dashboard": {
        "applets_dashboard_widget": {
            "title": "WordPress \u5c0f\u7a0b\u5e8f",
            "context": "normal"
        }
    },
    "post": {
        "post-box": {
            "title": "\u6587\u7ae0\u8bbe\u7f6e",
            "context": "normal"
        }
    },
    "page": {
        "page-box": {
            "title": "\u9875\u9762\u8bbe\u7f6e",
            "context": "normal"
        }
    }
}

Roles 1

ID Name
wechat小程序

PHP Error Log 8 lines

[30-Nov-2019 14:26:16 UTC] PHP Notice:  Undefined index: description in /wp-content/plugins/wp-mini-program/admin/core/terms.php on line 28
[30-Nov-2019 14:26:30 UTC] PHP Fatal error:  Uncaught Error: Cannot use object of type WP_Error as array in /wp-content/plugins/wp-mini-program/include/dashboard.php:34
Stack trace:
#0 /wp-admin/includes/template.php(1343): imahui_applets_dashboard_widget('', Array)
#1 /wp-admin/includes/dashboard.php(232): do_meta_boxes(Object(WP_Screen), 'normal', '')
#2 /wp-admin/index.php(148): wp_dashboard()
#3 {main}
  thrown in /wp-content/plugins/wp-mini-program/include/dashboard.php on line 34
See also: All tests for this plugin, How to Hide Mini Program API Admin Menus and More