Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.12ms] Passed 4 tests
An overview of server-side resources used by Simple PAY.JP Payment
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.33 ▼0.20 |
Dashboard /wp-admin | 3.41 ▲0.11 | 44.19 ▼3.35 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.50 ▲1.99 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 89.36 ▲3.56 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.12 ▲1.08 |
Simple PAY.JP Payment /wp-admin/options-general.php?page=simplepayjppayment_show_admin_panel | 3.24 | 30.34 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 77 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Simple PAY.JP Payment
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.13 ▼1.25 | 1.64 ▼0.33 | 44.18 ▲0.86 |
Dashboard /wp-admin | 2,207 ▲16 | 4.85 ▼0.05 | 98.74 ▲1.12 | 39.29 ▼5.59 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.01 | 39.13 ▲4.10 | 34.33 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.29 ▼0.07 | 630.19 ▼58.21 | 67.74 ▲5.31 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.27 ▲0.09 | 93.15 ▼7.86 | 41.31 ▼4.28 |
Simple PAY.JP Payment /wp-admin/options-general.php?page=simplepayjppayment_show_admin_panel | 843 | 2.06 | 26.34 | 25.86 |
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-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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
Good news, no errors were detected
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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-pay-jp-payment/vendor/payjp/payjp-php/build.php
- 43× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\PayjpObject' not found in wp-content/plugins/simple-pay-jp-payment/vendor/payjp/payjp-php/lib/ApiResource.php:5
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\TestCase' not found in wp-content/plugins/simple-pay-jp-payment/vendor/payjp/payjp-php/tests/InvalidRequestErrorTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\Error\\Base' not found in wp-content/plugins/simple-pay-jp-payment/vendor/payjp/payjp-php/lib/Error/Card.php:5
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\PayjpObject' not found in wp-content/plugins/simple-pay-jp-payment/vendor/payjp/payjp-php/lib/AttachedObject.php:6
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\TestCase' not found in wp-content/plugins/simple-pay-jp-payment/vendor/payjp/payjp-php/tests/EventTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\Error\\InvalidRequest' not found in wp-content/plugins/simple-pay-jp-payment/vendor/payjp/payjp-php/lib/Error/RateLimit.php:5
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\ApiResource' not found in wp-content/plugins/simple-pay-jp-payment/vendor/payjp/payjp-php/lib/Token.php:5
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\TestCase' not found in wp-content/plugins/simple-pay-jp-payment/vendor/payjp/payjp-php/tests/PayjpObjectTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Payjp\\ApiResource' not found in wp-content/plugins/simple-pay-jp-payment/vendor/payjp/payjp-php/lib/Transfer.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simple-pay-jp-payment/vendor/payjp/payjp-php/build.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
5 plugin tags: e-commerce, credit card, payment request, shopping, payment
simple-pay-jp-payment/simple-payjp-payment.php 85% from 13 tests
The main PHP script in "Simple PAY.JP Payment" version 1.2.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-pay-jp-payment.php" instead of "simple-payjp-payment.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/simple-pay-jp-payment/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 | 58 | 654 | 622 | 3,492 |
Markdown | 2 | 161 | 0 | 217 |
JSON | 2 | 0 | 0 | 95 |
PO File | 1 | 20 | 7 | 51 |
XML | 2 | 0 | 0 | 30 |
YAML | 1 | 3 | 0 | 11 |
CSS | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 4 | 8.16% |
▷ Concrete classes | 45 | 91.84% |
▷ Final classes | 0 | 0.00% |
Methods | 217 | |
▷ Static methods | 56 | 25.81% |
▷ Public methods | 188 | 86.64% |
▷ Protected methods | 16 | 7.37% |
▷ Private methods | 13 | 5.99% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 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
PNG images were not found in this plugin