Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.55ms] Passed 4 tests
Server-side resources used by KigoKasa Api for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.38 ▼0.88 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.03 ▼3.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.66 ▲2.63 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.33 ▼10.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.56 ▲0.54 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for KigoKasa Api for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.33 | 1.70 ▼0.05 | 43.49 ▲4.44 |
Dashboard /wp-admin | 2,192 ▲15 | 5.61 ▼0.05 | 92.06 ▼3.39 | 42.10 ▼2.73 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▼0.02 | 40.23 ▼0.09 | 36.46 ▼1.33 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 22.95 ▼0.18 | 658.65 ▼13.23 | 59.33 ▲7.56 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.01 | 108.90 ▼0.84 | 46.36 ▼3.36 |
Uninstaller [IO: ▲0.09MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attentionThis plugin does not fully uninstall, leaving 7 options in the database
- Uninstall procedure had uncaught errors
- > Error in wp-content/plugins/kigokasa-api-for-woocommerce/uninstall.php+19
Uncaught Error: Call to undefined function WC() in wp-content/plugins/kigokasa-api-for-woocommerce/uninstall.php:19
Stack trace:
#0 wp-admin/includes/plugin.php(1245): include_once()
#1 wp-admin/includes/plugin.php(960): uninstall_plugin() - Incomplete uninstall procedure, leaving 29 files (0.09MB) in the plugin directory
- (new file) admin/index.php
- (new file) README.txt
- (new file) includes/class-woo-kigokasa-api-activator.php
- (new file) admin/class-woo-kigokasa-api-admin.php
- (new file) includes/class-woo-kigokasa-api-deactivator.php
- (new file) admin/css/woo-kigokasa-api-admin.css
- (new file) README.md
- (new file) admin/js/woo-kigokasa-api-admin.js
- (new file) admin/partials/woo-kigokasa-api-admin-display.php
- (new file) includes/class-woo-kigokasa-api-i18n.php
- ...
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/kigokasa-api-for-woocommerce/public/partials/woo-kigokasa-api-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/kigokasa-api-for-woocommerce/uninstall.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Contributors: Contributors not specified
kigokasa-api-for-woocommerce/kigokasa-api-for-woocommerce.php 92% from 13 tests
"KigoKasa Api for WooCommerce" version 1.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 196 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,105 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 222 | 661 | 782 |
PO File | 2 | 110 | 124 | 259 |
Markdown | 1 | 36 | 0 | 58 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 1 | 8 | 0 |
PHP code Passed 2 tests
A short review 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.32 |
Average class complexity | 12.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 6 | 15.00% |
▷ Public methods | 33 | 82.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.50% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 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