Social Warfare 4.4.0

Does Social Warfare work with WordPress 6.1.1 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 354.42 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.1.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 30,000+
WordPress.org page https://wordpress.org/plugins/social-warfare/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

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=social-warfare%2Fsocial-warfare.php&plugin_status=all&paged=1&s&_wpnonce=c1ce8718a3
Aspect after-activation
HTTP status 200
Load time 0.628 s
Memory usage 3.51 MiB
JS errors None
Resource errors None

Social Warfare

Page screenshot: Social Warfare
URL /wp-admin/admin.php?page=social-warfare
Aspect menu-item
HTTP status 200
Load time 0.585 s
Memory usage 3.52 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.269 s
Memory usage 3.54 MiB
JS errors
[
    {
        "message": "SyntaxError: Unexpected token ';'",
        "trace": null,
        "code": null
    }
]
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.529 s
Memory usage 5.23 MiB
JS errors
[
    {
        "message": "SyntaxError: Unexpected token ';'",
        "trace": null,
        "code": null
    },
    {
        "message": "SyntaxError: Unexpected token ';'",
        "trace": null,
        "code": null
    },
    {
        "message": "SyntaxError: Unexpected token ';'",
        "trace": null,
        "code": null
    },
    {
        "message": "SyntaxError: Unexpected token ';'",
        "trace": null,
        "code": null
    },
    {
        "message": "SyntaxError: Unexpected token ';'",
        "trace": null,
        "code": null
    },
    {
        "message": "SyntaxError: Unexpected token ';'",
        "trace": null,
        "code": null
    },
    {
        "message": "SyntaxError: Unexpected token ';'",
        "trace": null,
        "code": null
    },
    {
        "message": "SyntaxError: Unexpected token ';'",
        "trace": null,
        "code": null
    },
    {
        "message": "SyntaxError: Unexpected token ';'",
        "trace": null,
        "code": null
    },
    {
        "message": "SyntaxError: Unexpected token ';'",
        "trace": null,
        "code": null
    },
    {
        "message": "SyntaxError: Unexpected token ';'",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.290 s0.283 s-0.007 s3.05 MiB3.41 MiB+ 371.78 KiB
/wp-admin/edit.php0.195 s0.215 s+0.020 s3.07 MiB3.44 MiB+ 374.01 KiB
/wp-admin/post-new.php0.807 s1.000 s+0.193 s4.97 MiB5.28 MiB+ 316.19 KiB
/wp-admin/upload.php0.547 s0.323 s-0.224 s2.99 MiB3.34 MiB+ 353.16 KiB
/wp-admin/options-writing.php0.157 s0.193 s+0.036 s2.99 MiB3.32 MiB+ 341.05 KiB
/wp-admin/media-new.php0.324 s0.185 s-0.139 s2.97 MiB3.32 MiB+ 365.31 KiB
/wp-admin/edit-tags.php?taxonomy=category0.188 s0.342 s+0.154 s2.98 MiB3.34 MiB+ 371.45 KiB
/wp-admin/post-new.php?post_type=page0.634 s0.727 s+0.093 s4.96 MiB5.26 MiB+ 310.88 KiB
/wp-admin/options-discussion.php0.216 s0.216 s+0.000 s2.98 MiB3.32 MiB+ 354.9 KiB
/wp-admin/edit-comments.php0.188 s0.237 s+0.049 s3 MiB3.35 MiB+ 353.16 KiB
/0.291 s0.244 s-0.047 s2.94 MiB3.32 MiB+ 386.7 KiB
Average 0.349 s0.360 s+0.012 s3.35 MiB3.7 MiB+ 354.42 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
Sass
JavaScript
Language % Lines of code Comment lines Files
PHP36.9%6,6208,31964
CSS30.9%5,5479710
Sass17.5%3,1336519
JavaScript13.1%2,3421,22310
JSON1.1%20502
SVG0.4%6601
Markdown0.1%1701
Total 17,930 9,704 107

PHP Code Analysis | More results »

Lines of code 6,615
Total complexity 1,405
Median class complexity 15.0
Median method complexity 2.0
Most complex class SWP_Post_Cache
Most complex function SWP_Permalink::get_alt_permalink()
Classes 62
Methods 425
Functions 5

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 4

Sidebar Widgets 1

ID Name
swp_popular_posts_widgetSocial Warfare: Popular Posts

PHP Error Log 5 lines

[21-Jan-2023 00:12:02 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 5758
[21-Jan-2023 00:12:02 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 5758
[21-Jan-2023 00:12:06 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 5758
[21-Jan-2023 00:12:06 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 5758
[21-Jan-2023 00:12:09 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/support/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 5835
See also: All tests for this plugin, How to Hide the "Social Warfare" Admin Menu