Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.63MB] [CPU: ▲4.23ms] Passed 4 tests
A check of server-side resources used by Payment Page | Best Payment Plugin for Stripe & PayPal
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.63 | 41.95 ▲6.89 |
Dashboard /wp-admin | 3.94 ▲0.63 | 53.64 ▲3.12 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 52.48 ▲6.50 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.64 | 91.90 ▲0.40 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 43.43 ▲8.40 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 4.04 | 38.19 |
Server storage [IO: ▲9.29MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 815 new files
Database: 5 new tables, 11 new options
New tables |
---|
wp_payment_page_stripe_prices |
wp_payment_page_stripe_customers |
wp_payment_page_payments |
wp_payment_page_stripe_products |
wp_payment_page_log |
New WordPress options |
---|
db_upgraded |
fs_debug_mode |
widget_recent-comments |
can_compress_scripts |
payment_page_migration_version |
theysaidso_admin_options |
payment_page_settings |
widget_recent-posts |
fs_active_plugins |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Payment Page | Best Payment Plugin for Stripe & PayPal
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,031 ▲270 | 16.69 ▲2.33 | 10.29 ▲8.44 | 31.74 ▼8.90 |
Dashboard /wp-admin | 2,286 ▲106 | 6.22 ▲0.56 | 88.18 ▼9.66 | 40.48 ▼3.90 |
Posts /wp-admin/edit.php | 2,205 ▲105 | 3.00 ▲1.00 | 43.96 ▲6.92 | 31.21 ▼2.83 |
Add New Post /wp-admin/post-new.php | 1,568 ▲39 | 23.34 ▲0.24 | 659.90 ▲6.88 | 54.83 ▼3.01 |
Media Library /wp-admin/upload.php | 1,494 ▲94 | 4.76 ▲0.65 | 104.65 ▼8.19 | 46.94 ▼1.67 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,135 | 2.66 | 31.25 | 26.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/payment-page/lib/freemius/wordpress-sdk/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- Zombie tables detected upon uninstall: 5 tables
- wp_payment_page_stripe_prices
- wp_payment_page_payments
- wp_payment_page_stripe_customers
- wp_payment_page_log
- wp_payment_page_stripe_products
- The uninstall procedure has failed, leaving 11 options in the database
- payment_page_migration_version
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_accounts
- widget_recent-comments
- can_compress_scripts
- fs_active_plugins
- payment_page_settings
- fs_debug_mode
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/payment-page/templates/shortcode-payment-success.php
- 379× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/payment-page/lib/paypal-sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/MerchantInfo.php:26
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\ApiErrorException' not found in wp-content/plugins/payment-page/lib/stripe/lib/Exception/IdempotencyException.php:9
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/payment-page/lib/paypal-sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/OverrideChargeModel.php:17
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalResourceModel' not found in wp-content/plugins/payment-page/lib/paypal-sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/Refund.php:30
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/payment-page/lib/stripe/lib/Service/Checkout/SessionService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/payment-page/lib/stripe/lib/Mandate.php:22
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/payment-page/lib/paypal-sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentOptions.php:16
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalResourceModel' not found in wp-content/plugins/payment-page/lib/paypal-sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/Sale.php:39
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/payment-page/lib/stripe/lib/Invoice.php:107
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/payment-page/lib/stripe/lib/SingletonApiResource.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (32 tag instead of maximum 10)
payment-page/payment-page.php Passed 13 tests
The principal PHP file in "Payment Page | Best Payment Plugin for Stripe & PayPal" v. 1.3 is loaded by WordPress automatically on each request
127 characters long description:
Payment Page is the most powerful way to accept online payments. Connect your payment gateway, choose a template, and get paid!
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/payment-page/lib/stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 615 | 14,149 | 41,849 | 61,443 |
JavaScript | 35 | 1,066 | 156 | 3,934 |
Sass | 16 | 533 | 0 | 2,802 |
CSS | 24 | 68 | 3 | 2,234 |
PO File | 2 | 494 | 640 | 1,168 |
SVG | 12 | 0 | 2 | 789 |
HTML | 10 | 57 | 0 | 534 |
Markdown | 4 | 88 | 0 | 351 |
JSON | 3 | 0 | 0 | 156 |
XML | 3 | 11 | 0 | 80 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 12.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 52 | |
Interfaces | 14 | |
Traits | 9 | |
Classes | 506 | |
▷ Abstract classes | 18 | 3.56% |
▷ Concrete classes | 488 | 96.44% |
▷ Final classes | 0 | 0.00% |
Methods | 4,355 | |
▷ Static methods | 508 | 11.66% |
▷ Public methods | 3,831 | 87.97% |
▷ Protected methods | 54 | 1.24% |
▷ Private methods | 470 | 10.79% |
Functions | 212 | |
▷ Named functions | 175 | 82.55% |
▷ Anonymous functions | 37 | 17.45% |
Constants | 898 | |
▷ Global constants | 131 | 14.59% |
▷ Class constants | 767 | 85.41% |
▷ Public constants | 767 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/freemius/wordpress-sdk/includes/freemius-pricing/178afa6030e76635dbe835e111d2c507.png | 5.88KB | 3.01KB | ▼ 48.84% |
lib/freemius/wordpress-sdk/includes/freemius-pricing/27b5a722a5553d9de0170325267fccec.png | 6.35KB | 3.38KB | ▼ 46.76% |
interface/app/component/admin-dashboard/img/logo.png | 2.27KB | 2.35KB | 0.00% |
lib/freemius/wordpress-sdk/includes/freemius-pricing/5480ed23b199531a8cbc05924f26952b.png | 7.09KB | 2.94KB | ▼ 58.58% |
lib/freemius/wordpress-sdk/includes/freemius-pricing/f3aac72a8e63997d6bb888f816457e9b.png | 5.90KB | 3.16KB | ▼ 46.47% |