Changeset 3805673
- Timestamp:
- 11/16/2026 05:08:15 PM (20 hours ago)
- Location:
- oneway-seo-optimizer
- Files:
-
- 6 added
- 8 edited
-
assets/screenshot-11.png (added)
-
assets/screenshot-12.png (added)
-
trunk/assets/css/admin.css (modified) (1 diff)
-
trunk/assets/js/bulk.js (added)
-
trunk/includes/audit.php (added)
-
trunk/includes/breadcrumbs.php (modified) (2 diffs)
-
trunk/includes/bulk.php (added)
-
trunk/includes/head.php (modified) (2 diffs)
-
trunk/includes/settings.php (modified) (2 diffs)
-
trunk/includes/woocommerce.php (added)
-
trunk/languages/oneway-seo-optimizer.pot (modified) (10 diffs)
-
trunk/oneway-seo-optimizer.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (7 diffs)
-
trunk/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
oneway-seo-optimizer/trunk/assets/css/admin.css
r3805611 r3805673 17 17 .oneway-seo-hours td { padding: 2px 12px 2px 0; } 18 18 .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 105 105 */ 106 106 function 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(); 108 112 if ( ! $taxonomies ) { 109 113 foreach ( get_object_taxonomies( $post->post_type, 'objects' ) as $tax ) { … … 118 122 if ( $terms && ! is_wp_error( $terms ) ) { 119 123 $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 ) { 121 125 $term = next( $terms ); 122 126 } -
oneway-seo-optimizer/trunk/includes/head.php
r3805418 r3805673 161 161 $out[] = sprintf( '<meta property="article:published_time" content="%s">', esc_attr( get_post_time( 'c', true, $post ) ) ); 162 162 $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 ) ); 167 166 } 168 167 foreach ( oneway_seo_same_as() as $profile ) { … … 173 172 } 174 173 } 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 ); 175 182 176 183 // 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 289 289 $tabs = array( 290 290 'general' => __( 'General', 'oneway-seo-optimizer' ), 291 'audit' => __( 'Audit', 'oneway-seo-optimizer' ), 292 'bulk' => __( 'Bulk edit', 'oneway-seo-optimizer' ), 291 293 'redirects' => __( 'Redirects', 'oneway-seo-optimizer' ), 292 294 '404' => __( '404 errors', 'oneway-seo-optimizer' ), … … 308 310 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>'; 309 311 } 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 ) { 311 317 oneway_seo_render_redirects_tab(); 312 318 } elseif ( '404' === $tab ) { -
oneway-seo-optimizer/trunk/languages/oneway-seo-optimizer.pot
r3805611 r3805673 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: Oneway SEO Optimizer 1. 3.0\n"3 "Project-Id-Version: Oneway SEO Optimizer 1.4.0\n" 4 4 "Content-Type: text/plain; charset=UTF-8\n" 5 5 "Language: \n" … … 7 7 "X-Domain: oneway-seo-optimizer\n" 8 8 9 #: includes/audit.php 10 msgid "Links to pages that do not exist" 11 msgstr "" 12 13 #: includes/audit.php 14 msgid "Visitors and search engines end up on an error page. Fix the link or add a redirect." 15 msgstr "" 16 17 #: includes/audit.php 18 msgid "Hidden from search engines" 19 msgstr "" 20 21 #: includes/audit.php 22 msgid "These pages have “Hide from search engines” turned on. That is fine for thank-you or private pages; check that nothing important is here." 23 msgstr "" 24 25 #: includes/audit.php 26 msgid "Duplicate SEO titles" 27 msgstr "" 28 29 #: includes/audit.php 30 msgid "Several pages have the same title, so search engines cannot tell them apart." 31 msgstr "" 32 33 #: includes/audit.php 34 msgid "Duplicate meta descriptions" 35 msgstr "" 36 37 #: includes/audit.php 38 msgid "Each page should describe its own content." 39 msgstr "" 40 41 #: includes/audit.php 42 msgid "No meta description" 43 msgstr "" 44 45 #: includes/audit.php 46 msgid "The description is taken from the beginning of the text. A written description usually gets more clicks." 47 msgstr "" 48 49 #: includes/audit.php 50 msgid "Meta description too short or too long" 51 msgstr "" 52 53 #: includes/audit.php 54 msgid "Aim for 120–160 characters." 55 msgstr "" 56 57 #: includes/audit.php 58 msgid "SEO title longer than 60 characters" 59 msgstr "" 60 61 #: includes/audit.php 62 msgid "Google shortens longer titles. The site name counts too." 63 msgstr "" 64 65 #: includes/audit.php 66 msgid "No sharing image" 67 msgstr "" 68 69 #: includes/audit.php 70 msgid "Links shared on social networks and messengers will use the default image or none." 71 msgstr "" 72 73 #: includes/audit.php 74 msgid "Images without alternative text" 75 msgstr "" 76 77 #: includes/audit.php 78 msgid "Alternative text helps image search and visitors who use screen readers." 79 msgstr "" 80 81 #: includes/audit.php 82 msgid "Links to addresses that redirect" 83 msgstr "" 84 85 #: includes/audit.php 86 msgid "They work, but linking straight to the new address is faster and cleaner." 87 msgstr "" 88 89 #: includes/audit.php 90 msgid "Short articles (under 150 words)" 91 msgstr "" 92 93 #: includes/audit.php 94 msgid "Very short articles rarely rank well. Expand them or combine related ones." 95 msgstr "" 96 97 #: includes/audit.php 98 msgid "The audit is up to date." 99 msgstr "" 100 101 #: includes/audit.php 102 msgid "Problems that affect how the site appears in search, checked across all published pages and posts." 103 msgstr "" 104 105 #: includes/audit.php 106 msgid "pages checked" 107 msgstr "" 108 109 #: includes/audit.php 110 msgid "without problems" 111 msgstr "" 112 113 #: includes/audit.php 114 msgid "broken links" 115 msgstr "" 116 117 #: includes/audit.php 118 msgid "Check again" 119 msgstr "" 120 121 #: includes/audit.php 122 msgid "Last checked %s ago." 123 msgstr "" 124 125 #: includes/audit.php 126 msgid "Only the %d most recently changed pages were checked." 127 msgstr "" 128 129 #: includes/audit.php 130 msgid "No problems found. Well done!" 131 msgstr "" 132 133 #: includes/audit.php 134 msgid "Fix them in Bulk edit →" 135 msgstr "" 136 137 #: includes/audit.php 138 msgid "(no title)" 139 msgstr "" 140 141 #: includes/audit.php 142 msgid "%s characters" 143 msgstr "" 144 145 #: includes/audit.php 146 msgid "same on %s pages" 147 msgstr "" 148 149 #: includes/audit.php 150 msgid "%s images" 151 msgstr "" 152 153 #: includes/audit.php 154 msgid "%s words" 155 msgstr "" 156 157 #: includes/audit.php 158 msgid "View" 159 msgstr "" 160 9 161 #: includes/breadcrumbs.php 10 162 msgid "Home" … … 23 175 msgstr "" 24 176 177 #: includes/bulk.php 178 msgid "All" 179 msgstr "" 180 181 #: includes/bulk.php 182 msgid "Without meta description" 183 msgstr "" 184 185 #: includes/bulk.php 186 msgid "Without focus keyword" 187 msgstr "" 188 189 #: includes/bulk.php 190 msgid "Edit SEO titles, meta descriptions and focus keywords of many pages at once. Only the rows you change are saved." 191 msgstr "" 192 193 #: includes/bulk.php 194 msgid "Showing pages from the audit: %s." 195 msgstr "" 196 197 #: includes/bulk.php 198 msgid "Show all" 199 msgstr "" 200 201 #: includes/bulk.php 202 msgid "Content type" 203 msgstr "" 204 205 #: includes/bulk.php 206 msgid "All content types" 207 msgstr "" 208 209 #: includes/bulk.php 210 msgid "Show" 211 msgstr "" 212 213 #: includes/bulk.php 214 msgid "Search titles" 215 msgstr "" 216 217 #: includes/bulk.php 218 msgid "Filter" 219 msgstr "" 220 221 #: includes/bulk.php 222 msgid "Page" 223 msgstr "" 224 225 #: includes/bulk.php 226 msgid "SEO title" 227 msgstr "" 228 229 #: includes/bulk.php 230 msgid "Meta description" 231 msgstr "" 232 233 #: includes/bulk.php 234 msgid "Focus keyword" 235 msgstr "" 236 237 #: includes/bulk.php 238 msgid "Hidden" 239 msgstr "" 240 241 #: includes/bulk.php 242 msgid "Nothing found." 243 msgstr "" 244 245 #: includes/bulk.php 246 msgid "Hide from search engines" 247 msgstr "" 248 249 #: includes/bulk.php 250 msgid "Save changes" 251 msgstr "" 252 25 253 #: includes/columns.php 26 254 msgid "SEO" … … 28 256 29 257 #: includes/columns.php 30 msgid "Hidden from search engines"31 msgstr ""32 33 #: includes/columns.php34 258 msgid "Has a meta description" 35 259 msgstr "" … … 43 267 msgstr "" 44 268 45 #: includes/columns.php46 msgid "SEO title"47 msgstr ""48 49 #: includes/columns.php50 msgid "Meta description"51 msgstr ""52 53 #: includes/columns.php54 msgid "Hide from search engines"55 msgstr ""56 57 269 #: includes/crawlers.php 58 270 msgid "Crawlers that collect content to train AI models" … … 276 488 277 489 #: includes/metabox.php 278 msgid "Focus keyword"279 msgstr ""280 281 #: includes/metabox.php282 490 msgid "The word or phrase people would search for to find this page. Optional – it enables the keyword checks below." 283 491 msgstr "" … … 712 920 713 921 #: includes/settings.php 922 msgid "Audit" 923 msgstr "" 924 925 #: includes/settings.php 926 msgid "Bulk edit" 927 msgstr "" 928 929 #: includes/settings.php 714 930 msgid "Redirects" 715 931 msgstr "" … … 1211 1427 msgstr "" 1212 1428 1213 #: assets/js/ editor.js1429 #: assets/js/bulk.js 1214 1430 msgid "%1$d / %2$d characters" 1215 1431 msgstr "" … … 1278 1494 msgid "Add question" 1279 1495 msgstr "" 1496 1497 #: includes/bulk.php 1498 msgid "%d page saved." 1499 msgid_plural "%d pages saved." 1500 msgstr[0] "" 1501 msgstr[1] "" 1280 1502 1281 1503 #: includes/import.php … … 1321 1543 msgstr[1] "" 1322 1544 1545 #: assets/js/bulk.js 1546 msgid "%d page changed" 1547 msgid_plural "%d pages changed" 1548 msgstr[0] "" 1549 msgstr[1] "" 1550 -
oneway-seo-optimizer/trunk/oneway-seo-optimizer.php
r3805611 r3805673 2 2 /** 3 3 * 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.04 * 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 6 6 * Requires at least: 6.6 7 7 * Requires PHP: 7.4 … … 18 18 defined( 'ABSPATH' ) || exit; 19 19 20 define( 'ONEWAY_SEO_VERSION', '1. 3.0' );20 define( 'ONEWAY_SEO_VERSION', '1.4.0' ); 21 21 define( 'ONEWAY_SEO_FILE', __FILE__ ); 22 22 define( 'ONEWAY_SEO_DIR', plugin_dir_path( __FILE__ ) ); … … 49 49 require ONEWAY_SEO_DIR . 'includes/faq.php'; 50 50 require ONEWAY_SEO_DIR . 'includes/indexnow.php'; 51 require ONEWAY_SEO_DIR . 'includes/audit.php'; 52 require ONEWAY_SEO_DIR . 'includes/bulk.php'; 53 require ONEWAY_SEO_DIR . 'includes/woocommerce.php'; 51 54 52 55 register_activation_hook( __FILE__, 'oneway_seo_install_tables' ); -
oneway-seo-optimizer/trunk/readme.txt
r3805611 r3805673 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 3.07 Stable tag: 1.4.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 55 55 Optional **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. 56 56 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 64 Product 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 57 66 = Redirects and 404 errors = 58 67 … … 82 91 = For developers = 83 92 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`.93 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`, `oneway_seo_product`, `oneway_seo_product_brand`, `oneway_seo_head_tags` and `oneway_seo_has_conflict`. 85 94 86 95 = External services = … … 143 152 If 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. 144 153 154 = Does it work with WooCommerce? = 155 156 Yes. 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 160 It 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 145 162 = Does it create its own sitemap? = 146 163 … … 153 170 = Is my data removed when I delete the plugin? = 154 171 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.172 Yes. 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. 156 173 157 174 == Screenshots == … … 167 184 9. FAQ block in the editor. 168 185 10. Local business details: kind of business, opening hours and map coordinates. 186 11. SEO audit with site-wide problems. 187 12. Bulk editing of SEO titles, descriptions and focus keywords. 169 188 170 189 == 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. 171 196 172 197 = 1.3.0 = … … 199 224 == Upgrade Notice == 200 225 226 = 1.4.0 = 227 Adds a site-wide SEO audit, bulk editing and WooCommerce product structured data. 228 201 229 = 1.3.0 = 202 230 Adds focus keyword and readability analysis, an FAQ block, local business details and optional IndexNow. -
oneway-seo-optimizer/trunk/uninstall.php
r3805611 r3805673 8 8 defined( 'WP_UNINSTALL_PLUGIN' ) || exit; 9 9 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 ) {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', 'oneway_seo_audit' ) as $oneway_seo_option ) { 11 11 delete_option( $oneway_seo_option ); 12 12 }
Note:
See TracChangeset
for help on using the changeset viewer.