Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.83MB] [CPU: ▼33.72ms] Passed 4 tests
An overview of server-side resources used by HT PAY.JP for kintone
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 36.81 ▼5.13 |
Dashboard /wp-admin | 3.11 ▼0.19 | 23.49 ▼35.77 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 25.94 ▼21.60 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 26.75 ▼71.13 |
Media Library /wp-admin/upload.php | 3.12 ▼0.11 | 27.09 ▼6.36 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 95 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HT PAY.JP for kintone
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲61 | 14.03 ▼0.32 | 1.75 ▲0.03 | 41.36 ▼3.13 |
Dashboard /wp-admin | 2,210 ▲32 | 5.61 ▼0.10 | 94.34 ▼18.98 | 39.73 ▼7.25 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.72 ▲0.72 | 48.96 ▲9.01 | 35.36 ▲1.88 |
Add New Post /wp-admin/post-new.php | 1,540 ▲5 | 23.77 ▼1.55 | 688.03 ▲60.87 | 37.88 ▼25.77 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 5.30 ▲1.02 | 118.45 ▲22.10 | 45.60 ▲2.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/ht-pay-jp-for-kintone/includes/class-ht-payjp-for-kintone-Admin.php+74
Use of undefined constant WPCF7_ADMIN_READ_WRITE_CAPABILITY - assumed 'WPCF7_ADMIN_READ_WRITE_CAPABILITY' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ht-pay-jp-for-kintone/vendor/payjp/payjp-php/build.php
- 44× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\TestCase' not found in wp-content/plugins/ht-pay-jp-for-kintone/vendor/payjp/payjp-php/tests/ChargeTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ht-pay-jp-for-kintone/vendor/payjp/payjp-php/tests/TestCase.php:9
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\Util\\Set' not found in wp-content/plugins/ht-pay-jp-for-kintone/vendor/payjp/payjp-php/lib/PayjpObject.php:23
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\Error\\Base' not found in wp-content/plugins/ht-pay-jp-for-kintone/vendor/payjp/payjp-php/lib/Error/Api.php:5
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\TestCase' not found in wp-content/plugins/ht-pay-jp-for-kintone/vendor/payjp/payjp-php/tests/EventTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\TestCase' not found in wp-content/plugins/ht-pay-jp-for-kintone/vendor/payjp/payjp-php/tests/ErrorTest.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Payjp\\HttpClient\\ClientInterface' not found in wp-content/plugins/ht-pay-jp-for-kintone/vendor/payjp/payjp-php/lib/HttpClient/CurlClient.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ht-pay-jp-for-kintone/vendor/payjp/payjp-php/tests/TestCase.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ht-pay-jp-for-kintone/vendor/payjp/payjp-php/tests/TestCase.php:9
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\PayjpObject' not found in wp-content/plugins/ht-pay-jp-for-kintone/vendor/payjp/payjp-php/lib/AttachedObject.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
- Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png)
ht-pay-jp-for-kintone/ht-payjp-for-kintone.php 85% from 13 tests
"HT PAY.JP for kintone" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ht-pay-jp-for-kintone.php" instead of "ht-payjp-for-kintone.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please fix the following items
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/ht-pay-jp-for-kintone/vendor/payjp/payjp-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 755 | 762 | 3,649 |
Markdown | 2 | 162 | 0 | 222 |
JSON | 3 | 0 | 0 | 100 |
JavaScript | 3 | 16 | 6 | 61 |
XML | 2 | 0 | 0 | 30 |
CSS | 3 | 8 | 13 | 25 |
YAML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 4 | 7.69% |
▷ Concrete classes | 48 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 234 | |
▷ Static methods | 56 | 23.93% |
▷ Public methods | 203 | 86.75% |
▷ Protected methods | 16 | 6.84% |
▷ Private methods | 15 | 6.41% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 9 | |
▷ Global constants | 5 | 55.56% |
▷ Class constants | 4 | 44.44% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
lib/jquery-ui/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
lib/jquery-ui/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
lib/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
lib/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |