Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼148.08ms] Passed 4 tests
Server-side resources used by Kangu para WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.15 | 32.98 ▲7.14 |
Dashboard /wp-admin | 3.20 ▲0.14 | 37.32 ▼6.00 |
Posts /wp-admin/edit.php | 3.31 ▲0.21 | 37.52 ▲1.75 |
Add New Post /wp-admin/post-new.php | 5.11 ▼0.33 | 60.68 ▼589.29 |
Media Library /wp-admin/upload.php | 3.15 ▲0.14 | 30.06 ▲1.23 |
Fretes Kangu /wp-admin/admin.php?page=kangu | 3.18 | 23.08 |
Server storage [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: no files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
Kangu para WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,867 ▲266 | 16.26 ▲0.58 | 10.80 ▲4.46 | 76.37 ▲0.15 |
Dashboard /wp-admin | 2,959 ▲64 | 6.53 ▲0.36 | 115.48 ▼18.57 | 166.37 ▼10.74 |
Posts /wp-admin/edit.php | 2,770 ▲30 | 3.52 ▲0.29 | 66.20 ▲0.57 | 151.60 ▲11.00 |
Add New Post /wp-admin/post-new.php | 45 ▼3,653 | 0.94 ▼17.69 | 0.05 ▼429.06 | 48.62 ▼121.35 |
Media Library /wp-admin/upload.php | 1,779 ▲30 | 5.83 ▲0.30 | 142.86 ▼3.09 | 197.61 ▲5.93 |
Fretes Kangu /wp-admin/admin.php?page=kangu | 1,175 | 3.11 | 57.48 | 100.32 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- recovery_mode_email_last_sent
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/kangu/view/admin-ajax.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/kangu/index.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/kangu/view/kangu-side-box-orders.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/kangu/view/shipping-setting.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kangu/lib/main.php:21
- > PHP Notice
Undefined variable: has_kangu in wp-content/plugins/kangu/view/kangu-side-box-orders.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/kangu/view/kangu-side-box-tracking.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/kangu/view/shipping-calculator.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/kangu/view/shipping-methods.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/kangu/view/kangu-box-tracking.php:2
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #2, #3, #4, #5, #6, #7, #8, #9 in kangu/assets to your readme.txt
kangu/index.php 85% from 13 tests
The entry point to "Kangu para WooCommerce" version 2.2.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kangu.php" instead of "index.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,812 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 206 | 71 | 1,222 |
CSS | 5 | 75 | 0 | 451 |
JavaScript | 7 | 7 | 2 | 99 |
SVG | 1 | 0 | 1 | 40 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 62.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 4 | 10.81% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin