Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.41MB] [CPU: ▲8.95ms] Passed 4 tests
This is a short check of server-side resources used by KiotViet Sync
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.87 ▲1.40 | 49.86 ▲8.66 |
Dashboard /wp-admin | 4.72 ▲1.41 | 62.85 ▲10.76 |
Posts /wp-admin/edit.php | 4.77 ▲1.41 | 60.40 ▲10.09 |
Add New Post /wp-admin/post-new.php | 7.31 ▲1.42 | 100.62 ▲6.30 |
Media Library /wp-admin/upload.php | 4.65 ▲1.41 | 49.31 ▲15.30 |
Thiết lập thông tin đồng bộ /wp-admin/admin.php?page=plugin-kiotviet-sync | 4.55 | 45.54 |
Cài đặt plugin /wp-admin/plugins.php?page=tgmpa-install-plugins | 4.75 | 41.91 |
Danh sách đơn đặt hàng /wp-admin/admin.php?page=plugin-kiotviet-sync-order | 4.64 | 40.57 |
Danh sách webhook /wp-admin/admin.php?page=plugin-kiotviet-sync-webhook | 4.64 | 43.35 |
Lịch sử đồng bộ /wp-admin/admin.php?page=plugin-kiotviet-sync-history | 4.63 | 44.99 |
Cài đặt /wp-admin/admin.php?page=plugin-kiotviet-sync-options | 4.76 | 43.14 |
Danh sách sản phẩm đồng bộ /wp-admin/admin.php?page=plugin-kiotviet-sync-product | 4.64 | 43.34 |
Server storage [IO: ▲12.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 200 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_kiotviet_sync_categories |
wp_kiotviet_sync_logs |
wp_kiotviet_sync_orders |
wp_kiotviet_sync_products |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
recovery_mode_email_last_sent |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by KiotViet Sync
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲119 | 14.68 ▼0.03 | 1.88 ▲0.10 | 39.26 ▼6.63 |
Dashboard /wp-admin | 2,261 ▲81 | 5.64 ▼0.04 | 98.01 ▲5.53 | 51.81 ▲7.33 |
Posts /wp-admin/edit.php | 2,175 ▲75 | 2.02 ▼0.00 | 41.67 ▲0.99 | 46.30 ▲11.40 |
Add New Post /wp-admin/post-new.php | 1,580 ▲54 | 23.25 ▼0.10 | 622.04 ▼34.19 | 51.11 ▲0.35 |
Media Library /wp-admin/upload.php | 1,474 ▲71 | 4.20 ▲0.01 | 96.44 ▼0.34 | 51.71 ▲11.20 |
Thiết lập thông tin đồng bộ /wp-admin/admin.php?page=plugin-kiotviet-sync | 1,073 | 5.81 | 104.49 | 70.26 |
Cài đặt plugin /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,010 | 2.06 | 26.96 | 41.09 |
Danh sách đơn đặt hàng /wp-admin/admin.php?page=plugin-kiotviet-sync-order | 757 | 1.12 | 6.57 | 35.42 |
Danh sách webhook /wp-admin/admin.php?page=plugin-kiotviet-sync-webhook | 902 | 4.17 | 75.13 | 36.01 |
Lịch sử đồng bộ /wp-admin/admin.php?page=plugin-kiotviet-sync-history | 1,039 | 4.15 | 85.05 | 37.12 |
Cài đặt /wp-admin/admin.php?page=plugin-kiotviet-sync-options | 975 | 4.26 | 76.38 | 42.08 |
Danh sách sản phẩm đồng bộ /wp-admin/admin.php?page=plugin-kiotviet-sync-product | 1,021 | 4.14 | 80.73 | 35.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_kiotviet_sync_categories
- wp_kiotviet_sync_orders
- wp_kiotviet_sync_products
- wp_kiotviet_sync_logs
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=plugin-kiotviet-sync-order
- > Error in wp-content/plugins/kiotvietsync/admin/list_table/order.php+88
Uncaught Error: Call to undefined function wc_orders_count() in wp-content/plugins/kiotvietsync/admin/list_table/order.php:88
Stack trace:
#0 wp-content/plugins/kiotvietsync/admin/views/order.php(6): Kv_Orders_List->prepare_items()
#1 wp-content/plugins/kiotvietsync/admin/class-kiotviet-sync-admin.php(114): include_once('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): Kiotviet_Sync_Admin->action_kiotvietsync_order()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/kiotvietsync/admin/partials/kiotviet-sync-admin-display.php
- > /wp-content/plugins/kiotvietsync/admin/views/kiotviet-sync-admin-display.php
- 79× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/kiotvietsync/admin/list_table/log.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'StubsGenerator\\Finder' not found in wp-content/plugins/kiotvietsync/vendor/php-stubs/woocommerce-stubs/finder-packages.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/kiotvietsync/vendor/guzzlehttp/psr7/src/Stream.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/kiotvietsync/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kiotvietsync/includes/services/class-kiotviet-sync-services-order.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kiotvietsync/includes/public_actions/admin/controllers/QueryControllerAdmin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kiotvietsync/includes/services/class-kiotviet-sync-services-pricebooks.php:2
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/kiotvietsync/vendor/guzzlehttp/promises/src/TaskQueue.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/kiotvietsync/vendor/guzzlehttp/psr7/src/BufferStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/kiotvietsync/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (https://www.kiotviet.vn/wp-content/uploads/2019/07/Screenshot1.png), #2 (https://www.kiotviet.vn/wp-content/uploads/2019/07/Screenshot2.png), #3 (https://www.kiotviet.vn/wp-content/uploads/2019/07/Screenshot3.png)
kiotvietsync/kiotviet-sync.php 85% from 13 tests
The primary PHP file in "KiotViet Sync" version 1.6.87 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("kiotvietsync.php" instead of "kiotviet-sync.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected75,439 lines of code in 178 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 146 | 3,147 | 160,507 | 71,181 |
Markdown | 11 | 1,007 | 0 | 3,219 |
JSON | 10 | 0 | 0 | 687 |
CSS | 2 | 2 | 20 | 126 |
Sass | 1 | 12 | 4 | 126 |
Bourne Shell | 2 | 16 | 23 | 54 |
XML | 1 | 4 | 0 | 18 |
YAML | 1 | 4 | 0 | 14 |
make | 1 | 4 | 0 | 9 |
JavaScript | 2 | 2 | 28 | 4 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 2.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 69 | |
Interfaces | 51 | |
Traits | 10 | |
Classes | 1,385 | |
▷ Abstract classes | 73 | 5.27% |
▷ Concrete classes | 1,312 | 94.73% |
▷ Final classes | 49 | 3.73% |
Methods | 13,177 | |
▷ Static methods | 2,042 | 15.50% |
▷ Public methods | 10,435 | 79.19% |
▷ Protected methods | 2,063 | 15.66% |
▷ Private methods | 679 | 5.15% |
Functions | 4,205 | |
▷ Named functions | 4,115 | 97.86% |
▷ Anonymous functions | 90 | 2.14% |
Constants | 522 | |
▷ Global constants | 6 | 1.15% |
▷ Class constants | 516 | 98.85% |
▷ Public constants | 516 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin