Google Adsense & Banner Ads by AdsforWP 1.9.21

Does "Google Adsense & Banner Ads by AdsforWP" work with WordPress 6.0.1 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.1 MiB
The average PHP memory usage increased by this amount after activating by the plugin.

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

Environment
WordPress version6.0.1
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=3b3a01724d
Aspect after-activation
HTTP status 200
Load time 0.688 s
Memory usage 4.94 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.425 s
Memory usage 4.94 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.529 s
Memory usage 4.94 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.332 s
Memory usage 4.88 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.294 s
Memory usage 4.88 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.274 s
Memory usage 4.88 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.246 s
Memory usage 4.88 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.238 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.240 s
Memory usage 3.83 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.769 s
Memory usage 6.63 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.101 s
Memory usage 6.59 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
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.324 s0.399 s+0.075 s3.72 MiB4.94 MiB+ 1.22 MiB
/wp-admin/edit.php0.179 s0.296 s+0.117 s3.75 MiB4.96 MiB+ 1.2 MiB
/wp-admin/post-new.php0.736 s1.065 s+0.329 s5.54 MiB6.63 MiB+ 1.08 MiB
/wp-admin/upload.php0.386 s0.539 s+0.153 s3.68 MiB4.87 MiB+ 1.18 MiB
/wp-admin/options-writing.php0.144 s0.248 s+0.104 s3.62 MiB4.87 MiB+ 1.25 MiB
/wp-admin/media-new.php0.427 s0.246 s-0.181 s3.66 MiB4.86 MiB+ 1.2 MiB
/wp-admin/edit-tags.php?taxonomy=category0.180 s0.296 s+0.116 s3.69 MiB4.89 MiB+ 1.21 MiB
/wp-admin/post-new.php?post_type=page0.695 s0.637 s-0.058 s5.54 MiB6.63 MiB+ 1.08 MiB
/wp-admin/options-discussion.php0.216 s0.483 s+0.267 s3.6 MiB4.87 MiB+ 1.27 MiB
/wp-admin/edit-comments.php0.218 s0.516 s+0.298 s3.69 MiB4.9 MiB+ 1.2 MiB
/0.282 s0.363 s+0.081 s3.6 MiB3.83 MiB+ 229.82 KiB
Average 0.344 s0.463 s+0.118 s4.01 MiB5.11 MiB+ 1.1 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.9%23,9244,44665
JavaScript7.5%1,982646
CSS1.6%417242
Total 26,323 4,534 73

PHP Code Analysis | More results »

Lines of code 23,986
Total complexity 4,261
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,817
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

[15-Jul-2022 04:13:31 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