Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.15ms] Passed 4 tests
Server-side resources used by Dropp Pay Per Use
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.07 ▼0.69 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.57 ▼2.15 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 45.58 ▼8.14 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 82.30 ▼17.35 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 34.96 ▼0.95 |
3. Set Pricing Plan /wp-admin/admin.php?page=dropp-cc-paywall-current-restrictions | 3.50 | 39.58 |
Welcome & Quick Start /wp-admin/admin.php?page=dropp-cc-paywall | 3.33 | 38.10 |
View Recent Purchases /wp-admin/admin.php?page=dropp-cc-paywall-subscriptions | 3.34 | 38.75 |
1. Link Dropp Account /wp-admin/admin.php?page=dropp-cc-paywall-account | 3.36 | 38.42 |
2. Create System pages /wp-admin/admin.php?page=dropp-cc-paywall-settings | 3.38 | 40.66 |
View Logs /wp-admin/admin.php?page=dropp-cc-paywall-logs | 3.31 | 37.26 |
Server storage [IO: ▲1.85MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 54 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_dropp_paywall_subscriptions |
wp_dropp_paywall_plans |
wp_dropp_paywall_restrictions |
wp_dropp_paywall_logs |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Dropp Pay Per Use
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,492 ▲2,735 | 16.86 ▲2.11 | 575.90 ▲573.83 | 40.14 ▼10.41 |
Dashboard /wp-admin | 2,246 ▲61 | 5.89 ▼0.03 | 98.32 ▼6.94 | 91.49 ▲52.89 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.00 ▼0.02 | 40.46 ▲5.41 | 33.52 ▼4.99 |
Add New Post /wp-admin/post-new.php | 6,709 ▲5,190 | 29.42 ▲6.33 | 903.45 ▲262.77 | 58.10 ▲1.36 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.24 ▲0.06 | 96.78 ▲4.27 | 70.19 ▲29.28 |
3. Set Pricing Plan /wp-admin/admin.php?page=dropp-cc-paywall-current-restrictions | 1,536 | 4.58 | 84.92 | 68.98 |
Welcome & Quick Start /wp-admin/admin.php?page=dropp-cc-paywall | 1,291 | 4.47 | 83.55 | 74.68 |
View Recent Purchases /wp-admin/admin.php?page=dropp-cc-paywall-subscriptions | 1,196 | 4.44 | 81.20 | 69.76 |
1. Link Dropp Account /wp-admin/admin.php?page=dropp-cc-paywall-account | 1,342 | 4.52 | 83.10 | 59.11 |
2. Create System pages /wp-admin/admin.php?page=dropp-cc-paywall-settings | 1,608 | 4.49 | 83.63 | 73.59 |
View Logs /wp-admin/admin.php?page=dropp-cc-paywall-logs | 1,187 | 4.44 | 83.22 | 52.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: pay-per-use, subscription, paywall, publication, micropayment
dropp-pay-per-use/dropp-pay-per-use.php 85% from 13 tests
"Dropp Pay Per Use" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/i18n/languages/" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin4,649 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 627 | 547 | 3,354 |
JavaScript | 4 | 141 | 15 | 661 |
CSS | 3 | 133 | 13 | 634 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 35.70 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 25 | 31.25% |
▷ Public methods | 61 | 76.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 23.75% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 1.49MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/list-page/icon-lock-secure.png | 104.93KB | 34.59KB | ▼ 67.04% |
assets/images/settings-page/my-subscriptions-page-output.png | 271.99KB | 86.88KB | ▼ 68.06% |
assets/banner-772x250.png | 87.37KB | 27.68KB | ▼ 68.32% |
assets/icon-256x256.png | 9.00KB | 4.50KB | ▼ 50.04% |
assets/images/dropp-icon.png | 1.12KB | 1.12KB | 0.00% |