Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.60MB] [CPU: ▲13.06ms] Passed 4 tests
This is a short check of server-side resources used by WooPayments - Fully Integrated Solution Built and Supported by Woo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.08 ▲2.62 | 61.79 ▲23.60 |
Dashboard /wp-admin | 5.90 ▲2.55 | 65.19 ▲8.44 |
Posts /wp-admin/edit.php | 6.01 ▲2.65 | 60.87 ▲15.67 |
Add New Post /wp-admin/post-new.php | 8.76 ▲2.87 | 103.27 ▲4.91 |
Media Library /wp-admin/upload.php | 5.82 ▲2.59 | 58.60 ▲23.23 |
Server storage [IO: ▲15.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 1,213 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
jetpack_sync_settings_disable |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
jetpack_options |
widget_recent-posts |
jetpack_connection_active_plugins |
db_upgraded |
Browser metrics Passed 4 tests
WooPayments - Fully Integrated Solution Built and Supported by Woo: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲58 | 14.20 ▼0.08 | 1.98 ▲0.37 | 42.81 ▲5.32 |
Dashboard /wp-admin | 2,213 ▲35 | 5.64 ▼0.08 | 85.99 ▼13.74 | 40.64 ▼2.06 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.99 ▼0.02 | 36.06 ▼3.33 | 39.57 ▲3.93 |
Add New Post /wp-admin/post-new.php | 1,546 ▲11 | 22.25 ▼2.70 | 595.64 ▼49.07 | 60.61 ▼5.62 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.15 ▼0.03 | 101.25 ▼0.17 | 46.13 ▲3.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- jetpack_sync_settings_disable
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- jetpack_connection_active_plugins
- widget_recent-comments
- jetpack_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 272× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'WCPay\\Vendor\\League\\Container\\Argument\\ArgumentResolverInterface' not found in wp-content/plugins/woocommerce-payments/lib/packages/League/Container/ReflectionContainer.php:15
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\Jetpack\\Sync\\Modules\\Module' not found in wp-content/plugins/woocommerce-payments/vendor/automattic/jetpack-sync/src/modules/class-menus.php:13
- > PHP Fatal error
Uncaught Error: Class 'WCPay\\Payment_Methods\\UPE_Payment_Method' not found in wp-content/plugins/woocommerce-payments/includes/payment-methods/class-sepa-payment-method.php:15
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-payments/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'WCPay\\Vendor\\League\\Container\\Argument\\ResolvableArgument' not found in wp-content/plugins/woocommerce-payments/lib/packages/League/Container/Argument/DefaultValueArgument.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-payments/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php:6
- > PHP Fatal error
Uncaught Error: Interface 'WCPay\\Vendor\\League\\Container\\Argument\\ResolvableArgumentInterface' not found in wp-content/plugins/woocommerce-payments/lib/packages/League/Container/Argument/ResolvableArgument.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-payments/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/woocommerce-payments/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'WCPay\\Internal\\DependencyManagement\\AbstractServiceProvider' not found in wp-content/plugins/woocommerce-payments/src/Internal/DependencyManagement/ServiceProvider/ProxiesServiceProvider.php:17
- > 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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: woocommerce payments, google pay, payment, credit card, apple pay...
woocommerce-payments/woocommerce-payments.php 92% from 13 tests
The main file in "WooPayments - Fully Integrated Solution Built and Supported by Woo" v. 6.8.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("6.0" instead of "7.6")
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
There were no executable files found in this plugin124,054 lines of code in 1,122 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 890 | 24,447 | 65,346 | 103,120 |
Markdown | 71 | 2,265 | 0 | 6,075 |
JavaScript | 47 | 750 | 680 | 5,804 |
PO File | 1 | 1,305 | 2,166 | 4,718 |
JSON | 19 | 0 | 0 | 1,927 |
CSS | 36 | 132 | 35 | 1,580 |
SVG | 49 | 0 | 0 | 550 |
YAML | 3 | 30 | 3 | 118 |
XML | 3 | 5 | 1 | 80 |
JSX | 1 | 6 | 4 | 49 |
Sass | 2 | 6 | 0 | 33 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 18.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 369.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 92.00 |
Code structure | ||
---|---|---|
Namespaces | 55 | |
Interfaces | 23 | |
Traits | 9 | |
Classes | 707 | |
▷ Abstract classes | 27 | 3.82% |
▷ Concrete classes | 680 | 96.18% |
▷ Final classes | 4 | 0.59% |
Methods | 6,236 | |
▷ Static methods | 1,741 | 27.92% |
▷ Public methods | 5,180 | 83.07% |
▷ Protected methods | 454 | 7.28% |
▷ Private methods | 602 | 9.65% |
Functions | 350 | |
▷ Named functions | 226 | 64.57% |
▷ Anonymous functions | 124 | 35.43% |
Constants | 555 | |
▷ Global constants | 21 | 3.78% |
▷ Class constants | 534 | 96.22% |
▷ Public constants | 534 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 1.24MB with 0.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/woocommerce/subscriptions-core/assets/images/subscriptions-importer-exporter.png | 89.65KB | 31.87KB | ▼ 64.45% |
vendor/woocommerce/subscriptions-core/assets/images/view-subscription.png | 249.57KB | 75.74KB | ▼ 69.65% |
vendor/woocommerce/subscriptions-core/assets/images/add-edit-subscription-screen.png | 39.26KB | 34.69KB | ▼ 11.63% |
vendor/woocommerce/subscriptions-core/assets/images/subscription-reports.png | 132.87KB | 42.71KB | ▼ 67.85% |
vendor/woocommerce/subscriptions-core/assets/images/checkout-recurring-totals.png | 66.92KB | 29.36KB | ▼ 56.12% |