Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▼6.52ms] Passed 4 tests
Server-side resources used by Shipping with Venipak for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 25.85 ▼10.65 |
Dashboard /wp-admin | 3.85 ▲0.54 | 47.79 ▼3.00 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 50.00 ▲0.21 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 82.49 ▼12.64 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 39.51 ▲6.51 |
Venipak /wp-admin/admin.php?page=shopup_venipak_shipping | 3.67 | 34.71 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Shipping with Venipak for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,458 ▼304 | 14.31 ▼0.05 | 0.48 ▼1.09 | 16.31 ▼22.22 |
Dashboard /wp-admin | 2,199 ▲21 | 5.62 ▼0.08 | 93.28 ▼17.55 | 43.76 ▼0.80 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.06 | 40.73 ▼1.36 | 33.69 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,530 ▲1 | 23.15 ▲0.22 | 670.85 ▲62.60 | 56.01 ▲7.64 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.24 ▲0.04 | 95.44 ▼2.90 | 44.25 ▲2.77 |
Venipak /wp-admin/admin.php?page=shopup_venipak_shipping | 1,118 | 2.02 | 29.32 | 27.57 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wc-venipak-shipping/public/partials/woocommerce-shopup-venipak-shipping-public-display.php
- > /wp-content/plugins/wc-venipak-shipping/admin/partials/woocommerce-shopup-venipak-shipping-admin-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/wc-venipak-shipping/admin/class-woocommerce-shopup-venipak-shipping-admin-pickup.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/wc-venipak-shipping/admin/class-woocommerce-shopup-venipak-shipping-admin-courier.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wc-venipak-shipping/public/woocommerce/checkout/venipak-shipping-terminals.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: venipak
wc-venipak-shipping/woocommerce-shopup-venipak-shipping.php 85% from 13 tests
The main file in "Shipping with Venipak for WooCommerce" v. 1.19.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-venipak-shipping.php" instead of "woocommerce-shopup-venipak-shipping.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,555 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 456 | 1,363 | 2,218 |
PO File | 4 | 411 | 606 | 903 |
JavaScript | 2 | 32 | 5 | 397 |
CSS | 2 | 7 | 4 | 33 |
SVG | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
An overview of 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.29 |
Average class complexity | 16.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 2 | 1.90% |
▷ Public methods | 100 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.76% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/venipak-logo.png | 0.74KB | 0.38KB | ▼ 49.34% |