AR for WordPress 3.7

Does AR for WordPress work with WordPress 6.2.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
1PHP warnings
1PHP notices
6PHP deprecation warnings
2JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 108.16 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.2.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 400+
WordPress.org page https://wordpress.org/plugins/ar-for-wordpress/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 8

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=ar-for-wordpress%2Far-wordpress.php&plugin_status=all&paged=1&s&_wpnonce=fde61e50b6
Aspect after-activation
HTTP status 200
Load time 0.554 s
Memory usage 3.12 MiB
JS errors None
Resource errors None

AR Models

Page screenshot: AR Models
URL /wp-admin/edit.php?post_type=armodels
Aspect menu-item
HTTP status 200
Load time 0.197 s
Memory usage 3.17 MiB
JS errors None
Resource errors None

AR Models → Add New

Page screenshot: AR Models → Add New
URL /wp-admin/post-new.php?post_type=armodels
Aspect menu-item
HTTP status 200
Load time 1.418 s
Memory usage 5.18 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'addEventListener')\n    at /wp-admin/post-new.php?post_type=armodels:739:25",
        "trace": null,
        "code": null
    }
]
Resource errors None

AR Models → AR Categories

Page screenshot: AR Models → AR Categories
URL /wp-admin/edit-tags.php?taxonomy=model_category&post_type=armodels
Aspect menu-item
HTTP status 200
Load time 0.243 s
Memory usage 3.1 MiB
JS errors None
Resource errors None

AR Models → Settings

Page screenshot: AR Models → Settings
URL /wp-admin/edit.php?post_type=armodels&page
Aspect menu-item
HTTP status 200
Load time 1.018 s
Memory usage 3.2 MiB
JS errors None
Resource errors None

AR Models → Whats New

Page screenshot: AR Models → Whats New
URL /wp-admin/edit.php?post_type=armodels&page=ar-whats-new
Aspect menu-item
HTTP status 200
Load time 0.171 s
Memory usage 3.1 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.290 s
Memory usage 3.04 MiB
JS errors None
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.013 s
Memory usage 5.16 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of undefined (reading 'PluginDocumentSettingPanel')\n    at Object.<anonymous> (/wp-content/plugins/ar-for-wordpress/gutenberg-block/dist/blocks.build.js:1:736)\n    at t (/wp-content/plugins/ar-for-wordpress/gutenberg-block/dist/blocks.build.js:1:101)\n    at Object.<anonymous> (/wp-content/plugins/ar-for-wordpress/gutenberg-block/dist/blocks.build.js:1:540)\n    at t (/wp-content/plugins/ar-for-wordpress/gutenberg-block/dist/blocks.build.js:1:101)\n    at /wp-content/plugins/ar-for-wordpress/gutenberg-block/dist/blocks.build.js:1:451\n    at /wp-content/plugins/ar-for-wordpress/gutenberg-block/dist/blocks.build.js:1:460",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.412 s0.375 s-0.037 s3.07 MiB3.18 MiB+ 105.47 KiB
/wp-admin/edit.php0.235 s0.393 s+0.158 s3.1 MiB3.2 MiB+ 105.27 KiB
/wp-admin/post-new.php0.832 s1.067 s+0.235 s5.02 MiB5.19 MiB+ 178.68 KiB
/wp-admin/upload.php0.831 s0.367 s-0.464 s3.02 MiB3.11 MiB+ 89.05 KiB
/wp-admin/options-writing.php0.159 s0.163 s+0.004 s3.02 MiB3.09 MiB+ 76.93 KiB
/wp-admin/media-new.php0.275 s0.238 s-0.037 s3 MiB3.09 MiB+ 100.51 KiB
/wp-admin/edit-tags.php?taxonomy=category0.197 s0.194 s-0.003 s3.01 MiB3.13 MiB+ 125.5 KiB
/wp-admin/post-new.php?post_type=page1.097 s0.738 s-0.359 s5.01 MiB5.18 MiB+ 173.02 KiB
/wp-admin/options-discussion.php0.288 s0.257 s-0.031 s3 MiB3.11 MiB+ 112.2 KiB
/wp-admin/edit-comments.php0.243 s0.194 s-0.049 s3.03 MiB3.13 MiB+ 109.57 KiB
/0.295 s0.250 s-0.045 s3.03 MiB3.04 MiB+ 13.61 KiB
Average 0.442 s0.385 s-0.057 s3.39 MiB3.5 MiB+ 108.16 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
PHP78.2%3,39941817
CSS11.2%488372
JSON4.8%20702
JavaScript4.6%1981956
Sass0.9%3813
Markdown0.4%1701
Total 4,347 651 31

PHP Code Analysis | More results »

Lines of code 3,506
Total complexity 501
Median class complexity 10.5
Median method complexity 1.0
Most complex class ar_for_wordpress_widget
Most complex function ar_display_model_viewer()
Classes 2
Methods 12
Functions 64

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 23

Custom Post Types 1

ID Name
armodelsAR Models

Sidebar Widgets 1

ID Name
ar_for_wordpress_widgetAR for Wordpress

Meta Boxes

{
    "armodels": {
        "postimagediv": {
            "title": "AR Image",
            "context": "side"
        },
        "ar_wp_advance_custom_attachment": {
            "title": "Augmented Reality Models",
            "context": "normal"
        }
    }
}

PHP Error Log 8 lines

[22-Jun-2023 01:50:10 UTC] PHP Deprecated:  Hook block_categories is <strong>deprecated</strong> since version 5.8.0! Use block_categories_all instead. in /wp-includes/functions.php on line 5788
[22-Jun-2023 01:50:10 UTC] PHP Deprecated:  Hook block_categories is <strong>deprecated</strong> since version 5.8.0! Use block_categories_all instead. in /wp-includes/functions.php on line 5788
[22-Jun-2023 01:50:10 UTC] PHP Warning:  Undefined variable $model_count in /wp-content/plugins/ar-for-wordpress/ar-model-fields.php on line 60
[22-Jun-2023 01:50:19 UTC] PHP Deprecated:  Hook block_categories is <strong>deprecated</strong> since version 5.8.0! Use block_categories_all instead. in /wp-includes/functions.php on line 5788
[22-Jun-2023 01:50:19 UTC] PHP Deprecated:  Hook block_categories is <strong>deprecated</strong> since version 5.8.0! Use block_categories_all instead. in /wp-includes/functions.php on line 5788
[22-Jun-2023 01:50:23 UTC] PHP Deprecated:  Hook block_categories is <strong>deprecated</strong> since version 5.8.0! Use block_categories_all instead. in /wp-includes/functions.php on line 5788
[22-Jun-2023 01:50:23 UTC] PHP Deprecated:  Hook block_categories is <strong>deprecated</strong> since version 5.8.0! Use block_categories_all instead. in /wp-includes/functions.php on line 5788
[22-Jun-2023 01:50:26 UTC] PHP Notice:  Function wp_enqueue_script() was called <strong>incorrectly</strong>. "wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Please see <a href="https://wordpress.org/documentation/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.8.0.) in /wp-includes/functions.php on line 5865
See also: All tests for this plugin, How to Hide AR for WordPress Admin Menus and More