Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.14ms] Passed 4 tests
This is a short check of server-side resources used by Payment Gateway for PayPal Pro on WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.96 ▲3.92 |
Dashboard /wp-admin | 3.32 ▼0.03 | 41.60 ▼14.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.23 ▼3.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 78.90 ▼16.07 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.13 ▲1.20 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Payment Gateway for PayPal Pro on WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.10 ▼0.25 | 1.68 ▲0.09 | 43.78 ▲1.75 |
Dashboard /wp-admin | 2,192 ▲15 | 5.49 ▼0.17 | 80.95 ▼4.36 | 37.33 ▼6.45 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.00 | 33.18 ▼3.13 | 34.60 ▲5.44 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.14 ▼0.02 | 650.56 ▲26.19 | 47.45 ▼2.79 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.21 ▼0.01 | 92.75 ▼5.90 | 40.80 ▼3.89 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway_CC' not found in wp-content/plugins/woo-paypal-pro/includes/class-premiumdev-woo-paypal-pro-gateway.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: paypal pro, pro, paypal, paypal payment, ecommerce...
woo-paypal-pro/woo-paypal-pro.php 92% from 13 tests
The main PHP script in "Payment Gateway for PayPal Pro on WooCommerce" version 6.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin938 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 123 | 274 | 938 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 2 | 4.44% |
▷ Public methods | 39 | 86.67% |
▷ Protected methods | 2 | 4.44% |
▷ Private methods | 4 | 8.89% |
Functions | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cards.png | 8.09KB | 3.33KB | ▼ 58.77% |