Google Adsense & Banner Ads by AdsforWP 1.9.19

Does "Google Adsense & Banner Ads by AdsforWP" work with WordPress 6.0 and PHP 7.4.8? A smoke test was performed on .

Summary

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

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

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

Environment
WordPress version6.0
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 3,000+
WordPress.org page https://wordpress.org/plugins/ads-for-wp/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 11

Ads ‹ Test site — WordPress

Page screenshot: Ads ‹ Test site — WordPress
URL /wp-admin/edit.php?post_type=adsforwp
Requested URL /wp-admin/plugins.php?action=activate&plugin=ads-for-wp%2Fads-for-wp.php&plugin_status=all&paged=1&s&_wpnonce=3273375d73
Aspect after-activation
HTTP status 200
Load time 1.117 s
Memory usage 4.93 MiB
JS errors None
Resource errors None

Ads

Page screenshot: Ads
URL /wp-admin/edit.php?post_type=adsforwp
Aspect menu-item
HTTP status 200
Load time 0.308 s
Memory usage 4.93 MiB
JS errors None
Resource errors None

Ads → Groups

Page screenshot: Ads → Groups
URL /wp-admin/edit.php?post_type=adsforwp-groups
Aspect menu-item
HTTP status 200
Load time 0.291 s
Memory usage 4.93 MiB
JS errors None
Resource errors None

Ads → Settings

Page screenshot: Ads → Settings
URL /wp-admin/edit.php?post_type=adsforwp&page=adsforwp
Aspect menu-item
HTTP status 200
Load time 0.301 s
Memory usage 4.87 MiB
JS errors None
Resource errors None

Ads → Settings → Tools

Page screenshot: Ads → Settings →  Tools
URL /wp-admin/admin.php?page=adsforwp&tab=tools
Aspect menu-item-tab
HTTP status 200
Load time 0.285 s
Memory usage 4.87 MiB
JS errors None
Resource errors None

Ads → Settings → Advanced

Page screenshot: Ads → Settings →  Advanced
URL /wp-admin/admin.php?page=adsforwp&tab=advance
Aspect menu-item-tab
HTTP status 200
Load time 0.336 s
Memory usage 4.87 MiB
JS errors None
Resource errors None

Ads → Settings → Support

Page screenshot: Ads → Settings →  Support
URL /wp-admin/admin.php?page=adsforwp&tab=support
Aspect menu-item-tab
HTTP status 200
Load time 0.258 s
Memory usage 4.87 MiB
JS errors None
Resource errors None

Ads → Analytics

Page screenshot: Ads → Analytics
URL /wp-admin/edit.php?post_type=adsforwp&page=adsforwp-analytics
Aspect menu-item
HTTP status 200
Load time 0.270 s
Memory usage 4.86 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.82 MiB
JS errors None
Resource errors None

Add New Post ‹ Test site — WordPress

Page screenshot: Add New Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.666 s
Memory usage 6.61 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.834 s
Memory usage 6.58 MiB
JS errors
External errors: The following JavaScript errors were probably triggered by WordPress itself, or by compatibility issues in the test runner. They are not related to the plugin.
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetHeight')\n    at t (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10419)\n    at IntersectionObserver.n.threshold (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10591)",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetHeight')\n    at t (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10419)\n    at IntersectionObserver.n.threshold (/wp-includes/js/dist/widgets.min.js?ver=80e98954519d1dad7a91a2248dbc2cc9:7:10591)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.366 s0.863 s+0.497 s3.72 MiB4.93 MiB+ 1.21 MiB
/wp-admin/edit.php0.201 s0.419 s+0.218 s3.75 MiB4.95 MiB+ 1.2 MiB
/wp-admin/post-new.php0.799 s1.001 s+0.202 s5.53 MiB6.61 MiB+ 1.08 MiB
/wp-admin/upload.php0.408 s0.470 s+0.062 s3.68 MiB4.86 MiB+ 1.18 MiB
/wp-admin/options-writing.php0.311 s0.278 s-0.033 s3.61 MiB4.86 MiB+ 1.25 MiB
/wp-admin/media-new.php0.300 s0.264 s-0.036 s3.66 MiB4.86 MiB+ 1.2 MiB
/wp-admin/edit-tags.php?taxonomy=category0.210 s0.311 s+0.101 s3.68 MiB4.89 MiB+ 1.21 MiB
/wp-admin/post-new.php?post_type=page0.704 s0.982 s+0.278 s5.53 MiB6.61 MiB+ 1.08 MiB
/wp-admin/options-discussion.php0.435 s0.533 s+0.098 s3.59 MiB4.86 MiB+ 1.27 MiB
/wp-admin/edit-comments.php0.222 s0.371 s+0.149 s3.69 MiB4.89 MiB+ 1.2 MiB
/0.296 s0.252 s-0.044 s3.55 MiB3.82 MiB+ 282.19 KiB
Average 0.387 s0.522 s+0.136 s4 MiB5.11 MiB+ 1.11 MiB

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
Language % Lines of code Comment lines Files
PHP90.8%23,8024,44665
JavaScript7.6%1,982646
CSS1.6%417242
Total 26,201 4,534 73

PHP Code Analysis | More results »

Lines of code 23,864
Total complexity 4,226
Median class complexity 8.0
Median method complexity 1.0
Most complex class adsforwp_output_functions
Most complex function adsforwp_output_functions::adsforwp_get_ad_code()
Classes 201
Methods 1,815
Functions 67

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.

Database Tables 1

Options wp_options 4

Custom Post Types 2

ID Name
adsforwpAds
adsforwp-groupsGroups

Sidebar Widgets 1

ID Name
adsforwp_ads_widgetAds For WP Ads

Meta Boxes

{
    "post": {
        "showadsforcurrentpag": {
            "title": "Show Ads for Current Page?",
            "context": "side"
        }
    },
    "adsforwp": {
        "adtype": {
            "title": "Ad Type",
            "context": "normal"
        },
        "display-metabox": {
            "title": "Display",
            "context": "normal"
        },
        "adsforwp_placement_metabox": {
            "title": "Advanced Display Conditions",
            "context": "normal"
        },
        "adsforwp_visitor_condition_metabox": {
            "title": "User Targeting",
            "context": "normal"
        },
        "setexpiredate": {
            "title": "Set Expire Date",
            "context": "side"
        },
        "adsforwp-location": {
            "title": "AMP",
            "context": "side"
        }
    },
    "adsforwp-groups": {
        "display-metabox": {
            "title": "Display",
            "context": "normal"
        },
        "adsforwp_placement_metabox": {
            "title": "Advanced Display Conditions",
            "context": "normal"
        },
        "adsforwp_visitor_condition_metabox": {
            "title": "User Targeting",
            "context": "normal"
        },
        "adgroup": {
            "title": "Ad Group",
            "context": "advanced"
        },
        "setexpiredate": {
            "title": "Set Expire Date",
            "context": "side"
        },
        "adsforwp-location": {
            "title": "AMP",
            "context": "side"
        }
    }
}

PHP Error Log 1 lines

[17-Jun-2022 20:52:45 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 5831
See also: All tests for this plugin, How to Hide Easy Google Adsense and Banner Ads Manager - AdsforWP Admin Menus and Meta Boxes