Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.83ms] Passed 4 tests
This is a short check of server-side resources used by Advanced PayPal Payments for WooCommerce - Compatible with most dynamic discount plugins like Conditional Discounts for WooCommerce, WooCommerce Dynamic Pricing & Discounts, Discount Rules...
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.34 ▼1.63 |
Dashboard /wp-admin | 3.39 ▲0.04 | 44.35 ▼18.17 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.51 ▼1.70 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 88.14 ▼9.83 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.40 ▲5.71 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced PayPal Payments for WooCommerce - Compatible with most dynamic discount plugins like Conditional Discounts for WooCommerce, WooCommerce Dynamic Pricing & Discounts, Discount Rules...
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲50 | 14.13 ▼0.54 | 1.69 ▲0.10 | 43.66 ▼1.82 |
Dashboard /wp-admin | 2,205 ▲27 | 5.60 ▼0.01 | 92.83 ▼23.10 | 38.36 ▼7.63 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.96 ▼0.06 | 39.71 ▲0.11 | 37.66 ▲6.79 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.00 ▼0.14 | 656.73 ▼45.25 | 59.48 ▲3.22 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.27 ▲0.04 | 94.36 ▼1.32 | 43.93 ▲1.95 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
wc-advanced-paypal-payments/advanced-paypal-payments-for-woocommerce.php 85% from 13 tests
The primary PHP file in "Advanced PayPal Payments for WooCommerce - Compatible with most dynamic discount plugins like Conditional Discounts for WooCommerce, WooCommerce Dynamic Pricing & Discounts, Discount Rules..." version 3.1.9 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- 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
- Main file name: Name the main plugin file the same as the plugin slug ("wc-advanced-paypal-payments.php" instead of "advanced-paypal-payments-for-woocommerce.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
Success! There were no dangerous files found in this plugin4,630 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 383 | 949 | 3,464 |
JavaScript | 4 | 61 | 34 | 640 |
PO File | 1 | 166 | 146 | 356 |
CSS | 1 | 23 | 8 | 170 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 3 | 2.83% |
▷ Public methods | 79 | 74.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 27 | 25.47% |
Functions | 21 | |
▷ Named functions | 14 | 66.67% |
▷ Anonymous functions | 7 | 33.33% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ 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
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/paypal.png | 28.27KB | 13.28KB | ▼ 53.03% |