Google Adsense & Banner Ads by AdsforWP 1.9.20

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.138 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=e1b458743f
Aspect after-activation
HTTP status 200
Load time 0.772 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.556 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.304 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.376 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.327 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.315 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.318 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.310 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.254 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.973 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 2.148 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.346 s0.439 s+0.093 s3.72 MiB4.93 MiB+ 1.21 MiB
/wp-admin/edit.php0.184 s0.342 s+0.158 s3.75 MiB4.95 MiB+ 1.2 MiB
/wp-admin/post-new.php0.944 s1.390 s+0.446 s5.53 MiB6.61 MiB+ 1.08 MiB
/wp-admin/upload.php0.427 s0.650 s+0.223 s3.68 MiB4.86 MiB+ 1.18 MiB
/wp-admin/options-writing.php0.160 s0.293 s+0.133 s3.61 MiB4.86 MiB+ 1.25 MiB
/wp-admin/media-new.php0.438 s0.310 s-0.128 s3.66 MiB4.86 MiB+ 1.2 MiB
/wp-admin/edit-tags.php?taxonomy=category0.207 s0.349 s+0.142 s3.68 MiB4.89 MiB+ 1.21 MiB
/wp-admin/post-new.php?post_type=page0.906 s0.959 s+0.053 s5.53 MiB6.61 MiB+ 1.08 MiB
/wp-admin/options-discussion.php0.235 s0.365 s+0.130 s3.59 MiB4.86 MiB+ 1.27 MiB
/wp-admin/edit-comments.php0.224 s0.344 s+0.120 s3.69 MiB4.89 MiB+ 1.2 MiB
/0.272 s0.423 s+0.151 s3.55 MiB3.82 MiB+ 282.19 KiB
Average 0.395 s0.533 s+0.138 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,8144,44665
JavaScript7.6%1,982646
CSS1.6%417242
Total 26,213 4,534 73

PHP Code Analysis | More results »

Lines of code 23,876
Total complexity 4,228
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

[28-Jun-2022 06:50:50 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