Benchmarks
Plugin footprint 83% from 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.04MB] [CPU: ▼8.08ms] Passed 4 tests
A check of server-side resources used by Japanized For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.29 ▼7.32 |
Dashboard /wp-admin | 3.35 ▲0.04 | 51.50 ▲0.32 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.16 ▼1.72 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 80.75 ▼19.03 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 30.28 ▼4.26 |
Server storage [IO: ▲5.67MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 647 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Japanized For WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲79 | 14.18 ▼0.21 | 1.95 ▼0.05 | 36.93 ▼7.14 |
Dashboard /wp-admin | 2,209 ▲32 | 5.60 ▼0.03 | 95.76 ▼8.58 | 43.56 ▼11.61 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.00 ▼0.00 | 39.61 ▲4.04 | 37.09 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,535 ▼0 | 23.44 ▼1.74 | 672.56 ▼16.98 | 60.16 ▼9.58 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.26 ▼0.03 | 93.07 ▼6.72 | 41.90 ▼1.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woocommerce-for-japan/includes/gateways/paypal/uninstall.php
- 160× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woocommerce-for-japan/includes/gateways/paypal/vendor/dhii/human-readable-interface/tests/functional/MessageAwareInterfaceTest.php:9
- > PHP Fatal error
Uncaught Error: Interface 'WooCommerce\\PayPalCommerce\\Button\\Endpoint\\EndpointInterface' not found in wp-content/plugins/woocommerce-for-japan/includes/gateways/paypal/modules/ppcp-button/src/Endpoint/DataClientIdEndpoint.php:21
- > PHP Fatal error
Uncaught Error: Interface 'WooCommerce\\PayPalCommerce\\Vendor\\Dhii\\Collection\\ContainerInterface' not found in wp-content/plugins/woocommerce-for-japan/includes/gateways/paypal/lib/packages/Dhii/Container/MappingContainer.php:35
- > PHP Fatal error
Uncaught Error: Interface 'WooCommerce\\PayPalCommerce\\Http\\RedirectorInterface' not found in wp-content/plugins/woocommerce-for-japan/includes/gateways/paypal/src/Http/WpRedirector.php:15
- > PHP Fatal error
Uncaught Error: Interface 'WooCommerce\\PayPalCommerce\\Vendor\\Dhii\\Collection\\ContainerFactoryInterface' not found in wp-content/plugins/woocommerce-for-japan/includes/gateways/paypal/lib/packages/Dhii/Collection/WritableContainerFactoryInterface.php:12
- > PHP Fatal error
Trait 'WooCommerce\\PayPalCommerce\\Webhooks\\Handler\\PrefixTrait' not found in wp-content/plugins/woocommerce-for-japan/includes/gateways/paypal/modules/ppcp-wc-gateway/src/Endpoint/ReturnUrlEndpoint.php on line 20
- > PHP Warning
require_once(wp-content/plugins/woocommerce-for-japan/includes/gateways/paypal/vendor/dhii/human-readable-interface/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-for-japan/includes/gateways/paypal/vendor/dhii/human-readable-interface/tests/bootstrap.php on line 5
- > PHP Fatal error
Uncaught Error: Interface 'WooCommerce\\PayPalCommerce\\Button\\Endpoint\\EndpointInterface' not found in wp-content/plugins/woocommerce-for-japan/includes/gateways/paypal/modules/ppcp-button/src/Endpoint/CartScriptParamsEndpoint.php:19
- > PHP Fatal error
Uncaught Error: Interface 'WooCommerce\\PayPalCommerce\\Vendor\\Psr\\Container\\ContainerInterface' not found in wp-content/plugins/woocommerce-for-japan/includes/gateways/paypal/modules/ppcp-wc-gateway/src/Settings/Settings.php:18
- > PHP Fatal error
Uncaught Error: Interface 'WooCommerce\\PayPalCommerce\\ApiClient\\Authentication\\Bearer' not found in wp-content/plugins/woocommerce-for-japan/includes/gateways/paypal/modules/ppcp-api-client/src/Authentication/ConnectBearer.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: ecommerce, e-commerce, woocommerce, japanese
woocommerce-for-japan/woocommerce-for-japan.php 92% from 13 tests
The primary PHP file in "Japanized For WooCommerce" version 2.6.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0.0" instead of "5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected42,106 lines of code in 591 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 474 | 6,784 | 19,361 | 34,924 |
JavaScript | 62 | 577 | 136 | 3,316 |
JSON | 3 | 0 | 0 | 2,320 |
Sass | 8 | 72 | 0 | 435 |
XML | 6 | 22 | 6 | 423 |
SVG | 21 | 0 | 2 | 363 |
CSS | 12 | 14 | 8 | 198 |
Markdown | 3 | 25 | 0 | 74 |
YAML | 1 | 2 | 0 | 29 |
Dockerfile | 1 | 13 | 2 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 170.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 98 | |
Interfaces | 62 | |
Traits | 16 | |
Classes | 311 | |
▷ Abstract classes | 2 | 0.64% |
▷ Concrete classes | 309 | 99.36% |
▷ Final classes | 2 | 0.65% |
Methods | 1,698 | |
▷ Static methods | 83 | 4.89% |
▷ Public methods | 1,431 | 84.28% |
▷ Protected methods | 116 | 6.83% |
▷ Private methods | 151 | 8.89% |
Functions | 506 | |
▷ Named functions | 32 | 6.32% |
▷ Anonymous functions | 474 | 93.68% |
Constants | 304 | |
▷ Global constants | 18 | 5.92% |
▷ Class constants | 286 | 94.08% |
▷ Public constants | 276 | 96.50% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.38MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/linepay_white.png | 2.91KB | 1.61KB | ▼ 44.69% |
assets/images/paidy_logo_tagline_100.png | 7.59KB | 2.20KB | ▼ 71.01% |
assets/images/2021Checkout_320x100.png | 23.66KB | 9.59KB | ▼ 59.47% |
includes/gateways/paypal/modules/ppcp-onboarding/assets/images/cards-screen-basic.png | 89.25KB | 77.75KB | ▼ 12.88% |
assets/images/jp4wc-bank-transfer.png | 0.77KB | 0.40KB | ▼ 48.60% |