AR for WordPress 7.2

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

Summary

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

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

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

Environment
WordPress version6.7
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=b42f617b09
Aspect after-activation
HTTP status 200
Load time 0.543 s
Memory usage 3.66 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.266 s
Memory usage 3.68 MiB
JS errors None
Resource errors None

AR Models → Add New Models

Page screenshot: AR Models → Add New Models
URL /wp-admin/post-new.php?post_type=armodels
Aspect menu-item
HTTP status 200
Load time 0.373 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.238 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.619 s
Memory usage 3.68 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.224 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.230 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.187 s
Memory usage 3.51 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.776 s
Memory usage 6.02 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
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.302 s0.407 s+0.105 s3.48 MiB3.64 MiB+ 165.12 KiB
/wp-admin/edit.php0.193 s0.255 s+0.062 s3.54 MiB3.73 MiB+ 191.82 KiB
/wp-admin/post-new.php0.792 s1.126 s+0.334 s5.92 MiB6.21 MiB+ 295.52 KiB
/wp-admin/upload.php0.541 s0.603 s+0.062 s3.49 MiB3.65 MiB+ 154.59 KiB
/wp-admin/options-writing.php0.205 s0.277 s+0.072 s3.47 MiB3.62 MiB+ 153.59 KiB
/wp-admin/media-new.php0.266 s0.324 s+0.058 s3.46 MiB3.62 MiB+ 161.79 KiB
/wp-admin/edit-tags.php?taxonomy=category0.189 s0.229 s+0.040 s3.47 MiB3.64 MiB+ 171.21 KiB
/wp-admin/post-new.php?post_type=page0.534 s1.028 s+0.494 s5.92 MiB6.21 MiB+ 295.52 KiB
/wp-admin/options-discussion.php0.266 s0.304 s+0.038 s3.47 MiB3.62 MiB+ 149.46 KiB
/wp-admin/edit-comments.php0.206 s0.271 s+0.065 s3.49 MiB3.65 MiB+ 155.09 KiB
/0.283 s0.355 s+0.072 s3.48 MiB3.51 MiB+ 31.02 KiB
Average 0.343 s0.471 s+0.127 s3.93 MiB4.1 MiB+ 174.98 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.5%8,1232,54355
JSON36.8%6,575021
JavaScript12.2%2,1801,02910
CSS5.3%948882
Sass0.2%3813
Total 17,864 3,661 91

PHP Code Analysis | More results »

Lines of code 7,683
Total complexity 1,378
Median class complexity 11.0
Median method complexity 3.0
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 5 lines

[16-Nov-2024 06:01:44 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /wp-includes/script-loader.php:2387) in /wp-includes/pluggable.php on line 1435
[16-Nov-2024 06:01:44 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /wp-includes/script-loader.php:2387) in /wp-includes/pluggable.php on line 1438
[16-Nov-2024 06:01:46 UTC] PHP Warning:  Undefined variable $encoded_redirect_url in /wp-content/plugins/ar-for-wordpress/includes/ar-settings.php on line 643
[16-Nov-2024 06:01:46 UTC] PHP Warning:  Undefined variable $encoded_redirect_url in /wp-content/plugins/ar-for-wordpress/includes/ar-settings.php on line 648
[16-Nov-2024 06:01:59 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://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.8.0.) in /wp-includes/functions.php on line 6114
See also: All tests for this plugin, How to Hide AR for WordPress Admin Menus and More