Wp plugin search (WP-CLI): verschil tussen versies

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen
(Nieuwe pagina aangemaakt met 'Zoek in de online plugin-bibliotheek: <pre> $ wp plugin search <search> The string to search for. [--page=<page>] Optional page...')
 
 
(2 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
Zoek in de online plugin-bibliotheek:
+
Keyword search in the online plugin library maintained by WordPress.org. Max. 100 hits will be returned
  
 
<pre>
 
<pre>
Regel 40: Regel 40:
 
</pre>
 
</pre>
  
''' Voorbeeld: WooCommerce VAT-plugin '''
+
== Example: WooCommerce VAT-plugin ==
  
 
<pre>
 
<pre>
$ wp plugin search woocommerce-eu-vat-number --per-page=200
+
$ wp plugin search woocommerce-eu-vat-number --per-page=100
  
 
Success: Showing 48 of 48 plugins.
 
Success: Showing 48 of 48 plugins.
Regel 54: Regel 54:
 
| EU/UK VAT Compliance Assistant for WooCommerce      | woocommerce-eu-vat-compliance                      | 96    |
 
| EU/UK VAT Compliance Assistant for WooCommerce      | woocommerce-eu-vat-compliance                      | 96    |
 
| Germanized for WooCommerce                          | woocommerce-germanized                              | 96    |
 
| Germanized for WooCommerce                          | woocommerce-germanized                              | 96    |
| Booster for WooCommerce                            | woocommerce-jetpack                                | 92    |
+
...
| Shop as Client for WooCommerce                      | shop-as-client                                      | 100    |
+
 
| EU/UK VAT Manager for WooCommerce                  | eu-vat-for-woocommerce                              | 98    |
 
| Flexible PDF Invoices for WooCommerce &amp; WordPre | flexible-invoices                                  | 96    |
 
| ss                                                  |                                                    |        |
 
| Italian VAT Kit for WooCommerce                    | woo-fiscalita-italiana                              | 100    |
 
| WooCommerce PDF Invoices Italian Add-on            | woocommerce-pdf-invoices-italian-add-on            | 96    |
 
| B2BKing — Ultimate WooCommerce Wholesale and B2B So | b2bking-wholesale-for-woocommerce                  | 100    |
 
| lution                                              |                                                    |        |
 
| Invoice for WooCommerce                            | invoice-for-woocommerce                            | 100    |
 
| Invoicing with InvoiceXpress for WooCommerce &#8211 | woo-billing-with-invoicexpress                      | 100    |
 
| ; Free                                              |                                                    |        |
 
| NIF (Num. de Contribuinte Português) for WooCommerc | nif-num-de-contribuinte-portugues-for-woocommerce  | 100    |
 
| e                                                  |                                                    |        |
 
| Kybernaut IČO DIČ                                  | woolab-ic-dic                                      | 100    |
 
| CURCY &#8211; Multi Currency for WooCommerce &#8211 | woo-multi-currency                                  | 86    |
 
| ; The best free currency exchange plugin &#8211; Ru |                                                    |        |
 
| n smoothly on WooCommerce 6.x                      |                                                    |        |
 
| Membership &amp; Content Restriction &#8211; Paid M | paid-member-subscriptions                          | 94    |
 
| ember Subscriptions                                |                                                    |        |
 
| WooCommerce Fortnox Integration                    | woocommerce-fortnox-integration                    | 100    |
 
| WooCommerce Quaderno                                | woocommerce-quaderno                                | 94    |
 
| Silvasoft boekhouden                                | silvasoft-boekhouden                                | 100    |
 
| WooCommerce SuperFaktura                            | woocommerce-superfaktura                            | 98    |
 
| Invoices for WooCommerce                            | woocommerce-pdf-invoices                            | 96    |
 
| Flat Rate per State/Country/Region for WooCommerce  | flat-rate-per-countryregion-for-woocommerce        | 86    |
 
| WooCommerce Fortnox Hub                            | woo-fortnox-hub                                    | 100    |
 
| Integration for Szamlazz.hu &amp; WooCommerce      | integration-for-szamlazzhu-woocommerce              | 98    |
 
| FG PrestaShop to WooCommerce                        | fg-prestashop-to-woocommerce                        | 96    |
 
| Ecwid Ecommerce Shopping Cart                      | ecwid-shopping-cart                                | 90    |
 
| Portugal States (Distritos) for WooCommerce        | portugal-states-distritos-for-woocommerce          | 100    |
 
| WooCommerce Visma Integration                      | woo-visma-integration                              | 0      |
 
| WP-Lister Lite for Amazon                          | wp-lister-for-amazon                                | 76    |
 
| Qinvoice Connect for Woocommerce                    | qinvoice-connect-for-woocommerce                    | 100    |
 
| Client Invoicing by Sprout Invoices &#8211; Easy Es | sprout-invoices                                    | 92    |
 
| timates and Invoices for WordPress                  |                                                    |        |
 
| EasyTransac pour WooCommerce                        | easytransac                                        | 0      |
 
| EenvoudigFactureren for WooCommerce                | eenvoudigfactureren-for-woocommerce                | 0      |
 
| VAT Assist for WooCommerce                          | vat-assist-for-woocommerce                          | 0      |
 
| WooCommerce Exporter for Danea                      | wc-exporter-for-danea                              | 100    |
 
| VAT MOSS Returns                                    | vat-moss                                            | 0      |
 
| WooRechnung                                        | woorechnung                                        | 94    |
 
| ParcelBroker for Woocommerce                        | parcelbroker-for-woocommerce                        | 100    |
 
| Smart Tools for WooCommerce                        | smart-tools-for-woocommerce                        | 0      |
 
| UPS International Shipping for WooCommerce          | simply-international-by-ups                        | 0      |
 
| WooCommerce + Masterway                            | woo-masterway                                      | 0      |
 
| Woo Billingo Plus                                  | woo-billingo-plus                                  | 100    |
 
| VIES Validator                                      | vies-validator                                      | 0      |
 
| VAT EC Sales List                                  | vat-ecsl                                            | 0      |
 
| Learning Objects LMS                                | learning-objects-lms                                | 0      |
 
 
| easyReservations                                    | easyreservations                                    | 76    |
 
| easyReservations                                    | easyreservations                                    | 76    |
 
| CentroBill Payment Gateway for WooCommerce          | centrobill-payment-gateway                          | 0      |
 
| CentroBill Payment Gateway for WooCommerce          | centrobill-payment-gateway                          | 0      |
Regel 109: Regel 61:
 
</pre>
 
</pre>
  
Compacter (opmaak aangepast in Sublime):
+
== Multiple search terms ==
 +
 
 +
It seems that multiple search terms are treated as OR, rather than AND:
  
 
<pre>
 
<pre>
$ wp plugin search woocommerce-eu-vat-number --per-page=200 --fields=slug,name | grep woocommerce
+
$ wp plugin search "google fonts"
  
b2bking-wholesale-for-woocommerce    B2BKing — Ultimate WooCommerce Wholesale and B2B Solution
+
Success: Showing 10 of 1010 plugins.
eenvoudigfactureren-for-woocommerce    EenvoudigFactureren for WooCommerce
+
+-----------------------------------------------------------------------------------------+-----------------------------+--------+
eu-vat-for-woocommerce          EU/UK VAT Manager for WooCommerce
+
| name                                                                                    | slug                        | rating |
fg-prestashop-to-woocommerce        FG PrestaShop to WooCommerce
+
+-----------------------------------------------------------------------------------------+-----------------------------+--------+
flat-rate-per-countryregion-for-woocommerce  Flat Rate per State/Country/Region for WooCommerce
+
| Disable and Remove Google Fonts                                                        | disable-remove-google-fonts | 96    |
integration-for-szamlazzhu-woocommerce      Integration for Szamlazz.hu &amp; WooCommerce
+
| Fonts Plugin | Google Fonts Typography                                                  | olympus-google-fonts        | 100    |
invoice-for-woocommerce        Invoice for WooCommerce
+
| Local Google Fonts                                                                      | local-google-fonts         | 100    |
nif-num-de-contribuinte-portugues-for-woocommerce NIF (Num. de Contribuinte Português) for WooCommerce
+
| OMGF | GDPR/DSVGO Compliant, Faster Google Fonts. Easy.                                | host-webfonts-local         | 94    |
parcelbroker-for-woocommerce        ParcelBroker for Woocommerce
+
| Site Kit by Google &#8211; Analytics, Search Console, AdSense, Speed                    | google-site-kit            | 82    | ← Why is this included?
portugal-states-distritos-for-woocommerce  Portugal States (Distritos) for WooCommerce
+
| WP Google Fonts                                                                        | wp-google-fonts            | 80    |
print-invoices-packing-slip-labels-for-woocommerce  WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels
+
| Toolkit for Block Theme (Gutenberg Blocks, Templates, Patterns, Google Fonts) – Twentig | twentig                    | 98    |
qinvoice-connect-for-woocommerce      Qinvoice Connect for Woocommerce
+
| Easy Google Fonts                                                                      | easy-google-fonts          | 92    |
smart-tools-for-woocommerce      Smart Tools for WooCommerce
+
| Swap Google Fonts Display                                                              | swap-google-font-display    | 88     |
vat-assist-for-woocommerce        VAT Assist for WooCommerce
+
| Embed Google Fonts                                                                      | embed-google-fonts         | 100    |
woocommerce-eu-vat-assistant        WooCommerce EU VAT Assistant
+
+-----------------------------------------------------------------------------------------+-----------------------------+--------+
woocommerce-eu-vat-compliance      EU/UK VAT Compliance Assistant for WooCommerce
 
woocommerce-fortnox-integration      WooCommerce Fortnox Integration
 
woocommerce-germanized         Germanized for WooCommerce
 
woocommerce-jetpack         Booster for WooCommerce
 
woocommerce-pdf-invoices        Invoices for WooCommerce
 
woocommerce-pdf-invoices-italian-add-on     WooCommerce PDF Invoices Italian Add-on
 
woocommerce-quaderno         WooCommerce Quaderno
 
woocommerce-superfaktura        WooCommerce SuperFaktura
 
 
</pre>
 
</pre>
 +
 +
This seems even clearer with more results - Like <code>wp plugin search "google fonts" --per-page=100</code> in this example.
 +
 +
== Same results as wordpress.org ==
 +
 +
It seems that the database behind this plugin, is the same as behind WordPress.org. Example:
 +
 +
{|
 +
|[[file:20221020-1709.png|thumb|Search results on Wordpress.org » Plugins » ''google fonts'' - Same results as through <code>wp plugin search</code>]]
 +
|}
 +
 +
== Not the result you wanted? ==
 +
 +
Some reasons why the results might not be what I hoped for:
 +
 +
* Payed-for plugins are excluded
 +
* Abandoned plugins, or plugins with compatibility issues, or otherwise non-approved plugins, are excluded. This is usually a sign to me, that I'm looking for the wrong solution.
  
 
== Sources ==
 
== Sources ==

Huidige versie van 20 okt 2022 om 17:18

Keyword search in the online plugin library maintained by WordPress.org. Max. 100 hits will be returned

$ wp plugin search

   <search>                  The string to search for.

   [--page=<page>]           Optional page to display.
                             default: 1

   [--per-page=<per-page>]   Optional number of results to display.
                             default: 10
   [--field=<field>]         Prints the value of a single field for each plugin.
   [--fields=<fields>]       Ask for specific fields from the API. Defaults to name,slug,author_profile,rating. Acceptable values:

    name: Plugin Name
    slug: Plugin Slug
    version: Current Version Number
    author: Plugin Author
    author_profile: Plugin Author Profile
    contributors: Plugin Contributors
    requires: Plugin Minimum Requirements
    tested: Plugin Tested Up To
    compatibility: Plugin Compatible With
    rating: Plugin Rating
    num_ratings: Number of Plugin Ratings
    homepage: Plugin Author’s Homepage
    description: Plugin’s Description
    short_description: Plugin’s Short Description 

[--format=<format>]          Render output in a particular format.

    default: table
    options:
    – table
    – csv
    – count
    – json
    – yaml

Example: WooCommerce VAT-plugin

$ wp plugin search woocommerce-eu-vat-number --per-page=100

Success: Showing 48 of 48 plugins.
+-----------------------------------------------------+-----------------------------------------------------+--------+
| name                                                | slug                                                | rating |
+-----------------------------------------------------+-----------------------------------------------------+--------+
| WooCommerce PDF Invoices, Packing Slips, Delivery N | print-invoices-packing-slip-labels-for-woocommerce  | 96     |
| otes and Shipping Labels                            |                                                     |        |
| WooCommerce EU VAT Assistant                        | woocommerce-eu-vat-assistant                        | 100    |
| EU/UK VAT Compliance Assistant for WooCommerce      | woocommerce-eu-vat-compliance                       | 96     |
| Germanized for WooCommerce                          | woocommerce-germanized                              | 96     |
...

| easyReservations                                    | easyreservations                                    | 76     |
| CentroBill Payment Gateway for WooCommerce          | centrobill-payment-gateway                          | 0      |
+-----------------------------------------------------+-----------------------------------------------------+--------+

Multiple search terms

It seems that multiple search terms are treated as OR, rather than AND:

$ wp plugin search "google fonts"

Success: Showing 10 of 1010 plugins.
+-----------------------------------------------------------------------------------------+-----------------------------+--------+
| name                                                                                    | slug                        | rating |
+-----------------------------------------------------------------------------------------+-----------------------------+--------+
| Disable and Remove Google Fonts                                                         | disable-remove-google-fonts | 96     |
| Fonts Plugin | Google Fonts Typography                                                  | olympus-google-fonts        | 100    |
| Local Google Fonts                                                                      | local-google-fonts          | 100    |
| OMGF | GDPR/DSVGO Compliant, Faster Google Fonts. Easy.                                 | host-webfonts-local         | 94     |
| Site Kit by Google – Analytics, Search Console, AdSense, Speed                    | google-site-kit             | 82     | ← Why is this included?
| WP Google Fonts                                                                         | wp-google-fonts             | 80     |
| Toolkit for Block Theme (Gutenberg Blocks, Templates, Patterns, Google Fonts) – Twentig | twentig                     | 98     |
| Easy Google Fonts                                                                       | easy-google-fonts           | 92     |
| Swap Google Fonts Display                                                               | swap-google-font-display    | 88     |
| Embed Google Fonts                                                                      | embed-google-fonts          | 100    |
+-----------------------------------------------------------------------------------------+-----------------------------+--------+

This seems even clearer with more results - Like wp plugin search "google fonts" --per-page=100 in this example.

Same results as wordpress.org

It seems that the database behind this plugin, is the same as behind WordPress.org. Example:

Search results on Wordpress.org » Plugins » google fonts - Same results as through wp plugin search

Not the result you wanted?

Some reasons why the results might not be what I hoped for:

  • Payed-for plugins are excluded
  • Abandoned plugins, or plugins with compatibility issues, or otherwise non-approved plugins, are excluded. This is usually a sign to me, that I'm looking for the wrong solution.

Sources