Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▲4.26ms] Passed 4 tests
A check of server-side resources used by Checkout for PayPal
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 37.95 ▼1.16 |
Dashboard /wp-admin | 3.59 ▲0.29 | 54.58 ▲7.05 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 51.67 ▲7.37 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 94.11 ▲7.79 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 34.95 ▲3.76 |
Add-ons /wp-admin/edit.php?post_type=coforpaypal_order&page=checkout-for-paypal-addons | 3.48 | 30.84 |
Add New /wp-admin/post-new.php?post_type=coforpaypal_order | 3.62 | 49.06 |
Settings /wp-admin/edit.php?post_type=coforpaypal_order&page=checkout-for-paypal-settings | 3.48 | 31.89 |
Debug /wp-admin/edit.php?post_type=coforpaypal_order&page=checkout-for-paypal-debug | 3.48 | 32.35 |
All Orders /wp-admin/edit.php?post_type=coforpaypal_order | 3.56 | 35.91 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 9 new options
New WordPress options |
---|
checkout_for_paypal_db_version |
checkoutforpaypal_logfile_suffix |
db_upgraded |
widget_theysaidso_widget |
checkout_for_paypal_email_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Checkout for PayPal
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲95 | 14.21 ▲0.02 | 1.84 ▲0.16 | 40.55 ▼4.22 |
Dashboard /wp-admin | 2,237 ▲57 | 5.64 ▼0.01 | 89.45 ▼11.77 | 40.21 ▼1.73 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 1.97 ▼0.05 | 40.05 ▲2.43 | 34.55 ▼4.24 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 18.61 ▼5.04 | 601.62 ▲5.21 | 69.26 ▲18.83 |
Media Library /wp-admin/upload.php | 1,439 ▲45 | 4.21 ▼0.05 | 97.25 ▼1.97 | 43.82 ▼0.55 |
Add-ons /wp-admin/edit.php?post_type=coforpaypal_order&page=checkout-for-paypal-addons | 898 | 1.99 | 27.90 | 36.09 |
Add New /wp-admin/post-new.php?post_type=coforpaypal_order | 2,136 | 7.66 | 184.78 | 61.00 |
Settings /wp-admin/edit.php?post_type=coforpaypal_order&page=checkout-for-paypal-settings | 1,058 | 2.01 | 24.56 | 32.35 |
Debug /wp-admin/edit.php?post_type=coforpaypal_order&page=checkout-for-paypal-debug | 877 | 2.00 | 25.57 | 27.61 |
All Orders /wp-admin/edit.php?post_type=coforpaypal_order | 1,151 | 1.91 | 32.16 | 31.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- checkout_for_paypal_db_version
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- checkoutforpaypal_logfile_suffix
- checkout_for_paypal_email_options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 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
5 plugin tags: ecommerce, e-commerce, paypal, payments, checkout
checkout-for-paypal/main.php 85% from 13 tests
The main PHP script in "Checkout for PayPal" version 1.0.26 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("checkout-for-paypal.php" instead of "main.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 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
Everything looks great! No dangerous files found in this plugin1,431 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 94 | 36 | 1,397 |
CSS | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 106.00 |
▷ Minimum class complexity | 106.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 5.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
addons/images/checkout-for-paypal-dynamic-buttons.png | 3.64KB | 2.78KB | ▼ 23.47% |
addons/images/checkout-for-paypal-variable-price.png | 5.90KB | 2.78KB | ▼ 52.87% |
addons/images/checkout-for-paypal-contact-form-7-integration.png | 2.93KB | 2.04KB | ▼ 30.42% |