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
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼139.97ms] Passed 4 tests
This is a short check of server-side resources used by Plugin Ongkos Kirim JNE Tiki Sicepat Wahana J&T POS for Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.15 | 24.70 ▼10.82 |
Dashboard /wp-admin | 3.38 ▲0.33 | 49.25 ▲2.53 |
Posts /wp-admin/edit.php | 3.43 ▲0.33 | 45.97 ▲0.94 |
Add New Post /wp-admin/post-new.php | 5.68 ▲0.25 | 92.71 ▼551.44 |
Media Library /wp-admin/upload.php | 3.26 ▲0.26 | 34.65 ▲1.46 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 12 new options
New WordPress options |
---|
ongkoskirim_id_is_show_weight |
ongkoskirim_id_shipping_company_enabled |
ongkoskirim_id_default_weight |
ongkoskirim_id_is_unique_code |
ongkoskirim_id_is_added_cost_enable |
ongkoskirim_id_store_city_id |
ongkoskirim_id_license_status |
ongkoskirim_id_version_type |
ongkoskirim_id_license_key |
ongkoskirim_id_unique_code_length |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Plugin Ongkos Kirim JNE Tiki Sicepat Wahana J&T POS for Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,302 ▼294 | 15.86 ▲0.24 | 1.18 ▼7.37 | 9.99 ▼40.93 |
Dashboard /wp-admin | 3,008 ▲77 | 6.17 ▲0.16 | 144.97 ▲0.54 | 103.89 ▼4.61 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.71 ▼0.00 | 68.16 ▼1.65 | 84.80 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,523 ▼349 | 18.88 ▼0.25 | 399.92 ▼10.71 | 101.82 ▼4.42 |
Media Library /wp-admin/upload.php | 1,845 ▲38 | 5.06 ▲0.02 | 171.33 ▲13.57 | 144.63 ▲26.24 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 12 options in the database
- ongkoskirim_id_is_show_weight
- ongkoskirim_id_weight_tolerance
- ongkoskirim_id_added_cost
- ongkoskirim_id_shipping_company_enabled
- ongkoskirim_id_license_key
- ongkoskirim_id_is_unique_code
- ongkoskirim_id_unique_code_length
- ongkoskirim_id_is_added_cost_enable
- ongkoskirim_id_default_weight
- ongkoskirim_id_version_type
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ongkoskirim-id/public/partials/ongkoskirim-id-public-display.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ongkoskirim-id/admin/partials/ongkoskirim-id-admin-settings-page-header.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ongkoskirim-id/admin/partials/ongkoskirim-id-admin-welcome-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ongkoskirim-id/admin/partials/ongkoskirim-id-admin-settings-page.php:1
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/ongkoskirim-id/includes/class-ongkoskirim-id-shipping-method.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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 20 tag instead of maximum 10
ongkoskirim-id/ongkoskirim-id.php Passed 13 tests
The primary PHP file in "Plugin Ongkos Kirim JNE Tiki Sicepat Wahana J&T POS for Woocommerce" version 1.0.6 is used by WordPress to initiate all plugin functionality
91 characters long description:
Plugin woocommerce untuk menambahkan ongkos kirim JNE, TIKI, Sicepat, Wahana dan lain-lain.
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
Success! There were no dangerous files found in this plugin2,572 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 473 | 676 | 1,575 |
CSS | 4 | 124 | 14 | 661 |
JavaScript | 2 | 55 | 32 | 191 |
PO File | 1 | 55 | 64 | 145 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 14.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 2 | 2.20% |
▷ Public methods | 78 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.36MB with 0.25MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logos.png | 10.88KB | 5.48KB | ▼ 49.66% |
admin/images/dashboard.png | 114.30KB | 39.04KB | ▼ 65.84% |
admin/images/screen.png | 186.00KB | 37.10KB | ▼ 80.05% |
admin/images/strips.png | 59.98KB | 9.54KB | ▼ 84.10% |