Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼305.28ms] Passed 4 tests
An overview of server-side resources used by Smart PayPal Checkout For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 55.40 ▲0.18 |
Dashboard /wp-admin | 3.41 ▲0.01 | 35.28 ▼0.22 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 44.57 ▲4.67 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 97.67 ▼1,216.98 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 28.34 ▼4.08 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Smart PayPal Checkout For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.88 ▲0.27 | 5.99 ▲0.21 | 2.18 ▼0.55 |
Dashboard /wp-admin | 2,892 ▲31 | 6.08 ▼0.08 | 113.80 ▼17.84 | 150.95 ▼12.91 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.24 ▲0.00 | 61.33 ▼2.81 | 139.59 ▼2.37 |
Add New Post /wp-admin/post-new.php | 1,719 ▲2 | 17.51 ▼3.67 | 431.31 ▲0.30 | 158.77 ▼3.79 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.48 ▼0.00 | 146.31 ▲6.11 | 187.07 ▼4.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Form_Handler' not found in wp-content/plugins/smart-paypal-checkout-for-woocommerce/includes/class-smart-paypal-checkout-for-woocommerce-product.php:9
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/smart-paypal-checkout-for-woocommerce/includes/class-smart-paypal-checkout-for-woocommerce-request.php:9
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway_CC' not found in wp-content/plugins/smart-paypal-checkout-for-woocommerce/includes/class-smart-paypal-checkout-for-woocommerce-gateway.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #4, #5 in smart-paypal-checkout-for-woocommerce/assets to your readme.txt
smart-paypal-checkout-for-woocommerce/smart-paypal-checkout-for-woocommerce.php 85% from 13 tests
This is the main PHP file of "Smart PayPal Checkout For WooCommerce" version 3.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("5.3" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7,591 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 403 | 113 | 6,224 |
JavaScript | 10 | 17 | 0 | 1,194 |
CSS | 2 | 3 | 0 | 106 |
Markdown | 1 | 61 | 0 | 67 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 62.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 381.00 |
Average method complexity | 5.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 216 | |
▷ Static methods | 13 | 6.02% |
▷ Public methods | 207 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 4.17% |
Functions | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected