PHPackages                             ckreidl/woo-dimension-check - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ckreidl/woo-dimension-check

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ckreidl/woo-dimension-check
===========================

Checks WooCommerce product database via Woo's REST API to identify items that have no weight or dimensions.

0.1(7y ago)03GPL-3.0-or-laterPHP

Since Feb 17Pushed 7y agoCompare

[ Source](https://github.com/ckreidl/woo-dimension-check)[ Packagist](https://packagist.org/packages/ckreidl/woo-dimension-check)[ RSS](/packages/ckreidl-woo-dimension-check/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

woo-dimension-check
===================

[](#woo-dimension-check)

woo-dimension-check is a library that helps to identify WooCommerce products with no weight, length, width, or height.

Installation
------------

[](#installation)

`composer require ckreidl/woo-dimension-check`

Usage
-----

[](#usage)

```
use ckreidl\WooDimensionCheck;

$url = 'https://your_store_url.com';
$key = 'consumer_key';
$secret = 'consumer_secret';

$missing = new WooDimensionCheck\DimChecker($url, $key, $secret);

```

Example
-------

[](#example)

```
$missing = new WooDimensionCheck\DimChecker($url, $key, $secret);

print "There are " . count($missing->weight()) . " items missing weights. They are: \n";
array_walk($missing->weight(), function($prod) { print "{$prod->id} "; }); print "\n";

```

Background
----------

[](#background)

I ran into some issues where the shipping calculators we were using wouldn't play nicely if items didn't have weights and/or measures entered. For example:

1. Customer adds widget A to their cart, which doesn't have dimensions or a weight listed
2. Customer proceeds to checkout
3. Shipping calculator, not knowing the size or weight of widget A, declines to show them shipping options

Meanwhile, another customer adds the same widget A as well as widget B, which does have weight &amp; dimensions

1. Customer adds widget A to their cart, with no weight or dims
2. Customer adds widget B, with weight &amp; dims
3. Shipping calculator defaults to 0 for widget A, solely calculating shipping based off weight and dims of widget B

We can go back and forth all day about what the default behavior should be when an item without this information is encountered. It's my opinion that the database should have that information, so I wrote this little tool to identify items that don't have that data entered.

License
-------

[](#license)

[GPL 3.0](https://opensource.org/licenses/GPL-3.0)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2641d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/684b361bff174880e464a9bef2376e482d5990f23aa17ac5f2d75c55b3ea109e?d=identicon)[ckreidl](/maintainers/ckreidl)

---

Top Contributors

[![ckreidl](https://avatars.githubusercontent.com/u/37161888?v=4)](https://github.com/ckreidl "ckreidl (2 commits)")

### Embed Badge

![Health badge](/badges/ckreidl-woo-dimension-check/health.svg)

```
[![Health](https://phpackages.com/badges/ckreidl-woo-dimension-check/health.svg)](https://phpackages.com/packages/ckreidl-woo-dimension-check)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
