AR for WordPress 7.1

Does AR for WordPress work with WordPress 6.6.2 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: 218.23 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.035 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=d78c252869
Aspect after-activation
HTTP status 200
Load time 0.632 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.287 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.298 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.254 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.683 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.285 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.233 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.181 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 2.334 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
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.356 s0.352 s-0.004 s3.47 MiB3.64 MiB+ 169.46 KiB
/wp-admin/edit.php0.214 s0.259 s+0.045 s3.54 MiB3.73 MiB+ 192.25 KiB
/wp-admin/post-new.php0.817 s1.341 s+0.524 s5.75 MiB6.16 MiB+ 420.47 KiB
/wp-admin/upload.php0.680 s0.584 s-0.096 s3.49 MiB3.64 MiB+ 156.9 KiB
/wp-admin/options-writing.php0.223 s0.272 s+0.049 s3.41 MiB3.62 MiB+ 213.47 KiB
/wp-admin/media-new.php0.289 s0.311 s+0.022 s3.4 MiB3.62 MiB+ 228.1 KiB
/wp-admin/edit-tags.php?taxonomy=category0.205 s0.262 s+0.057 s3.47 MiB3.64 MiB+ 173.52 KiB
/wp-admin/post-new.php?post_type=page0.618 s0.653 s+0.035 s5.75 MiB6.16 MiB+ 420.48 KiB
/wp-admin/options-discussion.php0.274 s0.341 s+0.067 s3.41 MiB3.62 MiB+ 215.78 KiB
/wp-admin/edit-comments.php0.455 s0.269 s-0.186 s3.49 MiB3.64 MiB+ 157.41 KiB
/0.343 s0.215 s-0.128 s3.45 MiB3.51 MiB+ 52.69 KiB
Average 0.407 s0.442 s+0.035 s3.88 MiB4.09 MiB+ 218.23 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.3%8,0712,52955
JSON36.9%6,575021
JavaScript12.2%2,1671,02610
CSS5.3%948882
Sass0.2%3813
Total 17,799 3,644 91

PHP Code Analysis | More results »

Lines of code 7,663
Total complexity 1,376
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 110

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

[11-Nov-2024 03:11:54 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /wp-includes/script-loader.php:2936) in /wp-includes/pluggable.php on line 1435
[11-Nov-2024 03:11:54 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /wp-includes/script-loader.php:2936) in /wp-includes/pluggable.php on line 1438
[11-Nov-2024 03:11:56 UTC] PHP Warning:  Undefined variable $encoded_redirect_url in /wp-content/plugins/ar-for-wordpress/includes/ar-settings.php on line 643
[11-Nov-2024 03:11:56 UTC] PHP Warning:  Undefined variable $encoded_redirect_url in /wp-content/plugins/ar-for-wordpress/includes/ar-settings.php on line 648
[11-Nov-2024 03:12:11 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 6085
See also: All tests for this plugin, How to Hide AR for WordPress Admin Menus and More