Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.62MB] [CPU: ▲0.91ms] Passed 4 tests
A check of server-side resources used by Subscription Billing by Billflow
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.35 ▲1.89 | 39.94 ▼0.62 |
Dashboard /wp-admin | 5.20 ▲1.90 | 48.40 ▲0.09 |
Posts /wp-admin/edit.php | 5.25 ▲1.90 | 50.99 ▲6.37 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.79 | 91.85 ▲0.44 |
Media Library /wp-admin/upload.php | 5.12 ▲1.90 | 39.02 ▲3.75 |
Billflow /wp-admin/admin.php?page=servicebot | 5.12 | 36.53 |
Stripe Webhooks /wp-admin/admin.php?page=servicebot-stripe-webhooks | 5.12 | 36.97 |
Setup Roles /wp-admin/admin.php?page=servicebot-setup-roles | 5.12 | 37.26 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 180 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_servicebot_pricing_page_widget |
widget_recent-posts |
widget_servicebot_signup_portal_widget |
widget_theysaidso_widget |
widget_recent-comments |
widget_servicebot_subscription_portal_widget |
widget_servicebot_billing_page_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Subscription Billing by Billflow
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲178 | 13.67 ▼0.62 | 4.51 ▲2.60 | 37.62 ▼11.87 |
Dashboard /wp-admin | 2,239 ▲48 | 5.79 ▲0.90 | 112.44 ▼5.33 | 70.62 ▲26.48 |
Posts /wp-admin/edit.php | 2,122 ▲36 | 1.99 ▼0.01 | 33.39 ▲1.41 | 35.40 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 22.92 ▲5.31 | 660.31 ▼37.29 | 51.34 ▼3.38 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.12 ▼0.09 | 96.86 ▼4.28 | 73.06 ▲29.04 |
Billflow /wp-admin/admin.php?page=servicebot | 902 | 2.02 | 25.49 | 30.01 |
Stripe Webhooks /wp-admin/admin.php?page=servicebot-stripe-webhooks | 970 | 2.02 | 22.97 | 34.42 |
Setup Roles /wp-admin/admin.php?page=servicebot-setup-roles | 872 | 2.15 | 24.17 | 24.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_servicebot_billing_page_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_servicebot_subscription_portal_widget
- widget_theysaidso_widget
- widget_servicebot_pricing_page_widget
- can_compress_scripts
- db_upgraded
- widget_servicebot_signup_portal_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/servicebot/public/stripe/update_certs.php
- > /wp-content/plugins/servicebot/public/stripe/build.php
- > /wp-content/plugins/servicebot/public/partials/servicebot-public-display.php
- 117× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/servicebot/public/stripe/lib/Dispute.php:27
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/servicebot/public/stripe/lib/Coupon.php:26
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/servicebot/public/stripe/lib/Review.php:25
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/servicebot/public/stripe/lib/Radar/ValueListItem.php:18
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/servicebot/public/stripe/lib/Radar/ValueList.php:21
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/servicebot/public/stripe/lib/CreditNote.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/servicebot/public/stripe/lib/Exception/SignatureVerificationException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/servicebot/public/stripe/lib/Issuing/CardDetails.php:18
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/servicebot/public/stripe/lib/OrderReturn.php:20
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/servicebot/public/stripe/lib/Source.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: stripe, subscriptions, pricing page, subscription management, payments
servicebot/servicebot.php Passed 13 tests
The entry point to "Subscription Billing by Billflow" version 2.1.5 is a PHP file that has certain tags in its header comment area
98 characters long description:
Provides NO-CODE integration between WordPress and Billflow, an UI layer on top of Stripe Billing.
Code Analysis 5% from 3 tests
File types 0% from 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
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/servicebot/public/stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 151 | 1,282 | 5,021 | 6,589 |
Markdown | 3 | 598 | 0 | 847 |
JavaScript | 5 | 52 | 139 | 280 |
JSON | 1 | 0 | 0 | 48 |
CSS | 2 | 2 | 8 | 47 |
make | 1 | 5 | 0 | 17 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 5 | |
Traits | 7 | |
Classes | 130 | |
▷ Abstract classes | 8 | 6.15% |
▷ Concrete classes | 122 | 93.85% |
▷ Final classes | 0 | 0.00% |
Methods | 387 | |
▷ Static methods | 154 | 39.79% |
▷ Public methods | 339 | 87.60% |
▷ Protected methods | 15 | 3.88% |
▷ Private methods | 33 | 8.53% |
Functions | 25 | |
▷ Named functions | 19 | 76.00% |
▷ Anonymous functions | 6 | 24.00% |
Constants | 610 | |
▷ Global constants | 3 | 0.49% |
▷ Class constants | 607 | 99.51% |
▷ Public constants | 607 | 100.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
4 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/SB_FAVI 256x256.png | 11.42KB | 4.26KB | ▼ 62.73% |
img/billflow-white-gradient.png | 2.16KB | 1.60KB | ▼ 25.95% |
admin/img/signup-banner-icon.png | 117.45KB | 46.47KB | ▼ 60.44% |
admin/img/stripe-verified-partner-logo.png | 6.05KB | 3.21KB | ▼ 46.97% |