Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.79ms] Passed 4 tests
A check of server-side resources used by WooCommerce PayPal Checkout Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 44.49 ▼1.13 |
Dashboard /wp-admin | 3.40 ▲0.09 | 52.23 ▼0.03 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.78 ▼6.45 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 93.46 ▲3.91 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.61 ▼3.54 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
woocommerce_inbox_variant_assignment |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce PayPal Checkout Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲56 | 13.69 ▲0.47 | 2.14 ▲0.30 | 43.84 ▲0.18 |
Dashboard /wp-admin | 2,226 ▲20 | 4.91 ▼0.99 | 108.65 ▲6.30 | 42.13 ▲1.58 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.02 ▲0.01 | 41.08 ▲2.56 | 36.70 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 23.39 ▼0.07 | 672.35 ▼31.06 | 53.35 ▼4.86 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.22 ▲0.01 | 98.29 ▼15.83 | 41.06 ▼5.35 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- woocommerce_inbox_variant_assignment
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_url() in wp-content/plugins/woocommerce-gateway-paypal-express-checkout/templates/paypal-payments-upgrade-notice.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
woocommerce-gateway-paypal-express-checkout/woocommerce-gateway-paypal-express-checkout.php 85% from 13 tests
The entry point to "WooCommerce PayPal Checkout Payment Gateway" version 2.1.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.2.0")
- Description: Please don't use more than 140 characters for the plugin description (currently 173 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin7,734 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 1,324 | 2,353 | 6,871 |
JavaScript | 8 | 163 | 91 | 752 |
CSS | 2 | 5 | 7 | 111 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 22.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 169.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 3 | 6.52% |
▷ Concrete classes | 43 | 93.48% |
▷ Final classes | 0 | 0.00% |
Methods | 316 | |
▷ Static methods | 3 | 0.95% |
▷ Public methods | 254 | 80.38% |
▷ Protected methods | 57 | 18.04% |
▷ Private methods | 5 | 1.58% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 89 | |
▷ Global constants | 3 | 3.37% |
▷ Class constants | 86 | 96.63% |
▷ Public constants | 86 | 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.19MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/in-context-composite.png | 194.81KB | 85.32KB | ▼ 56.20% |