Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼111.84ms] Passed 4 tests
This is a short check of server-side resources used by Restrict With Stripe - Sell Access to Posts and Pages with Stripe
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 46.78 ▲5.68 |
Dashboard /wp-admin | 3.61 ▲0.22 | 54.90 ▼442.93 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 55.47 ▲1.70 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 91.93 ▼11.60 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 40.14 ▲5.49 |
Restrict With Stripe /wp-admin/options-general.php?page=rwstripe | 3.51 | 37.95 |
Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 337 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Restrict With Stripe - Sell Access to Posts and Pages with Stripe
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,097 ▲351 | 24.23 ▲9.63 | 6.86 ▲5.21 | 42.45 ▲1.98 |
Dashboard /wp-admin | 2,378 ▲204 | 13.78 ▲8.88 | 300.87 ▲188.94 | 38.94 ▼2.89 |
Posts /wp-admin/edit.php | 2,252 ▲163 | 12.63 ▲10.52 | 101.75 ▲59.70 | 28.77 ▼9.96 |
Add New Post /wp-admin/post-new.php | 1,543 ▲8 | 23.65 ▲0.52 | 524.29 ▼115.77 | 38.01 ▼14.17 |
Media Library /wp-admin/upload.php | 1,593 ▲205 | 13.19 ▲8.94 | 135.01 ▲37.95 | 41.63 ▼1.86 |
Restrict With Stripe /wp-admin/options-general.php?page=rwstripe | 1,044 | 13.00 | 118.86 | 38.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/restrict-with-stripe/includes/lib/Stripe/update_certs.php
- > /wp-content/plugins/restrict-with-stripe/includes/lib/Stripe/build.php
- 255× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/restrict-with-stripe/includes/lib/Stripe/lib/Exception/SignatureVerificationException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/restrict-with-stripe/includes/lib/Stripe/lib/OAuthErrorObject.php:11
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/restrict-with-stripe/includes/lib/Stripe/lib/Treasury/ReceivedCredit.php:30
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\HttpClient\\ClientInterface' not found in wp-content/plugins/restrict-with-stripe/includes/lib/Stripe/lib/HttpClient/CurlClient.php:27
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/restrict-with-stripe/includes/lib/Stripe/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/restrict-with-stripe/includes/lib/Stripe/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/restrict-with-stripe/includes/lib/Stripe/lib/Service/Terminal/ReaderService.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/restrict-with-stripe/includes/content.php:83
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/restrict-with-stripe/includes/lib/Stripe/lib/Service/Issuing/TransactionService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/restrict-with-stripe/includes/lib/Stripe/lib/SearchResult.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=rwstripe
- > Network (severe)
index.php/wp-json/rwstripe/v1/products?_locale=user - Failed to load resource: the server responded with a status of 400 (Bad Request)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: restrict access, e-commerce, subscriptions, ecommerce, stripe...
restrict-with-stripe/restrict-with-stripe.php Passed 13 tests
The main PHP script in "Restrict With Stripe - Sell Access to Posts and Pages with Stripe" version 1.0.9 is automatically included on every request by WordPress
35 characters long description:
Monetize your content using Stripe.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
These items require your attention
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/restrict-with-stripe/includes/lib/Stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 292 | 2,449 | 12,220 | 10,159 |
Markdown | 2 | 684 | 0 | 1,293 |
JavaScript | 9 | 41 | 71 | 539 |
PO File | 1 | 143 | 396 | 303 |
Sass | 2 | 44 | 0 | 255 |
CSS | 4 | 5 | 12 | 212 |
JSON | 2 | 0 | 0 | 65 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 10 | 0 | 29 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 2.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 34 | |
Interfaces | 9 | |
Traits | 9 | |
Classes | 256 | |
▷ Abstract classes | 10 | 3.91% |
▷ Concrete classes | 246 | 96.09% |
▷ Final classes | 0 | 0.00% |
Methods | 874 | |
▷ Static methods | 178 | 20.37% |
▷ Public methods | 789 | 90.27% |
▷ Protected methods | 40 | 4.58% |
▷ Private methods | 45 | 5.15% |
Functions | 56 | |
▷ Named functions | 44 | 78.57% |
▷ Anonymous functions | 12 | 21.43% |
Constants | 1,007 | |
▷ Global constants | 7 | 0.70% |
▷ Class constants | 1,000 | 99.30% |
▷ Public constants | 1,000 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.31MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
blocks/assets/rwstripe-customer-portal-block.png | 43.65KB | 42.49KB | ▼ 2.65% |
blocks/build/images/restrict-with-stripe.f445c776.png | 14.45KB | 7.62KB | ▼ 47.29% |
blocks/assets/rwstripe-edit-term-restrict-setting.png | 23.72KB | 22.87KB | ▼ 3.57% |
blocks/assets/restrict-with-stripe.png | 14.45KB | 7.62KB | ▼ 47.29% |
restrict-with-stripe-banner.png | 21.49KB | 9.13KB | ▼ 57.53% |