Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.03MB] [CPU: ▼6.59ms] Passed 4 tests
Server-side resources used by Ahamove WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 38.89 ▼3.08 |
Dashboard /wp-admin | 3.45 ▲0.14 | 49.21 ▲1.73 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 45.90 ▲2.92 |
Add New Post /wp-admin/post-new.php | 5.34 ▼0.55 | 58.88 ▼26.44 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 32.54 ▲1.42 |
Server storage [IO: ▲4.53MB] [DB: ▲0.60MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_aha_woo_hanhchinhvn |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
recovery_mode_email_last_sent |
can_compress_scripts |
widget_recent-posts |
ghst_woocommerce_cities |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Ahamove WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲31 | 13.61 ▼0.76 | 1.61 ▼0.73 | 42.30 ▼1.77 |
Dashboard /wp-admin | 2,211 ▲26 | 4.83 ▼1.03 | 103.64 ▼9.94 | 41.65 ▼0.98 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.03 ▲0.02 | 34.98 ▼4.08 | 32.29 ▼3.44 |
Add New Post /wp-admin/post-new.php | 45 ▼1,475 | 0.44 ▼22.56 | 0.17 ▼657.04 | 8.78 ▼43.75 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.18 ▼0.02 | 92.87 ▼3.83 | 64.74 ▲18.46 |
Uninstaller [IO: ▲0.00MB] [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
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'GHST_Woocommerce_Custom_Fields' not found in wp-content/plugins/giao-hang-sieu-toc/display/ghst-meta-boxes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/giao-hang-sieu-toc/class/custom-fields.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/giao-hang-sieu-toc/class/ajax.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/giao-hang-sieu-toc/ghst-woo.php:14
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Thông tin về plugin), #2 (Thông tin cấu hình), #3 (Ví dụ về cách cấu hình), #4 (Nút tạo đơn hàng), #5 (Thông tin về đơn hàng), #6 (Kiểm tra phí và khoảng cách giao hàng), #7 (Thông báo tạo đơn hàng thành công), #8 (Thông tin về mã đơn hàng sau khi tạo thành công)
giao-hang-sieu-toc/ghst-woo.php 77% from 13 tests
This is the main PHP file of "Ahamove WooCommerce" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("giao-hang-sieu-toc.php" instead of "ghst-woo.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected114,618 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 8 | 0 | 0 | 113,497 |
PHP | 8 | 119 | 20 | 969 |
JavaScript | 1 | 5 | 0 | 109 |
CSS | 1 | 8 | 0 | 43 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 14.57 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 23 | 60.53% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.75MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 107.97KB | 33.07KB | ▼ 69.37% |
screenshot-5.png | 68.62KB | 20.75KB | ▼ 69.76% |
screenshot-4.png | 126.01KB | 40.00KB | ▼ 68.26% |
screenshot-1.png | 20.15KB | 7.78KB | ▼ 61.38% |
screenshot-6.png | 69.54KB | 21.10KB | ▼ 69.66% |