Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.55ms] Passed 4 tests
An overview of server-side resources used by WooCommerce PayPal Pro Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.45 ▲1.12 |
Dashboard /wp-admin | 3.39 ▲0.05 | 45.35 ▼9.23 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 42.32 ▼5.28 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 77.92 ▼16.81 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.06 ▲3.85 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce PayPal Pro Payment Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.39 ▲0.12 | 1.93 ▲0.39 | 38.28 ▲0.90 |
Dashboard /wp-admin | 2,192 ▲14 | 5.50 ▼0.10 | 78.95 ▼26.34 | 35.14 ▼0.93 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▲0.03 | 34.58 ▼5.61 | 32.27 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.18 ▼0.39 | 636.40 ▼72.29 | 59.56 ▲0.79 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.27 ▲0.11 | 95.90 ▼0.72 | 45.19 ▲2.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- 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
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
woocommerce-paypal-pro-payment-gateway/woo-paypal-pro.php 92% from 13 tests
The main PHP file in "WooCommerce PayPal Pro Payment Gateway" ver. 2.9.12 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-paypal-pro-payment-gateway.php" instead of "woo-paypal-pro.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected560 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 101 | 74 | 471 |
PO File | 1 | 27 | 27 | 88 |
CSS | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 5 | 15.62% |
▷ Public methods | 25 | 78.12% |
▷ Protected methods | 6 | 18.75% |
▷ Private methods | 1 | 3.12% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/card-security-code-hint.png | 8.82KB | 4.09KB | ▼ 53.65% |
images/credit-cards.png | 5.35KB | 1.83KB | ▼ 65.70% |