Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
Server metrics [RAM: ▼1.83MB] [CPU: ▼55.48ms] Passed 4 tests
A check of server-side resources used by JNE Shipping
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 5.47 ▼41.40 |
Dashboard /wp-admin | 2.18 ▼1.13 | 6.70 ▼42.40 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 6.07 ▼44.57 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 7.95 ▼93.54 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 7.27 ▼26.83 |
JNE Shipping /wp-admin/options-general.php?page=jne-shipping | 2.18 | 7.13 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_jne_shipping |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for JNE Shipping
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲158 | 13.64 ▼0.94 | 9.65 ▲7.58 | 43.49 ▼4.34 |
Dashboard /wp-admin | 2,216 ▲42 | 5.71 ▲0.15 | 106.47 ▲20.85 | 42.98 ▲3.53 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.05 ▲0.08 | 40.21 ▲3.38 | 36.18 ▼2.83 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.44 ▲0.32 | 665.61 ▼39.72 | 63.35 ▲2.30 |
Media Library /wp-admin/upload.php | 1,430 ▲36 | 4.39 ▲0.25 | 107.45 ▲7.25 | 46.04 ▼1.32 |
JNE Shipping /wp-admin/options-general.php?page=jne-shipping | 871 | 2.28 | 28.03 | 28.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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 did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the autocomplete_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_jne_shipping
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jne-shipping
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the autocomplete_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jne-shipping
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jneshipp_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jne-shipping
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the autocomplete_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jne-shipping
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jneshipp_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=jne-shipping
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jne-shipping
- > Notice in wp-content/plugins/jne-shipping/wpe-jneshipping.php+409
Undefined variable: _SESSION
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=jne-shipping
- > Notice in wp-content/plugins/jne-shipping/wpe-jneshipping.php+409
Trying to access array offset on value of type null
SRP 0% 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 take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/jne-shipping/display_edit_tarif.view.php
- > /wp-content/plugins/jne-shipping/display_add_tarif.view.php
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/jne-shipping/display_edit_tarif.view.php on line 23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/jne-shipping/display_edit_tarif.view.php on line 19
- > PHP Notice
Undefined variable: data in wp-content/plugins/jne-shipping/display_edit_tarif.view.php on line 23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/jne-shipping/display_edit_tarif.view.php on line 37
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/jne-shipping/display_edit_tarif.view.php on line 31
- > PHP Notice
Undefined variable: data in wp-content/plugins/jne-shipping/display_edit_tarif.view.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jne-shipping/donation.view.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jne-shipping/donation.view.php:1
- > PHP Notice
Undefined variable: data in wp-content/plugins/jne-shipping/display_edit_tarif.view.php on line 19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/jne-shipping/display_edit_tarif.view.php on line 13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (screenshot-1.png Tampilan JNE Shipping pada form Checkout.), #2 (screenshot-4.png Tampilan preview import Tarif.)
jne-shipping/wpe-jneshipping.php 92% from 13 tests
The entry point to "JNE Shipping" version 1.7 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("jne-shipping.php" instead of "wpe-jneshipping.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,436 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 125 | 265 | 748 |
PHP | 8 | 116 | 13 | 643 |
CSS | 2 | 6 | 0 | 45 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 63.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 25.60KB | 11.20KB | ▼ 56.25% |
screenshot-2.png | 34.65KB | 12.68KB | ▼ 63.40% |
jne-icon.png | 1.97KB | 1.23KB | ▼ 37.40% |
js-css/images/icons-18-white.png | 0.89KB | 0.75KB | ▼ 15.97% |
screenshot-3.png | 19.30KB | 8.71KB | ▼ 54.89% |