Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼301.13ms] Passed 4 tests
A check of server-side resources used by PayPal Digital Goods For Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.14 | 62.34 ▲5.34 |
Dashboard /wp-admin | 3.50 ▲0.08 | 38.37 ▲0.83 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 41.92 ▼1.62 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.02 | 100.93 ▼1,190.99 |
Media Library /wp-admin/upload.php | 3.37 ▲0.07 | 28.59 ▼12.73 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by PayPal Digital Goods For Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.68 ▲0.05 | 5.96 ▼0.19 | 2.43 ▼0.11 |
Dashboard /wp-admin | 2,888 ▲30 | 6.11 ▼0.03 | 132.33 ▼3.49 | 159.48 ▼3.04 |
Posts /wp-admin/edit.php | 2,691 ▲3 | 3.24 ▼0.00 | 65.04 ▼1.45 | 144.02 ▼4.26 |
Add New Post /wp-admin/post-new.php | 1,690 ▼5 | 20.96 ▼1.52 | 419.85 ▼40.82 | 160.03 ▼1.24 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.49 ▼0.03 | 149.90 ▼31.19 | 183.33 ▼49.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/pal-digital-goods-express-checkout-for-woo/includes/class-woo-paypal-digital-goods-express-checkout-gateway.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: ecommerce, paypal digital goods, e-commerce, paypal payment, express checkout...
pal-digital-goods-express-checkout-for-woo/woo-paypal-digital-goods-express-checkout.php 85% from 13 tests
"PayPal Digital Goods For Woocommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("pal-digital-goods-express-checkout-for-woo.php" instead of "woo-paypal-digital-goods-express-checkout.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,236 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 121 | 352 | 1,124 |
CSS | 1 | 1 | 0 | 68 |
JavaScript | 1 | 1 | 0 | 44 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 28.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 4.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 46 | 92.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin