Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/pay-to-read/pay-to-read.php+89
Trying to get property 'pid' of non-object
Server metrics [RAM: ▲0.05MB] [CPU: ▼309.51ms] Passed 4 tests
Analyzing server-side resources used by Pay to Read - Create paid content on your website. Monetize your website
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.11 | 57.20 ▼2.75 |
Dashboard /wp-admin | 3.49 ▲0.08 | 35.28 ▲0.94 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 39.59 ▲3.46 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 99.92 ▼1,239.06 |
Media Library /wp-admin/upload.php | 3.36 ▲0.07 | 27.02 ▲2.82 |
All Premium Posts /wp-admin/edit.php?post_type=p2r_premium_posts | 3.41 | 29.05 |
Settings /wp-admin/admin.php?page=loopwi_p2r_settings | 3.60 | 42.76 |
Pay to Read Plugin /wp-admin/admin.php?page=loopwi_p2r | 3.60 | 36.61 |
Premium Posts Category /wp-admin/edit-tags.php?taxonomy=premium_posts_category&post_type=p2r_premium_posts | 3.36 | 34.46 |
Add New Premium Post /wp-admin/post-new.php?post_type=p2r_premium_posts | 3.71 | 51.04 |
Server storage [IO: ▲3.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_p2rplugins_settings |
wp_p2rplugins_posts |
New WordPress options |
---|
my_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pay to Read - Create paid content on your website. Monetize your website
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,958 ▲235 | 16.55 ▲0.94 | 8.37 ▲2.76 | 2.26 ▼0.31 |
Dashboard /wp-admin | 2,963 ▲102 | 6.01 ▼0.17 | 125.24 ▼5.28 | 227.35 ▼16.58 |
Posts /wp-admin/edit.php | 2,742 ▲54 | 3.26 ▲0.03 | 63.79 ▼1.99 | 140.58 ▲0.67 |
Add New Post /wp-admin/post-new.php | 1,803 ▲135 | 22.06 ▲2.55 | 447.25 ▲24.22 | 205.83 ▲47.23 |
Media Library /wp-admin/upload.php | 1,768 ▲74 | 5.52 ▲0.05 | 185.65 ▲23.64 | 187.28 ▼4.80 |
All Premium Posts /wp-admin/edit.php?post_type=p2r_premium_posts | 1,443 | 2.92 | 58.58 | 118.23 |
Settings /wp-admin/admin.php?page=loopwi_p2r_settings | 1,287 | 2.57 | 59.49 | 63.65 |
Pay to Read Plugin /wp-admin/admin.php?page=loopwi_p2r | 1,401 | 2.52 | 53.93 | 128.91 |
Premium Posts Category /wp-admin/edit-tags.php?taxonomy=premium_posts_category&post_type=p2r_premium_posts | 1,693 | 2.77 | 56.60 | 111.83 |
Add New Premium Post /wp-admin/post-new.php?post_type=p2r_premium_posts | 3,089 | 10.00 | 189.18 | 225.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables detected upon uninstall: 2 tables
- wp_p2rplugins_settings
- wp_p2rplugins_posts
- Zombie WordPress options detected upon uninstall: 1 option
- my_db_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=loopwi_p2r
- > Notice in wp-content/plugins/pay-to-read/includes/dashboard.php+39
Undefined variable: site_code
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pay-to-read/includes/metaboxes.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/pay-to-read/includes/dashboard.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/pay-to-read/includes/settings.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=loopwi_p2r
- > Network (severe)
wp-content/plugins/pay-to-read/css/plugins.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=loopwi_p2r
- > Network (severe)
wp-content/themes/twentytwentytwo/js/jquery.min.js?ver=3.6.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #6, #7 in pay-to-read/assets to your readme.txt
pay-to-read/pay-to-read.php 92% from 13 tests
The principal PHP file in "Pay to Read - Create paid content on your website. Monetize your website" v. 2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin11,705 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 23 | 268 | 8,641 |
SVG | 2 | 1 | 3 | 2,630 |
PHP | 4 | 104 | 64 | 418 |
JavaScript | 4 | 1 | 11 | 16 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/p2r.png | 10.87KB | 4.84KB | ▼ 55.49% |
images/bitnami.css.png | 8.35KB | 4.78KB | ▼ 42.77% |
images/payment-methods.png | 42.08KB | 3.65KB | ▼ 91.32% |
images/logo.png | 10.49KB | 4.83KB | ▼ 53.94% |
images/logo-light.png | 4.44KB | 3.26KB | ▼ 26.56% |