Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.80ms] Passed 4 tests
Server-side resources used by VNShipping for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.22 ▲2.15 |
Dashboard /wp-admin | 3.40 ▲0.05 | 51.87 ▼14.20 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.90 ▼0.73 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 95.91 ▼2.01 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.68 ▲1.74 |
Server storage [IO: ▲3.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 936 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for VNShipping for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▲0.06 | 1.61 ▼0.15 | 44.55 ▲2.98 |
Dashboard /wp-admin | 2,195 ▲15 | 5.55 ▼0.10 | 91.15 ▲4.25 | 46.76 ▲6.54 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.02 | 34.84 ▼7.43 | 37.15 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.06 ▼0.13 | 647.06 ▼55.38 | 53.09 ▲0.29 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.10 ▼0.11 | 112.96 ▲1.00 | 48.54 ▲1.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
- 24× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/vnshipping-for-woocommerce/inc/REST/ShippingController.php:20
- > PHP Fatal error
Uncaught Error: Class 'VNShipping\\Courier\\Response\\CollectionResponseData' not found in wp-content/plugins/vnshipping-for-woocommerce/inc/Courier/Response/PaginatedResponseData.php:5
- > PHP Fatal error
Uncaught Error: Class 'VNShipping\\Courier\\Exception\\InvalidParameterException' not found in wp-content/plugins/vnshipping-for-woocommerce/inc/Courier/Exception/InvalidAddressDataException.php:5
- > PHP Fatal error
Uncaught Error: Class 'VNShipping\\Courier\\Response\\JsonResponseData' not found in wp-content/plugins/vnshipping-for-woocommerce/inc/Courier/Response/CollectionResponseData.php:9
- > PHP Fatal error
Uncaught Error: Interface 'VNShipping\\Vendor\\Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface' not found in wp-content/plugins/vnshipping-for-woocommerce/third-party/vendor/symfony/options-resolver/Exception/NoSuchOptionException.php:23
- > PHP Fatal error
Uncaught Error: Interface 'VNShipping\\Vendor\\Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface' not found in wp-content/plugins/vnshipping-for-woocommerce/third-party/vendor/symfony/options-resolver/Exception/OptionDefinitionException.php:18
- > PHP Fatal error
Trait 'VNShipping\\Traits\\SingletonTrait' not found in wp-content/plugins/vnshipping-for-woocommerce/inc/Plugin.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'VNShipping\\Courier\\AbstractCourier' not found in wp-content/plugins/vnshipping-for-woocommerce/inc/Courier/GHN.php:11
- > PHP Fatal error
Trait 'VNShipping\\Traits\\SingletonTrait' not found in wp-content/plugins/vnshipping-for-woocommerce/inc/OrderListTable.php on line 9
- > PHP Fatal error
Uncaught Error: Interface 'VNShipping\\Vendor\\Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface' not found in wp-content/plugins/vnshipping-for-woocommerce/third-party/vendor/symfony/options-resolver/Exception/NoConfigurationException.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: couriers, shipping, ghn, ghtk, viettel
vnshipping-for-woocommerce/vn-shipping.php 85% from 13 tests
The primary PHP file in "VNShipping for WooCommerce" version 0.2.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("vnshipping-for-woocommerce.php" instead of "vn-shipping.php")
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
No dangerous file extensions were detected123,875 lines of code in 917 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 774 | 0 | 0 | 81,926 |
PHP | 79 | 966 | 2,204 | 38,508 |
JavaScript | 44 | 446 | 254 | 2,079 |
Vuejs Component | 12 | 186 | 25 | 918 |
Sass | 6 | 72 | 0 | 441 |
Markdown | 1 | 1 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 4 | |
Traits | 2 | |
Classes | 54 | |
▷ Abstract classes | 1 | 1.85% |
▷ Concrete classes | 53 | 98.15% |
▷ Final classes | 1 | 1.89% |
Methods | 334 | |
▷ Static methods | 54 | 16.17% |
▷ Public methods | 312 | 93.41% |
▷ Protected methods | 12 | 3.59% |
▷ Private methods | 10 | 2.99% |
Functions | 44 | |
▷ Named functions | 12 | 27.27% |
▷ Anonymous functions | 32 | 72.73% |
Constants | 67 | |
▷ Global constants | 57 | 85.07% |
▷ Class constants | 10 | 14.93% |
▷ Public constants | 9 | 90.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/icons/vtp.png | 5.31KB | 3.02KB | ▼ 43.03% |
resources/icons/ghn.png | 17.01KB | 7.19KB | ▼ 57.71% |
resources/icons/ghtk.png | 19.80KB | 7.98KB | ▼ 59.69% |