Benchmarks
Plugin footprint 65% 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: ▼0.11MB] [CPU: ▼12.20ms] Passed 4 tests
An overview of server-side resources used by Shipping Viet Nam WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 33.53 ▼8.36 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.26 ▼2.54 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.95 ▼4.99 |
Add New Post /wp-admin/post-new.php | 5.26 ▼0.63 | 64.60 ▼32.92 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.27 ▲3.14 |
Server storage [IO: ▲1.16MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_svw_province_district_ward |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
recovery_mode_email_last_sent |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Shipping Viet Nam WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,467 ▼290 | 13.25 ▼1.13 | 0.47 ▼1.63 | 15.81 ▼27.98 |
Dashboard /wp-admin | 2,208 ▲17 | 4.89 ▼0.03 | 105.28 ▲4.73 | 41.49 ▼0.03 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.05 | 37.22 ▼2.52 | 28.26 ▼8.72 |
Add New Post /wp-admin/post-new.php | 45 ▼1,469 | 0.44 ▼17.03 | 0.07 ▼640.09 | 9.08 ▼47.58 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.21 ▲0.02 | 99.66 ▲1.67 | 62.82 ▲21.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_svw_province_district_ward
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- recovery_mode_email_last_sent
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
Everything seems fine, however this is by no means 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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shipping-viet-nam-woocommerce/class/shipping-custom-fields-order.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/shipping-viet-nam-woocommerce/shipping-vietnam-woocommerce.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shipping-viet-nam-woocommerce/class/shipping-custom-fields.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipping-viet-nam-woocommerce/class/ajax.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Kích hoạt và cài đặt thông tin người gửi.), #2 (Tra cứu trạng thái vận đơn khi xem order.), #3 (Các field và tính toán chi phí GHN.), #4 (Đăng đơn lên GHN)
shipping-viet-nam-woocommerce/shipping-vietnam-woocommerce.php 69% from 13 tests
"Shipping Viet Nam WooCommerce" version 3.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Description: Please keep the plugin description shorter than 140 characters (currently 612 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("shipping-viet-nam-woocommerce.php" instead of "shipping-vietnam-woocommerce.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin2,586 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 214 | 110 | 1,724 |
Sass | 1 | 27 | 0 | 343 |
CSS | 1 | 31 | 5 | 306 |
JavaScript | 2 | 15 | 9 | 210 |
JSON | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 22.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 63 | |
▷ Static methods | 17 | 26.98% |
▷ Public methods | 63 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.69MB with 0.50MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 139.46KB | 38.42KB | ▼ 72.45% |
screenshot-4.png | 237.63KB | 65.69KB | ▼ 72.36% |
screenshot-2.png | 211.00KB | 56.64KB | ▼ 73.15% |
screenshot-3.png | 114.55KB | 30.86KB | ▼ 73.06% |