Pay to Read 1.0

Does Pay to Read work with WordPress 5.8.1 and PHP 7.4.8? A smoke test was performed on .

Summary

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

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

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

Environment
WordPress version5.8.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs <10
WordPress.org page https://wordpress.org/plugins/pay-to-read/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 7

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=pay-to-read%2Fpay-to-read.php&plugin_status=all&paged=1&s&_wpnonce=a8139d6fe3
Aspect after-activation
HTTP status 200
Load time 0.367 s
Memory usage 3.07 MiB
JS errors None
Resource errors None

Premium Posts

Page screenshot: Premium Posts
URL /wp-admin/edit.php?post_type=p2r_premium_posts
Aspect menu-item
HTTP status 200
Load time 0.162 s
Memory usage 3.11 MiB
JS errors None
Resource errors None

Premium Posts → Add New Premium Post

Page screenshot: Premium Posts → Add New Premium Post
URL /wp-admin/post-new.php?post_type=p2r_premium_posts
Aspect menu-item
HTTP status 200
Load time 0.934 s
Memory usage 3.28 MiB
JS errors None
Resource errors None

Premium Posts → Premium Posts Category

Page screenshot: Premium Posts → Premium Posts Category
URL /wp-admin/edit-tags.php?taxonomy=premium_posts_category&post_type=p2r_premium_posts
Aspect menu-item
HTTP status 200
Load time 0.173 s
Memory usage 3.06 MiB
JS errors None
Resource errors None

Pay to Read Plugin

Page screenshot: Pay to Read Plugin
URL /wp-admin/admin.php?page=loopwi_p2r
Aspect menu-item
HTTP status 200
Load time 0.769 s
Memory usage 3.09 MiB
JS errors None
Resource errors None

Pay to Read Plugin → Settings

Page screenshot: Pay to Read Plugin → Settings
URL /wp-admin/admin.php?page=loopwi_p2r_settings
Aspect menu-item
HTTP status 200
Load time 0.462 s
Memory usage 3.07 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.411 s
Memory usage 2.94 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.346 s0.576 s+0.230 s3.08 MiB3.12 MiB+ 34.32 KiB
/wp-admin/edit.php0.178 s0.197 s+0.019 s3.11 MiB3.15 MiB+ 34.32 KiB
/wp-admin/post-new.php0.832 s1.122 s+0.290 s5.27 MiB5.31 MiB+ 43.1 KiB
/wp-admin/upload.php0.522 s0.430 s-0.092 s3.03 MiB3.06 MiB+ 33.19 KiB
/wp-admin/options-writing.php0.147 s0.148 s+0.001 s3.02 MiB3.04 MiB+ 17.16 KiB
/wp-admin/media-new.php0.225 s0.312 s+0.087 s3.01 MiB3.04 MiB+ 33.36 KiB
/wp-admin/edit-tags.php?taxonomy=category0.233 s0.266 s+0.033 s3.04 MiB3.07 MiB+ 34.27 KiB
/wp-admin/post-new.php?post_type=page0.999 s1.103 s+0.104 s5.26 MiB5.3 MiB+ 38.69 KiB
/wp-admin/options-discussion.php0.259 s0.305 s+0.046 s3 MiB3.04 MiB+ 33.67 KiB
/wp-admin/edit-comments.php0.207 s0.215 s+0.008 s3.04 MiB3.07 MiB+ 33.21 KiB
/0.317 s0.469 s+0.152 s2.96 MiB2.94 MiB- 16.09 KiB
Average 0.388 s0.468 s+0.080 s3.44 MiB3.47 MiB+ 29.02 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.

CSS
SVG
Language % Lines of code Comment lines Files
CSS73.7%8,6382347
SVG22.4%2,63032
PHP3.8%442644
JavaScript0.1%1301
Total 11,723 301 14

PHP Code Analysis | More results »

Lines of code 260
Total complexity 26
Median class complexity 0.0
Median method complexity 0.0
Most complex class
Most complex function loopwi_post__shortcode()
Classes 0
Methods 0
Functions 15

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 2

Options wp_options 1

Custom Post Types 1

ID Name
p2r_premium_postsPremium Posts

Meta Boxes

{
    "p2r_premium_posts": {
        "p2r_box_id": {
            "title": "YOUR CHARGE FOR READERS OF READ THIS ARTICLE",
            "context": "advanced"
        }
    },
    "p2r_cpt": {
        "p2r_box_id": {
            "title": "YOUR CHARGE FOR READERS OF READ THIS ARTICLE",
            "context": "advanced"
        }
    }
}

PHP Error Log 3 lines

[17-Sep-2021 21:23:26 UTC] PHP Notice:  Trying to get property 'pid' of non-object in /wp-content/plugins/pay-to-read/pay-to-read.php on line 89
[17-Sep-2021 21:23:29 UTC] PHP Notice:  Undefined variable: site_code in /wp-content/plugins/pay-to-read/includes/dashboard.php on line 19
[17-Sep-2021 21:23:29 UTC] PHP Notice:  Undefined variable: site_code in /wp-content/plugins/pay-to-read/includes/dashboard.php on line 39
See also: All tests for this plugin, How to Hide Pay to Read Admin Menus and Meta Boxes