Skip to content

773 improve editor upsells#22567

Merged
thijsoo merged 6 commits intotrunkfrom
773-improve-editor-upsells
Sep 19, 2025
Merged

773 improve editor upsells#22567
thijsoo merged 6 commits intotrunkfrom
773-improve-editor-upsells

Conversation

@vraja-pro
Copy link
Copy Markdown
Contributor

@vraja-pro vraja-pro commented Sep 15, 2025

Context

  • Improved editor upsells.

Summary

This PR can be summarized in the following changelog entry:

  • Renews Premium SEO analysis ads design and links on the editor.

Relevant technical choices:

  • Removes 5 upsells in total and replaces them with the new ad.
  • Adds upsell links for elementor editor.
  • Adds Woo SEO upsell links when woocommerce is detected.

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

  • Edit a post and click on the SEO analysis tab
  • Check you see the new design for Premium SEO Analysis like in the following design:
Screenshot 2025-09-15 at 11 05 21 * Check the upsell button has attribute ctb-id : f6a84663-465f-4cb5-8ba5-f7a6d72224b2 Screenshot 2025-09-15 at 11 05 53 * Check the button has a different link for the ad in metabox, sidebar and elementor, with link params: * Metabox: https://yoa.st/premium-seo-analysis-metabox * Block editor sidebar: https://yoa.st/premium-seo-analysis-sidebar * Elementor sidebar: https://yoa.st/premium-seo-analysis-elementor Screenshot 2025-09-15 at 11 04 40

Relevant test scenarios

  • Changes should be tested with the browser console open
  • Changes should be tested on different posts/pages/taxonomies/custom post types/custom taxonomies
  • Changes should be tested on different editors (Default Block/Gutenberg/Classic/Elementor/other)
  • Changes should be tested on different browsers
  • Changes should be tested on multisite

Test instructions for QA when the code is in the RC

  • QA should use the same steps as above.

QA can test this PR by following these steps:

Impact check

This PR affects the following parts of the plugin, which may require extra testing:

Other environments

  • This PR also affects Shopify. I have added a changelog entry starting with [shopify-seo], added test instructions for Shopify and attached the Shopify label to this PR.

Documentation

  • I have written documentation for this change. For example, comments in the Relevant technical choices, comments in the code, documentation on Confluence / shared Google Drive / Yoast developer portal, or other.

Quality assurance

  • I have tested this code to the best of my abilities.
  • During testing, I had activated all plugins that Yoast SEO provides integrations for.
  • I have added unit tests to verify the code works as intended.
  • If any part of the code is behind a feature flag, my test instructions also cover cases where the feature flag is switched off.
  • I have written this PR in accordance with my team's definition of done.
  • I have checked that the base branch is correctly set.

Innovation

  • No innovation project is applicable for this PR.
  • This PR falls under an innovation project. I have attached the innovation label.
  • I have added my hours to the WBSO document.

Fixes Improve editor upsells

1) + Add synonyms
2) + Add related keyphrase
3) ad: Yoast SEO Premium looks at more than just your main keyword...
4) SEO analysis: Keyphrase distribution: Have you evenly distributed your focus keyphrase...
5) Premium SEO analysis tab
@vraja-pro vraja-pro added the changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog label Sep 15, 2025
@coveralls
Copy link
Copy Markdown

coveralls commented Sep 15, 2025

Pull Request Test Coverage Report for Build f43c8175b59d725895b18a68869b616cbf3a4dd3

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 30 (0.0%) changed or added relevant lines in 3 files are covered.
  • 165 unchanged lines in 9 files lost coverage.
  • Overall coverage increased (+0.02%) to 53.236%

Changes Missing Coverage Covered Lines Changed/Added Lines %
admin/class-expose-shortlinks.php 0 4 0.0%
packages/js/src/components/contentAnalysis/WooSeoAnalysisUpsellAd.js 0 11 0.0%
packages/js/src/components/contentAnalysis/PremiumSeoAnalysisUpsellAd.js 0 15 0.0%
Files with Coverage Reduction New Missed Lines %
packages/js/src/settings/helpers/validation.js 2 19.15%
packages/js/src/settings/helpers/search.js 6 15.0%
admin/tracking/class-tracking-settings-data.php 6 0.0%
packages/js/src/introductions/initialize.js 10 0.0%
src/integrations/front-end-integration.php 15 84.06%
inc/options/class-wpseo-option-wpseo.php 21 86.61%
packages/js/src/settings/routes/llms-txt.js 26 0.0%
wp-seo-main.php 35 0.0%
inc/options/class-wpseo-option.php 44 36.65%
Totals Coverage Status
Change from base Build 5a27d028caa37d7ee86021a40e9b33a0cedf1336: 0.02%
Covered Lines: 31734
Relevant Lines: 59852

💛 - Coveralls

Copy link
Copy Markdown
Contributor

@thijsoo thijsoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small suggestion

Comment thread packages/js/src/components/contentAnalysis/PremiumSeoAnalysisUpsellAd.js Outdated
Comment thread packages/js/src/components/contentAnalysis/WooSeoAnalysisUpsellAd.js Outdated
@thijsoo thijsoo added this to the 26.1 milestone Sep 19, 2025
Copy link
Copy Markdown
Contributor

@thijsoo thijsoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR + ACC 👍

@thijsoo thijsoo merged commit 29acdd6 into trunk Sep 19, 2025
38 checks passed
@thijsoo thijsoo deleted the 773-improve-editor-upsells branch September 19, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants