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.02MB] [CPU: ▼6.98ms] Passed 4 tests
This is a short check of server-side resources used by KOMOJU Payments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.07 | 31.25 ▼5.89 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.78 ▼14.70 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.22 ▼1.69 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.01 ▼5.62 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.66 ▲6.81 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
KOMOJU Payments: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,454 ▼307 | 14.21 ▼0.36 | 0.74 ▼0.96 | 22.23 ▼16.81 |
Dashboard /wp-admin | 2,198 ▲24 | 5.64 ▲0.05 | 81.67 ▼2.57 | 39.00 ▼3.65 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.02 | 38.74 ▲1.12 | 33.75 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.16 ▼0.11 | 635.80 ▼11.98 | 62.07 ▲2.03 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.16 ▼0.04 | 98.47 ▼4.10 | 44.74 ▼3.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/komoju-japanese-payments/index.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
3 plugin tags: payment gateway, komoju, woocommerce
komoju-japanese-payments/index.php 92% from 13 tests
The principal PHP file in "KOMOJU Payments" v. 3.0.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("komoju-japanese-payments.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,841 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 2,564 |
PHP | 18 | 264 | 425 | 1,497 |
JavaScript | 7 | 77 | 76 | 425 |
Markdown | 2 | 83 | 0 | 146 |
PO File | 1 | 46 | 69 | 129 |
Bourne Again Shell | 1 | 26 | 27 | 80 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 7 | 7.69% |
▷ Public methods | 63 | 69.23% |
▷ Protected methods | 18 | 19.78% |
▷ Private methods | 10 | 10.99% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin