Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.03ms] Passed 4 tests
An overview of server-side resources used by Payment Gateway Plugin for PayPal WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.65 ▼5.16 |
Dashboard /wp-admin | 3.31 ▼0.04 | 50.43 ▼16.20 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.20 ▲3.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.78 ▲0.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.82 ▼2.88 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Payment Gateway Plugin for PayPal WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.16 ▼0.57 | 1.89 ▲0.10 | 42.32 ▼1.13 |
Dashboard /wp-admin | 2,195 ▲18 | 5.80 ▲0.15 | 93.62 ▼7.59 | 41.61 ▼1.45 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.05 | 34.48 ▼0.42 | 35.82 ▼1.79 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.64 ▲0.87 | 643.49 ▼15.67 | 51.48 ▼7.22 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.17 ▼0.01 | 94.60 ▼17.08 | 41.16 ▼7.54 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/express-checkout-paypal-payment-gateway-for-woocommerce/includes/market.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: debit card, paypal checkout, payment plugin, cart page checkout, woocommerce...
express-checkout-paypal-payment-gateway-for-woocommerce/express-checkout-paypal-payment-gateway-for-woocommerce.php 85% from 13 tests
The main file in "Payment Gateway Plugin for PayPal WooCommerce" v. 1.8.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("5.6" instead of "3.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin7,573 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 791 | 412 | 5,127 |
PO File | 4 | 605 | 674 | 1,908 |
SVG | 12 | 0 | 0 | 228 |
JavaScript | 3 | 34 | 7 | 190 |
CSS | 2 | 2 | 0 | 120 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 260)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 100.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 542.00 |
Average method complexity | 9.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 260.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 5 | 4.81% |
▷ Public methods | 100 | 96.15% |
▷ Protected methods | 1 | 0.96% |
▷ Private methods | 3 | 2.88% |
Functions | 15 | |
▷ Named functions | 13 | 86.67% |
▷ Anonymous functions | 2 | 13.33% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 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
3 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/credit_button_preview.png | 94.74KB | 50.99KB | ▼ 46.17% |
assets/img/express_button_preview.png | 88.61KB | 45.22KB | ▼ 48.97% |
assets/img/webtoffee-logo_small.png | 4.04KB | 2.85KB | ▼ 29.40% |