Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.41ms] Passed 4 tests
Server-side resources used by Accept PayPal Payments using Contact Form 7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.62 ▼0.90 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.79 ▼1.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.71 ▲3.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.68 ▼9.81 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.28 ▼1.34 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 219 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Accept PayPal Payments using Contact Form 7
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▼0.11 | 1.75 ▼0.05 | 44.25 ▼0.22 |
Dashboard /wp-admin | 2,206 ▲18 | 5.77 ▼0.12 | 99.42 ▼14.99 | 41.67 ▲4.13 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.00 ▲0.01 | 40.11 ▲3.12 | 35.06 ▲2.26 |
Add New Post /wp-admin/post-new.php | 1,545 ▲2 | 18.10 ▼4.66 | 662.31 ▼2.85 | 52.50 ▲0.51 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.18 ▼0.01 | 95.00 ▼10.24 | 42.29 ▼2.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 145× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceSearchResponse.php:17
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/CancelNotification.php:20
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalResourceModel' not found in wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/Capture.php:29
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalResourceModel' not found in wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdUserinfo.php:34
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentCardToken.php:21
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Api\\BaseAddress' not found in wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/Address.php:15
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php:16
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/NameValuePair.php:17
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/contact-form-7-paypal-extension/inc/lib/sdk/paypal/rest-api-sdk-php/lib/PayPal/Api/RefundDetail.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
contact-form-7-paypal-extension/accept-paypal-payments-using-contact-form-7.php 77% from 13 tests
The main PHP file in "Accept PayPal Payments using Contact Form 7" ver. 3.7 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contact-form-7-paypal-extension.php" instead of "accept-paypal-payments-using-contact-form-7.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 184 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected14,804 lines of code in 209 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 194 | 3,072 | 15,641 | 14,108 |
Markdown | 4 | 88 | 0 | 351 |
JSON | 3 | 0 | 0 | 156 |
JavaScript | 4 | 25 | 0 | 82 |
XML | 2 | 8 | 0 | 64 |
CSS | 2 | 7 | 0 | 43 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 3.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 1.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 5 | |
Traits | 2 | |
Classes | 182 | |
▷ Abstract classes | 3 | 1.65% |
▷ Concrete classes | 179 | 98.35% |
▷ Final classes | 0 | 0.00% |
Methods | 2,117 | |
▷ Static methods | 73 | 3.45% |
▷ Public methods | 2,096 | 99.01% |
▷ Protected methods | 4 | 0.19% |
▷ Private methods | 17 | 0.80% |
Functions | 14 | |
▷ Named functions | 2 | 14.29% |
▷ Anonymous functions | 12 | 85.71% |
Constants | 26 | |
▷ Global constants | 7 | 26.92% |
▷ Class constants | 19 | 73.08% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected