Plugin Directory

Changeset 3805673


Ignore:
Timestamp:
11/16/2026 05:08:15 PM (20 hours ago)
Author:
onewaystudio
Message:

Release 1.4.0

Location:
oneway-seo-optimizer
Files:
6 added
8 edited

Legend:

Unmodified
Added
Removed
  • oneway-seo-optimizer/trunk/assets/css/admin.css

    r3805611 r3805673  
    1717.oneway-seo-hours td { padding: 2px 12px 2px 0; }
    1818.oneway-seo-hours input[type="time"] { width: 10em; }
     19.oneway-seo-stats { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
     20.oneway-seo-stats > div { background: #fff; border: 1px solid #dcdcde; border-radius: 6px; padding: 12px 18px; min-width: 140px; }
     21.oneway-seo-stats strong { display: block; font-size: 26px; line-height: 1.2; }
     22.oneway-seo-stats span { color: #646970; }
     23.oneway-seo-stats .is-bad strong { color: #d63638; }
     24.oneway-seo-audit-run { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
     25.oneway-seo-audit__issue { background: #fff; border: 1px solid #dcdcde; border-radius: 6px; margin-bottom: 8px; }
     26.oneway-seo-audit__issue > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; font-weight: 600; list-style: none; }
     27.oneway-seo-audit__issue > summary::-webkit-details-marker { display: none; }
     28.oneway-seo-audit__issue > summary::after { content: "▾"; margin-left: 8px; color: #8c8f94; }
     29.oneway-seo-audit__label { flex: 1; }
     30.oneway-seo-audit__count { background: #f0f0f1; border-radius: 10px; padding: 0 9px; font-weight: 600; }
     31.oneway-seo-audit__issue.is-bad .oneway-seo-audit__count { background: #fcf0f1; color: #8a2424; }
     32.oneway-seo-audit__issue > p, .oneway-seo-audit__issue > table { margin: 0 16px 14px; width: calc(100% - 32px); }
     33.oneway-seo-audit__view { width: 60px; text-align: right; }
     34.oneway-seo-audit code { word-break: break-all; }
     35.oneway-seo-score { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
     36.oneway-seo-score.is-good { background: #00a32a; } .oneway-seo-score.is-ok { background: #dba617; } .oneway-seo-score.is-bad { background: #d63638; }
     37.oneway-seo-bulk-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
     38.oneway-seo-bulk { table-layout: fixed; }
     39.oneway-seo-bulk .oneway-seo-bulk__page { width: 22%; }
     40.oneway-seo-bulk .oneway-seo-bulk__kw { width: 14%; }
     41.oneway-seo-bulk .oneway-seo-bulk__ni { width: 60px; text-align: center; }
     42.oneway-seo-bulk input[type="text"], .oneway-seo-bulk textarea { width: 100%; }
     43.oneway-seo-bulk__meta { color: #646970; font-size: 12px; margin-top: 2px; }
     44.oneway-seo-bulk__len { display: block; font-size: 11px; margin-top: 2px; }
     45.oneway-seo-bulk__len.is-good { color: #008a20; } .oneway-seo-bulk__len.is-ok { color: #996800; } .oneway-seo-bulk__len.is-auto { opacity: .6; }
     46.oneway-seo-bulk__row.is-changed td { background: #fff8e5; }
     47.oneway-seo-bulk__bar { position: sticky; bottom: 0; background: #f0f0f1; padding: 12px 0; display: flex; gap: 12px; align-items: center; border-top: 1px solid #dcdcde; }
     48.oneway-seo-bulk__bar .tablenav-pages { margin-left: auto; }
  • oneway-seo-optimizer/trunk/includes/breadcrumbs.php

    r3805316 r3805673  
    105105 */
    106106function oneway_seo_primary_term( $post ) {
    107         $taxonomies = 'post' === $post->post_type ? array( 'category' ) : array();
     107        $preferred  = array(
     108                'post'    => 'category',
     109                'product' => 'product_cat',
     110        );
     111        $taxonomies = isset( $preferred[ $post->post_type ] ) && taxonomy_exists( $preferred[ $post->post_type ] ) ? array( $preferred[ $post->post_type ] ) : array();
    108112        if ( ! $taxonomies ) {
    109113                foreach ( get_object_taxonomies( $post->post_type, 'objects' ) as $tax ) {
    … …  
    118122                if ( $terms && ! is_wp_error( $terms ) ) {
    119123                        $term = reset( $terms );
    120                         if ( 'category' === $taxonomy && 'uncategorized' === $term->slug && count( $terms ) > 1 ) {
     124                        if ( in_array( $term->slug, array( 'uncategorized', 'uncategorised' ), true ) && count( $terms ) > 1 ) {
    121125                                $term = next( $terms );
    122126                        }
  • oneway-seo-optimizer/trunk/includes/head.php

    r3805418 r3805673  
    161161                        $out[] = sprintf( '<meta property="article:published_time" content="%s">', esc_attr( get_post_time( 'c', true, $post ) ) );
    162162                        $out[] = sprintf( '<meta property="article:modified_time" content="%s">', esc_attr( get_post_modified_time( 'c', true, $post ) ) );
    163                         $tax   = 'prica' === $post->post_type ? 'vrsta_price' : 'category';
    164                         $terms = get_the_terms( $post, $tax );
    165                         if ( $terms && ! is_wp_error( $terms ) ) {
    166                                 $out[] = sprintf( '<meta property="article:section" content="%s">', esc_attr( $terms[0]->name ) );
     163                        $term  = oneway_seo_primary_term( $post );
     164                        if ( $term ) {
     165                                $out[] = sprintf( '<meta property="article:section" content="%s">', esc_attr( $term->name ) );
    167166                        }
    168167                        foreach ( oneway_seo_same_as() as $profile ) {
    … …  
    173172                        }
    174173                }
     174
     175                /**
     176                 * Filters the tags printed in <head> (before the X/Twitter tags).
     177                 *
     178                 * @param string[] $out Tags.
     179                 * @param array    $ctx Page context.
     180                 */
     181                $out = (array) apply_filters( 'oneway_seo_head_tags', $out, $ctx );
    175182
    176183                // X/Twitter reads Open Graph tags; it only needs the card type (and optionally the site handle).
  • oneway-seo-optimizer/trunk/includes/settings.php

    r3805611 r3805673  
    289289        $tabs = array(
    290290                'general'   => __( 'General', 'oneway-seo-optimizer' ),
     291                'audit'     => __( 'Audit', 'oneway-seo-optimizer' ),
     292                'bulk'      => __( 'Bulk edit', 'oneway-seo-optimizer' ),
    291293                'redirects' => __( 'Redirects', 'oneway-seo-optimizer' ),
    292294                '404'       => __( '404 errors', 'oneway-seo-optimizer' ),
    … …  
    308310                        echo '<div class="notice notice-warning"><p>' . esc_html__( 'Another SEO plugin is active. Oneway SEO Optimizer does not output anything on the front end until it is deactivated, so tags are never duplicated.', 'oneway-seo-optimizer' ) . '</p></div>';
    309311                }
    310                 if ( 'redirects' === $tab ) {
     312                if ( 'audit' === $tab ) {
     313                        oneway_seo_render_audit_tab();
     314                } elseif ( 'bulk' === $tab ) {
     315                        oneway_seo_render_bulk_tab();
     316                } elseif ( 'redirects' === $tab ) {
    311317                        oneway_seo_render_redirects_tab();
    312318                } elseif ( '404' === $tab ) {
  • oneway-seo-optimizer/trunk/languages/oneway-seo-optimizer.pot

    r3805611 r3805673  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: Oneway SEO Optimizer 1.3.0\n"
     3"Project-Id-Version: Oneway SEO Optimizer 1.4.0\n"
    44"Content-Type: text/plain; charset=UTF-8\n"
    55"Language: \n"
    … …  
    77"X-Domain: oneway-seo-optimizer\n"
    88
     9#: includes/audit.php
     10msgid "Links to pages that do not exist"
     11msgstr ""
     12
     13#: includes/audit.php
     14msgid "Visitors and search engines end up on an error page. Fix the link or add a redirect."
     15msgstr ""
     16
     17#: includes/audit.php
     18msgid "Hidden from search engines"
     19msgstr ""
     20
     21#: includes/audit.php
     22msgid "These pages have “Hide from search engines” turned on. That is fine for thank-you or private pages; check that nothing important is here."
     23msgstr ""
     24
     25#: includes/audit.php
     26msgid "Duplicate SEO titles"
     27msgstr ""
     28
     29#: includes/audit.php
     30msgid "Several pages have the same title, so search engines cannot tell them apart."
     31msgstr ""
     32
     33#: includes/audit.php
     34msgid "Duplicate meta descriptions"
     35msgstr ""
     36
     37#: includes/audit.php
     38msgid "Each page should describe its own content."
     39msgstr ""
     40
     41#: includes/audit.php
     42msgid "No meta description"
     43msgstr ""
     44
     45#: includes/audit.php
     46msgid "The description is taken from the beginning of the text. A written description usually gets more clicks."
     47msgstr ""
     48
     49#: includes/audit.php
     50msgid "Meta description too short or too long"
     51msgstr ""
     52
     53#: includes/audit.php
     54msgid "Aim for 120–160 characters."
     55msgstr ""
     56
     57#: includes/audit.php
     58msgid "SEO title longer than 60 characters"
     59msgstr ""
     60
     61#: includes/audit.php
     62msgid "Google shortens longer titles. The site name counts too."
     63msgstr ""
     64
     65#: includes/audit.php
     66msgid "No sharing image"
     67msgstr ""
     68
     69#: includes/audit.php
     70msgid "Links shared on social networks and messengers will use the default image or none."
     71msgstr ""
     72
     73#: includes/audit.php
     74msgid "Images without alternative text"
     75msgstr ""
     76
     77#: includes/audit.php
     78msgid "Alternative text helps image search and visitors who use screen readers."
     79msgstr ""
     80
     81#: includes/audit.php
     82msgid "Links to addresses that redirect"
     83msgstr ""
     84
     85#: includes/audit.php
     86msgid "They work, but linking straight to the new address is faster and cleaner."
     87msgstr ""
     88
     89#: includes/audit.php
     90msgid "Short articles (under 150 words)"
     91msgstr ""
     92
     93#: includes/audit.php
     94msgid "Very short articles rarely rank well. Expand them or combine related ones."
     95msgstr ""
     96
     97#: includes/audit.php
     98msgid "The audit is up to date."
     99msgstr ""
     100
     101#: includes/audit.php
     102msgid "Problems that affect how the site appears in search, checked across all published pages and posts."
     103msgstr ""
     104
     105#: includes/audit.php
     106msgid "pages checked"
     107msgstr ""
     108
     109#: includes/audit.php
     110msgid "without problems"
     111msgstr ""
     112
     113#: includes/audit.php
     114msgid "broken links"
     115msgstr ""
     116
     117#: includes/audit.php
     118msgid "Check again"
     119msgstr ""
     120
     121#: includes/audit.php
     122msgid "Last checked %s ago."
     123msgstr ""
     124
     125#: includes/audit.php
     126msgid "Only the %d most recently changed pages were checked."
     127msgstr ""
     128
     129#: includes/audit.php
     130msgid "No problems found. Well done!"
     131msgstr ""
     132
     133#: includes/audit.php
     134msgid "Fix them in Bulk edit →"
     135msgstr ""
     136
     137#: includes/audit.php
     138msgid "(no title)"
     139msgstr ""
     140
     141#: includes/audit.php
     142msgid "%s characters"
     143msgstr ""
     144
     145#: includes/audit.php
     146msgid "same on %s pages"
     147msgstr ""
     148
     149#: includes/audit.php
     150msgid "%s images"
     151msgstr ""
     152
     153#: includes/audit.php
     154msgid "%s words"
     155msgstr ""
     156
     157#: includes/audit.php
     158msgid "View"
     159msgstr ""
     160
    9161#: includes/breadcrumbs.php
    10162msgid "Home"
    … …  
    23175msgstr ""
    24176
     177#: includes/bulk.php
     178msgid "All"
     179msgstr ""
     180
     181#: includes/bulk.php
     182msgid "Without meta description"
     183msgstr ""
     184
     185#: includes/bulk.php
     186msgid "Without focus keyword"
     187msgstr ""
     188
     189#: includes/bulk.php
     190msgid "Edit SEO titles, meta descriptions and focus keywords of many pages at once. Only the rows you change are saved."
     191msgstr ""
     192
     193#: includes/bulk.php
     194msgid "Showing pages from the audit: %s."
     195msgstr ""
     196
     197#: includes/bulk.php
     198msgid "Show all"
     199msgstr ""
     200
     201#: includes/bulk.php
     202msgid "Content type"
     203msgstr ""
     204
     205#: includes/bulk.php
     206msgid "All content types"
     207msgstr ""
     208
     209#: includes/bulk.php
     210msgid "Show"
     211msgstr ""
     212
     213#: includes/bulk.php
     214msgid "Search titles"
     215msgstr ""
     216
     217#: includes/bulk.php
     218msgid "Filter"
     219msgstr ""
     220
     221#: includes/bulk.php
     222msgid "Page"
     223msgstr ""
     224
     225#: includes/bulk.php
     226msgid "SEO title"
     227msgstr ""
     228
     229#: includes/bulk.php
     230msgid "Meta description"
     231msgstr ""
     232
     233#: includes/bulk.php
     234msgid "Focus keyword"
     235msgstr ""
     236
     237#: includes/bulk.php
     238msgid "Hidden"
     239msgstr ""
     240
     241#: includes/bulk.php
     242msgid "Nothing found."
     243msgstr ""
     244
     245#: includes/bulk.php
     246msgid "Hide from search engines"
     247msgstr ""
     248
     249#: includes/bulk.php
     250msgid "Save changes"
     251msgstr ""
     252
    25253#: includes/columns.php
    26254msgid "SEO"
    … …  
    28256
    29257#: includes/columns.php
    30 msgid "Hidden from search engines"
    31 msgstr ""
    32 
    33 #: includes/columns.php
    34258msgid "Has a meta description"
    35259msgstr ""
    … …  
    43267msgstr ""
    44268
    45 #: includes/columns.php
    46 msgid "SEO title"
    47 msgstr ""
    48 
    49 #: includes/columns.php
    50 msgid "Meta description"
    51 msgstr ""
    52 
    53 #: includes/columns.php
    54 msgid "Hide from search engines"
    55 msgstr ""
    56 
    57269#: includes/crawlers.php
    58270msgid "Crawlers that collect content to train AI models"
    … …  
    276488
    277489#: includes/metabox.php
    278 msgid "Focus keyword"
    279 msgstr ""
    280 
    281 #: includes/metabox.php
    282490msgid "The word or phrase people would search for to find this page. Optional – it enables the keyword checks below."
    283491msgstr ""
    … …  
    712920
    713921#: includes/settings.php
     922msgid "Audit"
     923msgstr ""
     924
     925#: includes/settings.php
     926msgid "Bulk edit"
     927msgstr ""
     928
     929#: includes/settings.php
    714930msgid "Redirects"
    715931msgstr ""
    … …  
    12111427msgstr ""
    12121428
    1213 #: assets/js/editor.js
     1429#: assets/js/bulk.js
    12141430msgid "%1$d / %2$d characters"
    12151431msgstr ""
    … …  
    12781494msgid "Add question"
    12791495msgstr ""
     1496
     1497#: includes/bulk.php
     1498msgid "%d page saved."
     1499msgid_plural "%d pages saved."
     1500msgstr[0] ""
     1501msgstr[1] ""
    12801502
    12811503#: includes/import.php
    … …  
    13211543msgstr[1] ""
    13221544
     1545#: assets/js/bulk.js
     1546msgid "%d page changed"
     1547msgid_plural "%d pages changed"
     1548msgstr[0] ""
     1549msgstr[1] ""
     1550
  • oneway-seo-optimizer/trunk/oneway-seo-optimizer.php

    r3805611 r3805673  
    22/**
    33 * Plugin Name:       Oneway SEO Optimizer
    4  * Description:       Lightweight, ad-free SEO: titles and meta descriptions with a live Google preview, focus keyword and readability analysis, schema.org structured data, robots and canonical rules, Open Graph, sitemap improvements, redirects with a 404 log, robots.txt and AI crawler control, llms.txt, IndexNow, an FAQ block, local business details, search engine verification and import from Yoast SEO, Rank Math and All in One SEO. Works with Polylang.
    5  * Version:           1.3.0
     4 * Description:       Lightweight, ad-free SEO: titles and meta descriptions with a live Google preview, focus keyword and readability analysis, schema.org structured data, robots and canonical rules, Open Graph, sitemap improvements, redirects with a 404 log, robots.txt and AI crawler control, llms.txt, IndexNow, an FAQ block, local business details, a site-wide SEO audit, bulk editing, WooCommerce product data, search engine verification and import from Yoast SEO, Rank Math and All in One SEO. Works with Polylang.
     5 * Version:           1.4.0
    66 * Requires at least: 6.6
    77 * Requires PHP:      7.4
    … …  
    1818defined( 'ABSPATH' ) || exit;
    1919
    20 define( 'ONEWAY_SEO_VERSION', '1.3.0' );
     20define( 'ONEWAY_SEO_VERSION', '1.4.0' );
    2121define( 'ONEWAY_SEO_FILE', __FILE__ );
    2222define( 'ONEWAY_SEO_DIR', plugin_dir_path( __FILE__ ) );
    … …  
    4949require ONEWAY_SEO_DIR . 'includes/faq.php';
    5050require ONEWAY_SEO_DIR . 'includes/indexnow.php';
     51require ONEWAY_SEO_DIR . 'includes/audit.php';
     52require ONEWAY_SEO_DIR . 'includes/bulk.php';
     53require ONEWAY_SEO_DIR . 'includes/woocommerce.php';
    5154
    5255register_activation_hook( __FILE__, 'oneway_seo_install_tables' );
  • oneway-seo-optimizer/trunk/readme.txt

    r3805611 r3805673  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.3.0
     7Stable tag: 1.4.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    5555Optional **IndexNow** support: when a page is published, updated or moved to the trash, its address is sent to Bing, Yandex, Seznam, Naver and other participating search engines, so changes are picked up within minutes. Submissions run in the background and are listed in the settings. Off by default.
    5656
     57= SEO audit and bulk editing =
     58
     59* **Audit**: one page that lists site-wide problems – links to pages that do not exist, duplicate titles and descriptions, missing or overly long descriptions, long titles, pages hidden from search engines, missing sharing images, images without alternative text, links that go through a redirect and very short articles.
     60* **Bulk edit**: change SEO titles, meta descriptions, focus keywords and the noindex setting of many pages in one table, with character counters. Filter by content type, missing description or missing keyword, or open the pages straight from an audit result.
     61
     62= WooCommerce =
     63
     64Product pages get complete **Product structured data** in the same connected graph: price and sale price, variable product price ranges, availability, SKU, GTIN, brand (WooCommerce Brands or a Brand attribute), category, ratings and reviews. It builds on WooCommerce's own product data, so prices always match the shop, and WooCommerce's separate markup is replaced, so nothing is duplicated. Product pages are also shared with price and availability tags.
     65
    5766= Redirects and 404 errors =
    5867
    … …  
    8291= For developers =
    8392
    84 Filters for everything that a theme may want to provide: `oneway_seo_organization_data`, `oneway_seo_same_as`, `oneway_seo_default_image`, `oneway_seo_article_types`, `oneway_seo_article_author`, `oneway_seo_webpage_type`, `oneway_seo_breadcrumbs`, `oneway_seo_primary_taxonomies`, `oneway_seo_post_types`, `oneway_seo_context`, `oneway_seo_organization`, `oneway_seo_graph`, `oneway_seo_log_404`, `oneway_seo_llms_txt`, `oneway_seo_indexnow_active` and `oneway_seo_has_conflict`.
     93Filters for everything that a theme may want to provide: `oneway_seo_organization_data`, `oneway_seo_same_as`, `oneway_seo_default_image`, `oneway_seo_article_types`, `oneway_seo_article_author`, `oneway_seo_webpage_type`, `oneway_seo_breadcrumbs`, `oneway_seo_primary_taxonomies`, `oneway_seo_post_types`, `oneway_seo_context`, `oneway_seo_organization`, `oneway_seo_graph`, `oneway_seo_log_404`, `oneway_seo_llms_txt`, `oneway_seo_indexnow_active`, `oneway_seo_product`, `oneway_seo_product_brand`, `oneway_seo_head_tags` and `oneway_seo_has_conflict`.
    8594
    8695= External services =
    … …  
    143152If you want Bing, Yandex and other participating search engines to see changes quickly, yes. It only sends the addresses of public pages. Google does not use IndexNow and keeps reading your sitemap.
    144153
     154= Does it work with WooCommerce? =
     155
     156Yes. Product pages get Product structured data with prices, availability, GTIN, brand and reviews, connected to your organization and breadcrumbs, and WooCommerce's own duplicate markup is turned off.
     157
     158= How does the audit find broken links? =
     159
     160It checks links inside your content that point to your own site: addresses that were logged as 404 errors, links to drafts or trashed pages, and addresses that match no published page, category or archive. Links to files and to addresses below a known page (such as shop account pages) are not reported.
     161
    145162= Does it create its own sitemap? =
    146163
    … …  
    153170= Is my data removed when I delete the plugin? =
    154171
    155 Yes. Deleting the plugin from the Plugins screen removes its settings, all SEO fields from posts and terms, the redirects and the 404 log.
     172Yes. Deleting the plugin from the Plugins screen removes its settings, all SEO fields from posts and terms, the redirects, the 404 log and the audit results.
    156173
    157174== Screenshots ==
    … …  
    1671849. FAQ block in the editor.
    16818510. Local business details: kind of business, opening hours and map coordinates.
     18611. SEO audit with site-wide problems.
     18712. Bulk editing of SEO titles, descriptions and focus keywords.
    169188
    170189== Changelog ==
     190
     191= 1.4.0 =
     192* New: SEO audit – broken internal links, duplicate titles and descriptions, missing descriptions, long titles, noindex pages, missing images and alt text, links through redirects and short articles.
     193* New: bulk editing of SEO titles, meta descriptions, focus keywords and noindex.
     194* New: WooCommerce Product structured data (prices, variations, availability, GTIN, brand, reviews) in the plugin's graph, replacing WooCommerce's separate markup, and product Open Graph tags.
     195* Fixed: the article section tag now uses the post's main category for every post type.
    171196
    172197= 1.3.0 =
    … …  
    199224== Upgrade Notice ==
    200225
     226= 1.4.0 =
     227Adds a site-wide SEO audit, bulk editing and WooCommerce product structured data.
     228
    201229= 1.3.0 =
    202230Adds focus keyword and readability analysis, an FAQ block, local business details and optional IndexNow.
  • oneway-seo-optimizer/trunk/uninstall.php

    r3805611 r3805673  
    88defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
    99
    10 foreach ( array( 'oneway_seo', 'oneway_seo_redirects', 'oneway_seo_crawlers', 'oneway_seo_db_version', 'oneway_seo_redirect_count', 'oneway_seo_redirect_regex', 'oneway_seo_indexnow_key', 'oneway_seo_indexnow_log' ) as $oneway_seo_option ) {
     10foreach ( array( 'oneway_seo', 'oneway_seo_redirects', 'oneway_seo_crawlers', 'oneway_seo_db_version', 'oneway_seo_redirect_count', 'oneway_seo_redirect_regex', 'oneway_seo_indexnow_key', 'oneway_seo_indexnow_log', 'oneway_seo_audit' ) as $oneway_seo_option ) {
    1111        delete_option( $oneway_seo_option );
    1212}
Note: See TracChangeset for help on using the changeset viewer.