Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼9.18ms] Passed 4 tests
This is a short check of server-side resources used by Woocommerce Vietnam Checkout
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 38.78 ▲0.32 |
Dashboard /wp-admin | 3.51 ▲0.16 | 49.56 ▼9.09 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 45.84 ▼9.20 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 81.24 ▼18.75 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.42 ▲2.75 |
Server storage [IO: ▲1.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Woocommerce Vietnam Checkout
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.02 | 1.65 ▲0.00 | 38.53 ▼0.62 |
Dashboard /wp-admin | 2,189 ▲12 | 5.54 ▼0.08 | 82.16 ▼7.28 | 37.45 ▼3.72 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▼0.00 | 35.50 ▼1.11 | 33.69 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.68 ▲5.19 | 690.36 ▲92.25 | 61.34 ▼0.91 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.03 | 101.97 ▲5.00 | 44.40 ▲1.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-vietnam-checkout/cities/quan_huyen_old.php
- > /wp-content/plugins/woo-vietnam-checkout/devvn-woo-address-selectbox.php
- > /wp-content/plugins/woo-vietnam-checkout/get-address.php
- > /wp-content/plugins/woo-vietnam-checkout/cities/tinh_thanhpho_old.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/woo-vietnam-checkout/includes/options-page.php:11
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Giao diện Form Checkout.), #2 (Giao diện toàn bộ trang checkout.), #3 (Phần cài đặt của plugin.), #4 (Thông tin được hiển thị trong quản trị đơn hàng.), #5 (Thông tin sau khi đặt hàng.)
woo-vietnam-checkout/devvn-woo-address-selectbox.php 77% from 13 tests
This is the main PHP file of "Woocommerce Vietnam Checkout" version 2.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-vietnam-checkout.php" instead of "devvn-woo-address-selectbox.php")
- Requires at least: The required version number must match the one declared in readme.txt ("4.3" instead of "8.0.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
Everything looks great! No dangerous files found in this plugin15,457 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 240 | 75 | 13,873 |
CSS | 3 | 109 | 11 | 680 |
JavaScript | 3 | 32 | 17 | 639 |
PO File | 1 | 121 | 146 | 265 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 89.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 204.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 5 | 6.94% |
▷ Public methods | 72 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
18 PNG files occupy 0.28MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.08KB | 0.10KB | 0.00% |
assets/css/images/ui-bg_glass_75_dadada_1x400.png | 0.09KB | 0.16KB | 0.00% |
screenshot-4.png | 29.61KB | 16.09KB | ▼ 45.66% |
screenshot-2.png | 137.26KB | 36.57KB | ▼ 73.36% |
assets/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |