Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.02MB] [CPU: ▼273.92ms] Passed 4 tests
A check of server-side resources used by Knawat WooCommerce DropShipping
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.41 ▲0.90 | 64.71 ▲14.37 |
Dashboard /wp-admin | 4.62 ▲1.21 | 51.58 ▲17.54 |
Posts /wp-admin/edit.php | 4.81 ▲1.17 | 56.07 ▲17.32 |
Add New Post /wp-admin/post-new.php | 7.78 ▲0.82 | 112.40 ▼1,144.50 |
Media Library /wp-admin/upload.php | 4.50 ▲1.21 | 40.24 ▲17.13 |
Knawat Setup /wp-admin/admin.php?page=knawat_setup | 4.43 | 31.12 |
Dropshipping /wp-admin/admin.php?page=knawat_dropship | 4.23 | 36.12 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 4.58 | 40.09 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 1 new option
New WordPress options |
---|
knawat_dropwc_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Knawat WooCommerce DropShipping
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,107 ▲1,353 | 15.82 ▲0.17 | 6.69 ▲0.26 | 2.41 ▼0.31 |
Dashboard /wp-admin | 4,238 ▲1,377 | 6.33 ▲0.18 | 123.87 ▼11.37 | 190.32 ▲28.64 |
Posts /wp-admin/edit.php | 4,044 ▲1,350 | 3.32 ▲0.27 | 69.64 ▲7.81 | 157.20 ▲21.70 |
Add New Post /wp-admin/post-new.php | 2,979 ▲1,318 | 15.32 ▼1.65 | 379.23 ▼45.26 | 185.28 ▲16.68 |
Media Library /wp-admin/upload.php | 3,055 ▲1,357 | 5.67 ▲0.12 | 127.60 ▼15.53 | 220.60 ▲25.29 |
Knawat Setup /wp-admin/admin.php?page=knawat_setup | 1,799 | 2.61 | 45.74 | 61.44 |
Dropshipping /wp-admin/admin.php?page=knawat_dropship | 2,731 | 2.84 | 55.92 | 166.67 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 2,673 | 2.71 | 56.49 | 128.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 1 option
- knawat_dropwc_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=knawat_dropship
- > Notice in wp-content/plugins/dropshipping-woocommerce/templates/admin/dropshipping-woocommerce-settings.php+226
Undefined variable: products_count
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=knawat_dropship
- > Notice in wp-content/plugins/dropshipping-woocommerce/templates/admin/dropshipping-woocommerce-settings.php+226
Undefined variable: products_synced
- > GET request to /wp-admin/admin.php?page=knawat_dropship
- > Notice in wp-content/plugins/dropshipping-woocommerce/templates/admin/dropshipping-woocommerce-settings.php+226
Undefined variable: stock_count
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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dropshipping-woocommerce/includes/lib/knawat-merlin/assets/images/spinner.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/dropshipping-woocommerce/includes/lib/tgmpa/class-tgm-plugin-activation.php:2129
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropshipping-woocommerce/includes/knawat-required-plugins.php:116
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/dropshipping-woocommerce/includes/lib/wp-background-processing/wp-background-process.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% 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:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: No descriptions were found for these screenshots #3, #4, #5, #6, #7, #8 in dropshipping-woocommerce/assets to your readme.txt
dropshipping-woocommerce/dropshipping-woocommerce.php 92% from 13 tests
This is the main PHP file of "Knawat WooCommerce DropShipping" version 3.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "3.3.0")
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
There were no executable files found in this plugin12,012 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,677 | 3,925 | 7,669 |
CSS | 3 | 264 | 19 | 2,275 |
PO File | 2 | 452 | 567 | 1,100 |
SVG | 1 | 17 | 2 | 629 |
JavaScript | 3 | 59 | 14 | 277 |
Markdown | 2 | 11 | 0 | 22 |
JSON | 1 | 0 | 0 | 20 |
XML | 2 | 6 | 6 | 20 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 52.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 93.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 2 | 8.00% |
▷ Concrete classes | 23 | 92.00% |
▷ Final classes | 0 | 0.00% |
Methods | 342 | |
▷ Static methods | 7 | 2.05% |
▷ Public methods | 276 | 80.70% |
▷ Protected methods | 58 | 16.96% |
▷ Private methods | 8 | 2.34% |
Functions | 30 | |
▷ Named functions | 26 | 86.67% |
▷ Anonymous functions | 4 | 13.33% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/multi-drop-shipper-digram.png | 33.66KB | 12.52KB | ▼ 62.80% |
assets/images/knawat.png | 0.55KB | 0.70KB | 0.00% |