83% wooinventory-lite

Code Review | WooInventory Lite

WordPress plugin WooInventory Lite scored 83% from 54 tests.

About plugin

  • Plugin page: wooinventory-lite
  • Plugin version: 2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.x-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2017
  • Latest release: Feb 20, 2023
  • Number of updates: 27
  • Update frequency: every 81.0 days
  • Top authors: infosoftplugin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active / 3,048 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.94ms] Passed 4 tests

Server-side resources used by WooInventory Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.44 ▼14.44
Dashboard /wp-admin3.34 ▲0.0452.58 ▲3.72
Posts /wp-admin/edit.php3.40 ▲0.0450.02 ▼3.19
Add New Post /wp-admin/post-new.php5.95 ▲0.0595.66 ▼6.25
Media Library /wp-admin/upload.php3.27 ▲0.0436.95 ▲0.13
Inventory /wp-admin/admin.php?page=ic-woo-manage-inventory3.5135.18
Other Plug-ins /wp-admin/admin.php?page=ic-woo-manage-addons3.2634.22
Dashboard /wp-admin/admin.php?page=inventory-menu3.2735.69

Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WooInventory Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲11713.30 ▼1.071.85 ▲0.0740.00 ▲4.19
Dashboard /wp-admin2,241 ▲534.87 ▼0.01116.29 ▼2.5343.14 ▼2.19
Posts /wp-admin/edit.php2,127 ▲382.04 ▲0.0040.71 ▼0.9235.33 ▼0.66
Add New Post /wp-admin/post-new.php1,547 ▲2817.74 ▼5.71673.94 ▼5.2756.10 ▲6.01
Media Library /wp-admin/upload.php1,429 ▲414.29 ▲0.1597.83 ▼22.9944.52 ▼4.12
Inventory /wp-admin/admin.php?page=ic-woo-manage-inventory8951.9333.5831.07
Other Plug-ins /wp-admin/admin.php?page=ic-woo-manage-addons1,4202.0326.5741.64
Dashboard /wp-admin/admin.php?page=inventory-menu9482.0426.2536.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=inventory-menu
    • > Network (severe)
    wp-content/plugins/wooinventory-lite/images/heading-bg.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (WooInventory Dashbaord.), #2 (WooCommerce Stock Manager (Simple Product,Variable Product,Variation Product).)
The official readme.txt is a good inspiration

wooinventory-lite/ic-woocommerce-inventory-lite.php 77% from 13 tests

The primary PHP file in "WooInventory Lite" version 2.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "3.5.x")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wooinventory-lite.php" instead of "ic-woocommerce-inventory-lite.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,373 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6188811,284
SVG100640
CSS210523367
JavaScript2112182

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity28.40
▷ Minimum class complexity1.00
▷ Maximum class complexity122.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods44
▷ Static methods00.00%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png25.84KB14.38KB▼ 44.35%
include/assets/images/bullet.png0.38KB0.29KB▼ 23.98%
screenshot-1.png28.69KB13.93KB▼ 51.45%
include/assets/images/tickmark.png0.33KB0.35KB0.00%