78% wc-venipak-shipping

Code Review | Shipping with Venipak for WooCommerce

WordPress plugin Shipping with Venipak for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: wc-venipak-shipping
  • Plugin version: 1.19.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Oct 14, 2020
  • Latest release: Dec 1, 2023
  • Number of updates: 189
  • Update frequency: every 6.1 days
  • Top authors: shopup (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /9,815 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4325.85 ▼10.65
Dashboard /wp-admin3.85 ▲0.5447.79 ▼3.00
Posts /wp-admin/edit.php3.90 ▲0.5450.00 ▲0.21
Add New Post /wp-admin/post-new.php6.39 ▲0.5082.49 ▼12.64
Media Library /wp-admin/upload.php3.71 ▲0.4839.51 ▲6.51
Venipak /wp-admin/admin.php?page=shopup_venipak_shipping3.6734.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,458 ▼30414.31 ▼0.050.48 ▼1.0916.31 ▼22.22
Dashboard /wp-admin2,199 ▲215.62 ▼0.0893.28 ▼17.5543.76 ▼0.80
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0640.73 ▼1.3633.69 ▼2.11
Add New Post /wp-admin/post-new.php1,530 ▲123.15 ▲0.22670.85 ▲62.6056.01 ▲7.64
Media Library /wp-admin/upload.php1,404 ▲14.24 ▲0.0495.44 ▼2.9044.25 ▲2.77
Venipak /wp-admin/admin.php?page=shopup_venipak_shipping1,1182.0229.3227.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP254561,3632,218
PO File4411606903
JavaScript2325397
CSS27433
SVG1004

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 code0.29
Average class complexity16.72
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods105
▷ Static methods21.90%
▷ Public methods10095.24%
▷ Protected methods00.00%
▷ Private methods54.76%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
public/images/venipak-logo.png0.74KB0.38KB▼ 49.34%