AR for WordPress 7.0

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

Summary

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

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

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

Environment
WordPress version6.6.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 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=ar-for-wordpress%2Far-wordpress.php&plugin_status=all&paged=1&s&_wpnonce=4171219700
Aspect after-activation
HTTP status 200
Load time 0.604 s
Memory usage 3.65 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.302 s
Memory usage 3.68 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 0.426 s
Memory usage N/A
JS errors None
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.269 s
Memory usage 3.63 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 0.740 s
Memory usage 3.67 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.277 s
Memory usage 3.62 MiB
JS errors None
Resource errors None

AR Model Shop

Page screenshot: AR Model Shop
URL /wp-admin/admin.php?page=ar-modelshop
Aspect menu-item
HTTP status 200
Load time 0.275 s
Memory usage 3.62 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.182 s
Memory usage N/A
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 2.562 s
Memory usage 5.98 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?ver=1680240294:1:736)\n    at t (/wp-content/plugins/ar-for-wordpress/gutenberg-block/dist/blocks.build.js?ver=1680240294:1:101)\n    at Object.<anonymous> (/wp-content/plugins/ar-for-wordpress/gutenberg-block/dist/blocks.build.js?ver=1680240294:1:540)\n    at t (/wp-content/plugins/ar-for-wordpress/gutenberg-block/dist/blocks.build.js?ver=1680240294:1:101)\n    at /wp-content/plugins/ar-for-wordpress/gutenberg-block/dist/blocks.build.js?ver=1680240294:1:451\n    at /wp-content/plugins/ar-for-wordpress/gutenberg-block/dist/blocks.build.js?ver=1680240294:1:460",
        "trace": null,
        "code": null
    },
    {
        "message": "Object",
        "trace": null,
        "code": null
    },
    {
        "message": "Object",
        "trace": null,
        "code": null
    },
    {
        "message": "Object",
        "trace": null,
        "code": null
    },
    {
        "message": "Object",
        "trace": null,
        "code": null
    },
    {
        "message": "Object",
        "trace": null,
        "code": null
    },
    {
        "message": "Object",
        "trace": null,
        "code": null
    },
    {
        "message": "Object",
        "trace": null,
        "code": null
    },
    {
        "message": "Object",
        "trace": null,
        "code": null
    },
    {
        "message": "Object",
        "trace": null,
        "code": null
    },
    {
        "message": "Object",
        "trace": null,
        "code": null
    },
    {
        "message": "Object",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.355 s0.434 s+0.079 s3.47 MiB3.64 MiB+ 167.18 KiB
/wp-admin/edit.php0.218 s0.288 s+0.070 s3.54 MiB3.72 MiB+ 190.28 KiB
/wp-admin/post-new.php0.815 s1.620 s+0.805 s5.75 MiB6.16 MiB+ 418.5 KiB
/wp-admin/upload.php0.600 s0.591 s-0.009 s3.49 MiB3.64 MiB+ 154.62 KiB
/wp-admin/options-writing.php0.248 s0.310 s+0.062 s3.41 MiB3.62 MiB+ 211.5 KiB
/wp-admin/media-new.php0.260 s0.326 s+0.066 s3.4 MiB3.62 MiB+ 226.13 KiB
/wp-admin/edit-tags.php?taxonomy=category0.212 s0.257 s+0.045 s3.47 MiB3.64 MiB+ 171.55 KiB
/wp-admin/post-new.php?post_type=page0.632 s0.815 s+0.183 s5.75 MiB6.16 MiB+ 418.51 KiB
/wp-admin/options-discussion.php0.249 s0.384 s+0.135 s3.41 MiB3.62 MiB+ 213.81 KiB
/wp-admin/edit-comments.php0.247 s0.280 s+0.033 s3.49 MiB3.64 MiB+ 155.44 KiB
/0.608 s0.222 s-0.386 s3.45 MiB
Average 0.404 s0.502 s+0.098 s3.88 MiB4.14 MiB+ 232.75 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
JSON
JavaScript
Language % Lines of code Comment lines Files
PHP45.1%7,9782,48355
JSON37.1%6,575021
JavaScript12.2%2,1691,03410
CSS5.4%948882
Sass0.2%3813
Total 17,708 3,606 91

PHP Code Analysis | More results »

Lines of code 7,574
Total complexity 1,365
Median class complexity 10.0
Median method complexity 2.5
Most complex class AR_Plugin
Most complex function ar_wp_model_fields()
Classes 27
Methods 138
Functions 109

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 43

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 Poster Image",
            "context": "side"
        },
        "ar_wp_advance_custom_attachment": {
            "title": "Augmented Reality Models",
            "context": "normal"
        }
    }
}

PHP Error Log 583 lines

[05-Nov-2024 00:15:31 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_wc_endpoint_url() in /wp-content/plugins/ar-for-wordpress/includes/ar-model-shop.php:220
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): ar_add_import_button_js()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/general-template.php(3081): do_action()
#4 /wp-content/themes/twentyseventeen/footer.php(48): wp_footer()
#5 /wp-includes/template.php(810): require_once('...')
#6 /wp-includes/template.php(745): load_template()
#7 /wp-includes/general-template.php(92): locate_template()
#8 /wp-content/themes/twentyseventeen/404.php(35): get_footer()
#9 /wp-includes/template-loader.php(106): include('...')
#10 /wp-blog-header.php(19): require_once('...')
#11 /index.php(17): require('...')
#12 {main}
  thrown in /wp-content/plugins/ar-for-wordpress/includes/ar-model-shop.php on line 220
[05-Nov-2024 00:15:32 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_wc_endpoint_url() in /wp-content/plugins/ar-for-wordpress/includes/ar-model-shop.php:220
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): ar_add_import_button_js()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/general-template.php(3081): do_action()
#4 /wp-content/themes/twentyseventeen/footer.php(48): wp_footer()
#5 /wp-includes/template.php(810): require_once('...')
#6 /wp-includes/template.php(745): load_template()
#7 /wp-includes/general-template.php(92): locate_template()
#8 /wp-content/themes/twentyseventeen/404.php(35): get_footer()
#9 /wp-includes/template-loader.php(106): include('...')
#10 /wp-blog-header.php(19): require_once('...')
#11 /index.php(17): require('...')
#12 {main}
  thrown in /wp-content/plugins/ar-for-wordpress/includes/ar-model-shop.php on line 220
[05-Nov-2024 00:15:32 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_wc_endpoint_url() in /wp-content/plugins/ar-for-wordpress/includes/ar-model-shop.php:220
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): ar_add_import_button_js()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/general-template.php(3081): do_action()
#4 /wp-content/themes/twentyseventeen/footer.php(48): wp_footer()
#5 /wp-includes/template.php(810): require_once('...')
#6 /wp-includes/template.php(745): load_template()
#7 /wp-includes/general-template.php(92): locate_template()
#8 /wp-content/themes/twentyseventeen/404.php(35): get_footer()
#9 /wp-includes/template-loader.php(106): include('...')
#10 /wp-blog-header.php(19): require_once('...')
#11 /index.php(17): require('...')
#12 {main}
  thrown in /wp-content/plugins/ar-for-wordpress/includes/ar-model-shop.php on line 220
[05-Nov-2024 00:15:33 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /wp-includes/script-loader.php:2378) in /wp-includes/pluggable.php on line 1435
[05-Nov-2024 00:15:33 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /wp-includes/script-loader.php:2378) in /wp-includes/pluggable.php on line 1438
[05-Nov-2024 00:15:34 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_wc_endpoint_url() in /wp-content/plugins/ar-for-wordpress/includes/ar-model-shop.php:220
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): ar_add_import_button_js()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/general-template.php(3081): do_action()
#4 /wp-content/themes/twentyseventeen/footer.php(48): wp_footer()
#5 /wp-includes/template.php(810): require_once('...')
#6 /wp-includes/template.php(745): load_template()
#7 /wp-includes/general-template.php(92): locate_template()
#8 /wp-content/themes/twentyseventeen/404.php(35): get_footer()
#9 /wp-includes/template-loader.php(106): include('...')
#10 /wp-blog-header.php(19): require_once('...')
#11 /index.php(17): require('...')
#12 {main}
  thrown in /wp-content/plugins/ar-for-wordpress/includes/ar-model-shop.php on line 220
[05-Nov-2024 00:15:35 UTC] PHP Warning:  Undefined variable $encoded_redirect_url in /wp-content/plugins/ar-for-wordpress/includes/ar-settings.php on line 640
[05-Nov-2024 00:15:35 UTC] PHP Warning:  Undefined variable $encoded_redirect_url in /wp-content/plugins/ar-for-wordpress/includes/ar-settings.php on line 645
[05-Nov-2024 00:15:35 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_wc_endpoint_url() in /wp-content/plugins/ar-for-wordpress/includes/ar-model-shop.php:220
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): ar_add_import_button_js()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/general-template.php(3081): do_action()
#4 /wp-content/themes/twentyseventeen/footer.php(48): wp_footer()
#5 /wp-includes/template.php(810): require_once('...')
#6 /wp-includes/template.php(745): load_template()
#7 /wp-includes/general-template.php(92): locate_template()
#8 /wp-content/themes/twentyseventeen/404.php(35): get_footer()
#9 /wp-includes/template-loader.php(106): include('...')
#10 /wp-blog-header.php(19): require_once('...')
#11 /index.php(17): require('...')
#12 {main}
  thrown in /wp-content/plugins/ar-for-wordpress/includes/ar-model-shop.php on line 220
[05-Nov-2024 00:15:37 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function is_wc_endpoint_url() in /wp-content/plugins/ar-for-wordpress/includes/ar-model-shop.php:220
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): ar_add_import_button_js()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/general-template.php(3081): do_action()
#4 /wp-content/themes/twentyseventeen/footer.php(48): wp_footer()
#5 /wp-includes/template.php(810): require_once('...')
#6 /wp-includes/template.php(745): load_template()
#7 /wp-includes/general-template.php(92): locate_template()
#8 /wp-content/themes/twentyseventeen/404.php(35): get_footer()
#9 /wp-includes/template-loader.php(106): include('...')
#10 /wp-blog-header.php(19): require_once('...')
#11 /index.php(17): require('...')
#12 {main}
  thrown in /wp-content/plugins/ar-for-wordpress/includes/ar-model-shop.php on line 220

(+483 more lines)
See also: All tests for this plugin, How to Hide AR for WordPress Admin Menus and More