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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.26MB] [CPU: ▼284.74ms] Passed 4 tests
This is a short check of server-side resources used by Addon Paypal and Stripe With Contact Form 7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.14 ▲2.62 | 67.04 ▲14.17 |
Dashboard /wp-admin | 5.88 ▲2.47 | 35.76 ▲1.75 |
Posts /wp-admin/edit.php | 5.94 ▲2.30 | 36.67 ▼1.27 |
Add New Post /wp-admin/post-new.php | 8.65 ▲1.68 | 95.74 ▼1,153.60 |
Media Library /wp-admin/upload.php | 5.88 ▲2.59 | 98.09 ▲72.77 |
Paypal/Stripe Entries /wp-admin/admin.php?page=cfywpay_paypal_entries | 5.85 | 35.04 |
Server storage [IO: ▲1.13MB] [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: 241 new files
Database: 1 new table, no new options
New tables |
---|
wp_cf7wpay_forms |
Browser metrics Passed 4 tests
Addon Paypal and Stripe With Contact Form 7: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,963 ▲209 | 19.06 ▲3.31 | 214.68 ▲208.55 | 6.31 ▲3.83 |
Dashboard /wp-admin | 2,899 ▲38 | 6.25 ▲0.08 | 114.01 ▼21.46 | 155.13 ▼5.85 |
Posts /wp-admin/edit.php | 2,698 ▲4 | 3.25 ▲0.01 | 64.17 ▼3.06 | 131.24 ▼19.16 |
Add New Post /wp-admin/post-new.php | 1,641 ▼49 | 16.61 ▼4.21 | 389.26 ▼54.51 | 141.57 ▼12.36 |
Media Library /wp-admin/upload.php | 1,702 ▲1 | 5.56 ▲0.07 | 142.36 ▲0.87 | 189.43 ▲4.45 |
Paypal/Stripe Entries /wp-admin/admin.php?page=cfywpay_paypal_entries | 1,142 | 2.44 | 53.35 | 83.78 |
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
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_cf7wpay_forms
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=cfywpay_paypal_entries
- > Warning in wp-includes/class-wp-hook.php+307
call_user_func_array() expects parameter 1 to be a valid callback, class 'CF7WPAY' does not have a method 'OCCF7CAL_install_error'
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
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/addon-paypal-with-contact-form-7/includes/stripe_library/update_certs.php
- > /wp-content/plugins/addon-paypal-with-contact-form-7/includes/stripe_library/build.php
- > /wp-content/plugins/addon-paypal-with-contact-form-7/contact-form-7-with-paypal.php
- 182× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/addon-paypal-with-contact-form-7/includes/stripe_library/lib/PaymentMethod.php:38
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/addon-paypal-with-contact-form-7/includes/stripe_library/lib/Service/Sigma/SigmaServiceFactory.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/addon-paypal-with-contact-form-7/includes/stripe_library/lib/Service/Issuing/IssuingServiceFactory.php:14
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/addon-paypal-with-contact-form-7/includes/stripe_library/lib/Service/Issuing/DisputeService.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/addon-paypal-with-contact-form-7/includes/stripe_library/lib/Order.php:38
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/addon-paypal-with-contact-form-7/includes/stripe_library/lib/Service/ApplePayDomainService.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/addon-paypal-with-contact-form-7/includes/stripe_library/lib/Service/WebhookEndpointService.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/addon-paypal-with-contact-form-7/includes/stripe_library/lib/OrderItem.php:16
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/addon-paypal-with-contact-form-7/includes/stripe_library/lib/Service/TokenService.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/addon-paypal-with-contact-form-7/includes/stripe_library/lib/Service/EphemeralKeyService.php:5
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in addon-paypal-with-contact-form-7/assets to your readme.txt
- Contributors: Plugin contributors not specified
addon-paypal-with-contact-form-7/contact-form-7-with-paypal.php 85% from 13 tests
Analyzing the main PHP file in "Addon Paypal and Stripe With Contact Form 7" version 1.0
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("addon-paypal-with-contact-form-7.php" instead of "contact-form-7-with-paypal.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/addon-paypal-with-contact-form-7/includes/stripe_library/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 214 | 2,088 | 8,475 | 9,013 |
Markdown | 3 | 628 | 0 | 930 |
CSS | 2 | 8 | 2 | 226 |
JavaScript | 2 | 25 | 8 | 123 |
JSON | 1 | 0 | 0 | 48 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 9 | 0 | 27 |
YAML | 1 | 0 | 0 | 3 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 6 | |
Traits | 7 | |
Classes | 201 | |
▷ Abstract classes | 10 | 4.98% |
▷ Concrete classes | 191 | 95.02% |
▷ Final classes | 0 | 0.00% |
Methods | 704 | |
▷ Static methods | 157 | 22.30% |
▷ Public methods | 636 | 90.34% |
▷ Protected methods | 29 | 4.12% |
▷ Private methods | 39 | 5.54% |
Functions | 10 | |
▷ Named functions | 5 | 50.00% |
▷ Anonymous functions | 5 | 50.00% |
Constants | 674 | |
▷ Global constants | 14 | 2.08% |
▷ Class constants | 660 | 97.92% |
▷ Public constants | 660 | 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
7 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/image/minus_1.png | 0.91KB | 0.67KB | ▼ 27.06% |
includes/image/star.png | 39.75KB | 10.35KB | ▼ 73.95% |
includes/image/plus-circular-button.png | 0.94KB | 0.69KB | ▼ 26.59% |
includes/image/plus-circular-button_1.png | 0.62KB | 0.38KB | ▼ 39.27% |
includes/image/review.png | 15.87KB | 11.90KB | ▼ 25.01% |