Benchmarks
Plugin footprint 65% 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: ▼1.56MB] [CPU: ▼187.39ms] Passed 4 tests
An overview of server-side resources used by shipcost plugin with googleMap
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.00 ▼0.72 | 8.99 ▼9.37 |
Dashboard /wp-admin | 2.09 ▼0.97 | 8.61 ▼37.95 |
Posts /wp-admin/edit.php | 2.09 ▼1.02 | 13.27 ▼33.65 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.34 | 8.83 ▼651.62 |
Media Library /wp-admin/upload.php | 2.09 ▼0.91 | 7.51 ▼26.32 |
訂單檢視 /wp-admin/admin.php?page=GMSC-plugin_order_check | 2.09 | 8.92 |
運費計算模組 /wp-admin/admin.php?page=GMSC-plugin_main | 2.09 | 9.11 |
設定 /wp-admin/admin.php?page=GMSC_setting | 2.09 | 8.60 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- Illegal file modification found: 4 files (54.12KB) outside of "wp-content/plugins/shipcost-with-googlemap/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/shipcost-with-googlemap/doc/Google Map API Key\347\224\263\350\253\213\346\226\271\345\274\217.docx"
- (new file) "wp-content/plugins/shipcost-with-googlemap/doc/\347\266\240\347\225\214\344\273\230\350\262\273\346\250\241\347\265\204\345\233\236\345\202\263\351\240\201\351\235\242\350\250\255\345\256\232.docx"
- (new file) wp-content/themes/twentytwentyone/ECPay.Payment.Integration.php
- (new file) wp-content/themes/twentytwentyone/ECPay-template.php
Filesystem: 22 new files
Database: 1 new table, no new options
New tables |
---|
wp_ship_custom_order |
Browser metrics Passed 4 tests
This is an overview of browser requirements for shipcost plugin with googleMap
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,935 ▲339 | 19.81 ▲4.18 | 30.11 ▲19.65 | 43.65 ▼2.67 |
Dashboard /wp-admin | 3,005 ▲71 | 5.92 ▼0.01 | 154.79 ▲7.45 | 125.13 ▲19.32 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.73 ▲0.03 | 64.28 ▼0.52 | 96.29 ▲10.17 |
Add New Post /wp-admin/post-new.php | 1,524 ▼2,200 | 18.54 ▲3.33 | 375.93 ▼113.48 | 106.48 ▼1.49 |
Media Library /wp-admin/upload.php | 1,770 ▼37 | 5.07 ▲0.08 | 160.96 ▲12.15 | 129.07 ▲19.06 |
訂單檢視 /wp-admin/admin.php?page=GMSC-plugin_order_check | 1,283 | 2.84 | 74.46 | 124.14 |
運費計算模組 /wp-admin/admin.php?page=GMSC-plugin_main | 1,226 | 2.43 | 59.91 | 122.23 |
設定 /wp-admin/admin.php?page=GMSC_setting | 1,410 | 2.99 | 81.95 | 132.51 |
Uninstaller [IO: ▲0.05MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5663
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 jquery-ui-tabs 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_ship_custom_order
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
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=GMSC_setting
- > User notice in wp-includes/functions.php+5663
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 jquery-ui-tabs handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=GMSC_setting
- > Deprecated in wp-content/plugins/shipcost-with-googlemap/includes/class_GMSCplugin-main.php+120
Function create_function() is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_script() in wp-content/plugins/shipcost-with-googlemap/templates/GMSC-plugin_order_check.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/shipcost-with-googlemap/templates/GMSC-plugin_admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/shipcost-with-googlemap/googleMap_ShipCostPlugin.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shipcost-with-googlemap/includes/class_GMSCplugin-setting.php:2
- > PHP Fatal error
Uncaught Error: Class 'GMSC_Translation' not found in wp-content/plugins/shipcost-with-googlemap/templates/mainmap_page.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=GMSC_setting
- > Network (severe)
wp-content/plugins/shipcost-with-googlemap//js/colpick/css/colpick.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=GMSC_setting
- > Network (severe)
wp-content/plugins/shipcost-with-googlemap//js/colpick/js/colpick.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=GMSC-plugin_order_check
- > Network (severe)
wp-content/plugins/shipcost-with-googlemap//css/DataTables-1.10.20/images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=GMSC-plugin_order_check
- > Network (severe)
wp-content/plugins/shipcost-with-googlemap//css/DataTables-1.10.20/images/sort_desc.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=GMSC_setting
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=GMSC_setting 260:55 Uncaught TypeError: jQuery(...).colpick is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in shipcost-with-googlemap/assets to your readme.txt
shipcost-with-googlemap/googleMap_ShipCostPlugin.php 92% from 13 tests
The primary PHP file in "shipcost plugin with googleMap" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("shipcost-with-googlemap.php" instead of "googleMap_ShipCostPlugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin8,697 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 603 | 54 | 3,978 |
JavaScript | 4 | 398 | 748 | 2,443 |
PHP | 9 | 351 | 431 | 2,276 |
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.28 |
Average class complexity | 5.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 16 | 43.24% |
▷ Concrete classes | 21 | 56.76% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 20 | 36.36% |
▷ Public methods | 49 | 89.09% |
▷ Protected methods | 4 | 7.27% |
▷ Private methods | 2 | 3.64% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 76 | |
▷ Global constants | 3 | 3.95% |
▷ Class constants | 73 | 96.05% |
▷ Public constants | 73 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin