axyseo 2.0.0-alpha.0.0.57 → 2.0.0-alpha.0.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/const/analysis.js +28 -2
- package/build/const/analysis.js.map +1 -1
- package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js +3 -3
- package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js.map +1 -1
- package/build/scoring/assessments/readability/RelatedKeywordsAssessment.js +3 -2
- package/build/scoring/assessments/readability/RelatedKeywordsAssessment.js.map +1 -1
- package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js +3 -2
- package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js.map +1 -1
- package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js +3 -2
- package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js.map +1 -1
- package/build/scoring/assessments/readability/TransitionWordsAssessment.js +3 -2
- package/build/scoring/assessments/readability/TransitionWordsAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/ImageCountAssessment.js +3 -2
- package/build/scoring/assessments/seo/ImageCountAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/InternalLinksAssessment.js +3 -2
- package/build/scoring/assessments/seo/InternalLinksAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js +3 -2
- package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/KeyphraseAssessment.js +3 -2
- package/build/scoring/assessments/seo/KeyphraseAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js +3 -2
- package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/KeywordDensityAssessment.js +3 -2
- package/build/scoring/assessments/seo/KeywordDensityAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js +3 -2
- package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js +3 -2
- package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js +3 -2
- package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js +3 -2
- package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/OutboundLinksAssessment.js +3 -2
- package/build/scoring/assessments/seo/OutboundLinksAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/PageTitleWidthAssessment.js +3 -2
- package/build/scoring/assessments/seo/PageTitleWidthAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/SchemaAssessment.js +3 -2
- package/build/scoring/assessments/seo/SchemaAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/SingleH1Assessment.js +3 -2
- package/build/scoring/assessments/seo/SingleH1Assessment.js.map +1 -1
- package/build/scoring/assessments/seo/SingleTitleAssessment.js +3 -2
- package/build/scoring/assessments/seo/SingleTitleAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js +3 -2
- package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/TextImagesAssessment.js +3 -2
- package/build/scoring/assessments/seo/TextImagesAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/TextLengthAssessment.js +3 -2
- package/build/scoring/assessments/seo/TextLengthAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/UrlKeywordAssessment.js +3 -2
- package/build/scoring/assessments/seo/UrlKeywordAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/UrlLengthAssessment.js +3 -2
- package/build/scoring/assessments/seo/UrlLengthAssessment.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleH1Assessment.js","names":["isUndefined","merge","Assessment","AssessmentResult","SingleH1Assessment","constructor","config","defaultConfig","id","docUrl","fixPosition","ctaType","priority","title","content","good","improve","bad","identifier","_config","getResult","paper","researcher","i18n","_h1Count","getResearch","assessmentResult","calculatedResult","calculateResult","setScore","score","setStatus","status","htmlString","getText","desHasH1Tag","includes","getScore","isApplicable","hasText"],"sources":["../../../../src/scoring/assessments/seo/SingleH1Assessment.js"],"sourcesContent":["import {isUndefined, merge} from 'lodash';\nimport Assessment from '../assessment.js';\nimport AssessmentResult from '../../../values/AssessmentResult.js';\n\n/**\n * Assessment to check whether the body of the text contains more than 1 H1s in the body.\n * This assessment doesn't penalize H1 that is not in the very beginning of the body.\n */\nclass SingleH1Assessment extends Assessment {\n /**\n * Sets the identifier and the config.\n *\n * @param {Object} config The configuration to use.\n *\n * @returns {void}\n */\n constructor(config = {}) {\n super();\n\n const defaultConfig = {\n id:
|
|
1
|
+
{"version":3,"file":"SingleH1Assessment.js","names":["isUndefined","merge","Assessment","AssessmentResult","SINGLE_H1_ID","SingleH1Assessment","constructor","config","defaultConfig","id","docUrl","fixPosition","ctaType","priority","title","content","good","improve","bad","identifier","_config","getResult","paper","researcher","i18n","_h1Count","getResearch","assessmentResult","calculatedResult","calculateResult","setScore","score","setStatus","status","htmlString","getText","desHasH1Tag","includes","getScore","isApplicable","hasText"],"sources":["../../../../src/scoring/assessments/seo/SingleH1Assessment.js"],"sourcesContent":["import {isUndefined, merge} from 'lodash';\nimport Assessment from '../assessment.js';\nimport AssessmentResult from '../../../values/AssessmentResult.js';\nimport {SINGLE_H1_ID} from '@axyseo/const/analysis';\n\n/**\n * Assessment to check whether the body of the text contains more than 1 H1s in the body.\n * This assessment doesn't penalize H1 that is not in the very beginning of the body.\n */\nclass SingleH1Assessment extends Assessment {\n /**\n * Sets the identifier and the config.\n *\n * @param {Object} config The configuration to use.\n *\n * @returns {void}\n */\n constructor(config = {}) {\n super();\n\n const defaultConfig = {\n id: SINGLE_H1_ID,\n docUrl: 'https://help.seoon.io/seo/seo-checklist',\n fixPosition: 'description',\n ctaType: 'contactUs',\n priority: 'high',\n title: 'H1 tag',\n content: {\n good: 'H1 tag is optimized.',\n improve: 'You should use only one H1 tag',\n bad: 'Missing H1 tag. Add one H1 to clearly define your page`s topic.'\n }\n };\n\n this.identifier = SINGLE_H1_ID;\n this._config = merge(defaultConfig, config);\n }\n\n /**\n * Runs the h1 research and based on this returns an assessment result with a score.\n *\n * @param {Paper} paper The paper to use for the assessment.\n * @param {Researcher} researcher The researcher used for calling the research.\n * @param i18n\n * @returns {AssessmentResult} The assessment result.\n */\n getResult({paper, researcher, i18n}) {\n this._h1Count = researcher.getResearch('h1s');\n\n const assessmentResult = new AssessmentResult({config: this._config});\n\n const calculatedResult = this.calculateResult(paper, i18n);\n\n if (!isUndefined(calculatedResult)) {\n assessmentResult.setScore(calculatedResult.score);\n assessmentResult.setStatus(calculatedResult.status);\n }\n\n return assessmentResult;\n }\n\n /**\n * Returns the score and the feedback string for the single H1 assessment.\n *\n * @returns {Object|null} The calculated score and the feedback string.\n */\n calculateResult(paper, i18n) {\n const htmlString = paper.getText();\n const desHasH1Tag = htmlString.includes('<h1>');\n\n let status = '';\n if (this._h1Count === 1) {\n status = 'good';\n }\n\n if (this._h1Count === 0 && !desHasH1Tag) {\n status = 'good';\n }\n\n if (this._h1Count > 1) {\n status = 'improve';\n }\n\n const score = this.getScore(this._config.priority, status);\n\n return {\n score,\n status\n };\n }\n\n /**\n * Checks whether the paper has a text.\n *\n * @param {Paper} paper The paper to use for the assessment.\n *\n * @returns {boolean} True when there is text.\n */\n isApplicable(paper) {\n return paper.hasText();\n }\n}\n\nexport default SingleH1Assessment;\n"],"mappings":"AAAA,SAAQA,WAAW,EAAEC,KAAK,QAAO,QAAQ;AACzC,OAAOC,UAAU;AACjB,OAAOC,gBAAgB;AACvB,SAAQC,YAAY;;AAEpB;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,SAASH,UAAU,CAAC;EAC1C;AACF;AACA;AACA;AAC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Q,CAAC,MAAM,CAAC;IAE/C,IAAIJ,MAAM,GAAG,EAAE;IACf,IAAI,IAAI,CAACR,QAAQ,KAAK,CAAC,EAAE;MACvBQ,MAAM,GAAG,MAAM;IACjB;IAEA,IAAI,IAAI,CAACR,QAAQ,KAAK,CAAC,IAAI,CAACW,WAAW,EAAE;MACvCH,MAAM,GAAG,MAAM;IACjB;IAEA,IAAI,IAAI,CAACR,QAAQ,GAAG,CAAC,EAAE;MACrBQ,MAAM,GAAG,SAAS;IACpB;IAEA,MAAMF,KAAK,GAAG,IAAI,CAACO,QAAQ,CAAC,IAAI,CAAClB,OAAO,CAACP,QAAQ,EAAEoB,MAAM,CAAC;IAE1D,OAAO;MACLF,KAAK;MACLE;IACF,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACEM,YAAYA,CAACjB,KAAK,EAAE;IAClB,OAAOA,KAAK,CAACkB,OAAO,CAAC,CAAC;EACxB;AACF;AAEA,eAAenC,kBAAkB","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isUndefined, merge } from 'lodash';
|
|
2
2
|
import Assessment from "../assessment.js";
|
|
3
3
|
import AssessmentResult from "../../../values/AssessmentResult.js";
|
|
4
|
+
import { SINGLE_TITLE_ID } from "../../../const/analysis";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Assessment to check whether the body of the text contains more than 1 H1s in the body.
|
|
@@ -17,7 +18,7 @@ class SingleTitleAssessment extends Assessment {
|
|
|
17
18
|
constructor(config = {}) {
|
|
18
19
|
super();
|
|
19
20
|
const defaultConfig = {
|
|
20
|
-
id:
|
|
21
|
+
id: SINGLE_TITLE_ID,
|
|
21
22
|
docUrl: 'https://help.seoon.io/seo/seo-checklist',
|
|
22
23
|
ctaType: 'contactUs',
|
|
23
24
|
priority: 'high',
|
|
@@ -28,7 +29,7 @@ class SingleTitleAssessment extends Assessment {
|
|
|
28
29
|
good: 'No duplicate titles found.'
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
|
-
this.identifier =
|
|
32
|
+
this.identifier = SINGLE_TITLE_ID;
|
|
32
33
|
this._config = merge(defaultConfig, config);
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleTitleAssessment.js","names":["isUndefined","merge","Assessment","AssessmentResult","SingleTitleAssessment","constructor","config","defaultConfig","id","docUrl","ctaType","priority","title","content","improve","bad","good","identifier","_config","getResult","paper","researcher","i18n","assessmentResult","calculatedResult","calculateResult","setScore","score","setStatus","status","count","getTitleCount","getScore","isApplicable","hasTitle"],"sources":["../../../../src/scoring/assessments/seo/SingleTitleAssessment.js"],"sourcesContent":["import {isUndefined, merge} from 'lodash';\nimport Assessment from '../assessment.js';\nimport AssessmentResult from '../../../values/AssessmentResult.js';\n\n/**\n * Assessment to check whether the body of the text contains more than 1 H1s in the body.\n * This assessment doesn't penalize H1 that is not in the very beginning of the body.\n */\nclass SingleTitleAssessment extends Assessment {\n /**\n * Sets the identifier and the config.\n *\n * @param {Object} config The configuration to use.\n *\n * @returns {void}\n */\n constructor(config = {}) {\n super();\n\n const defaultConfig = {\n id:
|
|
1
|
+
{"version":3,"file":"SingleTitleAssessment.js","names":["isUndefined","merge","Assessment","AssessmentResult","SINGLE_TITLE_ID","SingleTitleAssessment","constructor","config","defaultConfig","id","docUrl","ctaType","priority","title","content","improve","bad","good","identifier","_config","getResult","paper","researcher","i18n","assessmentResult","calculatedResult","calculateResult","setScore","score","setStatus","status","count","getTitleCount","getScore","isApplicable","hasTitle"],"sources":["../../../../src/scoring/assessments/seo/SingleTitleAssessment.js"],"sourcesContent":["import {isUndefined, merge} from 'lodash';\nimport Assessment from '../assessment.js';\nimport AssessmentResult from '../../../values/AssessmentResult.js';\nimport {SINGLE_TITLE_ID} from '@axyseo/const/analysis';\n\n/**\n * Assessment to check whether the body of the text contains more than 1 H1s in the body.\n * This assessment doesn't penalize H1 that is not in the very beginning of the body.\n */\nclass SingleTitleAssessment extends Assessment {\n /**\n * Sets the identifier and the config.\n *\n * @param {Object} config The configuration to use.\n *\n * @returns {void}\n */\n constructor(config = {}) {\n super();\n\n const defaultConfig = {\n id: SINGLE_TITLE_ID,\n docUrl: 'https://help.seoon.io/seo/seo-checklist',\n ctaType: 'contactUs',\n priority: 'high',\n title: 'Duplicate title',\n content: {\n improve: '',\n bad: 'Found duplicate titles. Check your content and create unique titles.',\n good: 'No duplicate titles found.'\n }\n };\n\n this.identifier = SINGLE_TITLE_ID;\n this._config = merge(defaultConfig, config);\n }\n\n /**\n * Runs the h1 research and based on this returns an assessment result with a score.\n *\n * @param {Paper} paper The paper to use for the assessment.\n * @param {Researcher} researcher The researcher used for calling the research.\n * @param i18n\n * @returns {AssessmentResult} The assessment result.\n */\n getResult({paper, researcher, i18n}) {\n const assessmentResult = new AssessmentResult({config: this._config});\n\n const calculatedResult = this.calculateResult(paper, i18n);\n\n if (!isUndefined(calculatedResult)) {\n assessmentResult.setScore(calculatedResult.score);\n assessmentResult.setStatus(calculatedResult.status);\n }\n\n return assessmentResult;\n }\n\n /**\n * Returns the score and the feedback string for the single H1 assessment.\n *\n * @returns {Object|null} The calculated score and the feedback string.\n */\n calculateResult(paper, i18n) {\n const count = paper.getTitleCount();\n\n let status = '';\n if (count === 1) {\n status = 'good';\n } else {\n status = 'bad';\n }\n\n const score = this.getScore(this._config.priority, status);\n\n return {\n score,\n status\n };\n }\n\n /**\n * Checks whether the paper has a text.\n *\n * @param {Paper} paper The paper to use for the assessment.\n *\n * @returns {boolean} True when there is text.\n */\n isApplicable(paper) {\n return paper.hasTitle();\n }\n}\n\nexport default SingleTitleAssessment;\n"],"mappings":"AAAA,SAAQA,WAAW,EAAEC,KAAK,QAAO,QAAQ;AACzC,OAAOC,UAAU;AACjB,OAAOC,gBAAgB;AACvB,SAAQC,eAAe;;AAEvB;AACA;AACA;AACA;AACA,MAAMC,qBAAqB,SAASH,UAAU,CAAC;EAC7C;AACF;AACA;AACA;AACA;AACA;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F,KAAK,GAAG,IAAI,CAACK,QAAQ,CAAC,IAAI,CAACd,OAAO,CAACP,QAAQ,EAAEkB,MAAM,CAAC;IAE1D,OAAO;MACLF,KAAK;MACLE;IACF,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACEI,YAAYA,CAACb,KAAK,EAAE;IAClB,OAAOA,KAAK,CAACc,QAAQ,CAAC,CAAC;EACzB;AACF;AAEA,eAAe9B,qBAAqB","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { merge } from 'lodash';
|
|
2
2
|
import Assessment from "../assessment";
|
|
3
3
|
import AssessmentResult from "../../../values/AssessmentResult";
|
|
4
|
+
import { SUBHEADINGS_KEYWORD_ID } from "../../../const/analysis";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Represents the assessment that checks if the keyword is present in one of the subheadings.
|
|
@@ -16,7 +17,7 @@ export default class SubHeadingsKeywordAssessment extends Assessment {
|
|
|
16
17
|
constructor(config = {}) {
|
|
17
18
|
super();
|
|
18
19
|
const defaultConfig = {
|
|
19
|
-
id:
|
|
20
|
+
id: SUBHEADINGS_KEYWORD_ID,
|
|
20
21
|
ctaType: 'fix',
|
|
21
22
|
docUrl: 'https://docs.avada.io/seo-suite-help-center/seo-audit/on-page-seo/checklist#keyword-in-subheading',
|
|
22
23
|
priority: 'medium',
|
|
@@ -28,7 +29,7 @@ export default class SubHeadingsKeywordAssessment extends Assessment {
|
|
|
28
29
|
improve: ''
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
|
-
this.identifier =
|
|
32
|
+
this.identifier = SUBHEADINGS_KEYWORD_ID;
|
|
32
33
|
this._config = merge(defaultConfig, config);
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubHeadingsKeywordAssessment.js","names":["merge","Assessment","AssessmentResult","SubHeadingsKeywordAssessment","constructor","config","defaultConfig","id","ctaType","docUrl","priority","fixPosition","title","content","good","bad","improve","identifier","_config","getResult","paper","researcher","i18n","_subHeadings","getResearch","assessmentResult","calculatedResult","calculateResult","setScore","score","setStatus","status","matches","getScore","isApplicable","hasKeyword"],"sources":["../../../../src/scoring/assessments/seo/SubHeadingsKeywordAssessment.js"],"sourcesContent":["import {merge} from 'lodash';\nimport Assessment from '../assessment';\nimport AssessmentResult from '../../../values/AssessmentResult';\n\n/**\n * Represents the assessment that checks if the keyword is present in one of the subheadings.\n */\nexport default class SubHeadingsKeywordAssessment extends Assessment {\n /**\n * Sets the identifier and the config.\n *\n * @param {object} config The configuration to use.\n *\n * @returns {void}\n */\n constructor(config = {}) {\n super();\n\n const defaultConfig = {\n id:
|
|
1
|
+
{"version":3,"file":"SubHeadingsKeywordAssessment.js","names":["merge","Assessment","AssessmentResult","SUBHEADINGS_KEYWORD_ID","SubHeadingsKeywordAssessment","constructor","config","defaultConfig","id","ctaType","docUrl","priority","fixPosition","title","content","good","bad","improve","identifier","_config","getResult","paper","researcher","i18n","_subHeadings","getResearch","assessmentResult","calculatedResult","calculateResult","setScore","score","setStatus","status","matches","getScore","isApplicable","hasKeyword"],"sources":["../../../../src/scoring/assessments/seo/SubHeadingsKeywordAssessment.js"],"sourcesContent":["import {merge} from 'lodash';\nimport Assessment from '../assessment';\nimport AssessmentResult from '../../../values/AssessmentResult';\nimport {SUBHEADINGS_KEYWORD_ID} from '@axyseo/const/analysis';\n\n/**\n * Represents the assessment that checks if the keyword is present in one of the subheadings.\n */\nexport default class SubHeadingsKeywordAssessment extends Assessment {\n /**\n * Sets the identifier and the config.\n *\n * @param {object} config The configuration to use.\n *\n * @returns {void}\n */\n constructor(config = {}) {\n super();\n\n const defaultConfig = {\n id: SUBHEADINGS_KEYWORD_ID,\n ctaType: 'fix',\n docUrl:\n 'https://docs.avada.io/seo-suite-help-center/seo-audit/on-page-seo/checklist#keyword-in-subheading',\n priority: 'medium',\n fixPosition: 'subheading',\n title: 'Keyword in Subheading',\n content: {\n good: 'Keywords are included in subheadings.',\n bad:\n 'Keyword not found in any subheadings. Include it in at least one subheading (H2, H3, etc.).',\n improve: ''\n }\n };\n\n this.identifier = SUBHEADINGS_KEYWORD_ID;\n this._config = merge(defaultConfig, config);\n }\n\n /**\n * Runs the h1 research and based on this returns an assessment result with a score.\n *\n * @param {Paper} paper The paper to use for the assessment.\n * @param {Researcher} researcher The researcher used for calling the research.\n * @param i18n\n * @returns {AssessmentResult} The assessment result.\n */\n getResult({paper, researcher, i18n}) {\n this._subHeadings = researcher.getResearch('matchKeywordInSubheadings');\n\n const assessmentResult = new AssessmentResult({config: this._config});\n\n const calculatedResult = this.calculateResult(paper, i18n);\n\n assessmentResult.setScore(calculatedResult.score);\n assessmentResult.setStatus(calculatedResult.status);\n\n return assessmentResult;\n }\n\n /**\n *\n * @param paper\n * @param i18n\n * @returns {{score: number, body: React.JSX.Element, status: string}}\n */\n calculateResult(paper, i18n) {\n let status = '';\n if (this._subHeadings.matches > 0) {\n status = 'good';\n } else {\n status = 'bad';\n }\n\n const score = this.getScore(this._config.priority, status);\n\n return {\n score,\n status\n };\n }\n\n /**\n * Checks whether the paper has a text.\n *\n * @param {Paper} paper The paper to use for the assessment.\n *\n * @returns {boolean} True when there is text.\n */\n isApplicable(paper) {\n return paper.hasKeyword();\n }\n}\n"],"mappings":"AAAA,SAAQA,KAAK,QAAO,QAAQ;AAC5B,OAAOC,UAAU;AACjB,OAAOC,gBAAgB;AACvB,SAAQC,sBAAsB;;AAE9B;AACA;AACA;AACA,eAAe,MAAMC,4BAA4B,SAASH,UAAU,CAAC;EACnE;AACF;AACA;AACA;AACA;AACA;AACA;EACEI,WAAWA,CAACC,MAAM,GAAG,CAAC,CAAC,EAAE;IACvB,KAAK,CAAC,CAAC;IAEP,MAAMC,aAAa,GAAG;MACpBC,EAAE,EAAEL,sBAAsB;MAC1BM,OAAO,EAAE,KAAK;MACdC,MAAM,EACJ,mGAAmG;MACrGC,QAAQ,EAAE,QAAQ;MAClBC,WAAW,EAAE,YAAY;MAC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KAAK,CAACe,UAAU,CAAC,CAAC;EAC3B;AACF","ignoreList":[]}
|
|
@@ -3,6 +3,7 @@ import Assessment from "../assessment";
|
|
|
3
3
|
import AssessmentResult from "../../../values/AssessmentResult";
|
|
4
4
|
import { checkMissingAlt } from "../../../helpers";
|
|
5
5
|
import { ExternalIcon } from '@shopify/polaris-icons';
|
|
6
|
+
import { TEXT_IMAGES_ID } from "../../../const/analysis";
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Represents the assessment that assesses the SEO title width and gives the feedback accordingly.
|
|
@@ -18,7 +19,7 @@ export default class TextImagesAssessment extends Assessment {
|
|
|
18
19
|
constructor(config = {}) {
|
|
19
20
|
super();
|
|
20
21
|
const defaultConfig = {
|
|
21
|
-
id:
|
|
22
|
+
id: TEXT_IMAGES_ID,
|
|
22
23
|
ctaType: 'fix',
|
|
23
24
|
docUrl: 'https://docs.avada.io/seo-suite-help-center/seo-audit/on-page-seo/checklist#alt-text',
|
|
24
25
|
fixPosition: 'description',
|
|
@@ -31,7 +32,7 @@ export default class TextImagesAssessment extends Assessment {
|
|
|
31
32
|
bad: 'Missing alt text. Add descriptive alt text for accessibility and SEO.'
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
|
-
this.identifier =
|
|
35
|
+
this.identifier = TEXT_IMAGES_ID;
|
|
35
36
|
this._config = merge(defaultConfig, config);
|
|
36
37
|
}
|
|
37
38
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextImagesAssessment.js","names":["merge","Assessment","AssessmentResult","checkMissingAlt","ExternalIcon","TextImagesAssessment","constructor","config","defaultConfig","id","ctaType","docUrl","fixPosition","icon","priority","title","content","good","improve","bad","identifier","_config","getResult","paper","researcher","i18n","assessmentResult","altTagsProperties","getResearch","imageCount","calculatedResult","calculateResult","setScore","score","setStatus","status","imagesNoAlt","noAlt","getScore","fix","shop","data","console","log","body","altText","name","parser","DOMParser","doc","parseFromString","imgTags","querySelectorAll","forEach","img","hasAttribute","getAttribute","setAttribute","innerHTML","isApplicable","hasText"],"sources":["../../../../src/scoring/assessments/seo/TextImagesAssessment.js"],"sourcesContent":["import {merge} from 'lodash';\nimport Assessment from '../assessment';\nimport AssessmentResult from '../../../values/AssessmentResult';\nimport {checkMissingAlt} from '../../../helpers';\nimport {ExternalIcon} from '@shopify/polaris-icons';\n\n/**\n * Represents the assessment that assesses the SEO title width and gives the feedback accordingly.\n */\nexport default class TextImagesAssessment extends Assessment {\n /**\n * Sets the identifier and the config.\n *\n * @param {Object} [config] The configuration to use.\n *\n * @returns {void}\n */\n constructor(config = {}) {\n super();\n\n const defaultConfig = {\n id:
|
|
1
|
+
{"version":3,"file":"TextImagesAssessment.js","names":["merge","Assessment","AssessmentResult","checkMissingAlt","ExternalIcon","TEXT_IMAGES_ID","TextImagesAssessment","constructor","config","defaultConfig","id","ctaType","docUrl","fixPosition","icon","priority","title","content","good","improve","bad","identifier","_config","getResult","paper","researcher","i18n","assessmentResult","altTagsProperties","getResearch","imageCount","calculatedResult","calculateResult","setScore","score","setStatus","status","imagesNoAlt","noAlt","getScore","fix","shop","data","console","log","body","altText","name","parser","DOMParser","doc","parseFromString","imgTags","querySelectorAll","forEach","img","hasAttribute","getAttribute","setAttribute","innerHTML","isApplicable","hasText"],"sources":["../../../../src/scoring/assessments/seo/TextImagesAssessment.js"],"sourcesContent":["import {merge} from 'lodash';\nimport Assessment from '../assessment';\nimport AssessmentResult from '../../../values/AssessmentResult';\nimport {checkMissingAlt} from '../../../helpers';\nimport {ExternalIcon} from '@shopify/polaris-icons';\nimport {TEXT_IMAGES_ID} from '@axyseo/const/analysis';\n\n/**\n * Represents the assessment that assesses the SEO title width and gives the feedback accordingly.\n */\nexport default class TextImagesAssessment extends Assessment {\n /**\n * Sets the identifier and the config.\n *\n * @param {Object} [config] The configuration to use.\n *\n * @returns {void}\n */\n constructor(config = {}) {\n super();\n\n const defaultConfig = {\n id: TEXT_IMAGES_ID,\n ctaType: 'fix',\n docUrl:\n 'https://docs.avada.io/seo-suite-help-center/seo-audit/on-page-seo/checklist#alt-text',\n fixPosition: 'description',\n icon: ExternalIcon,\n priority: 'high',\n title: 'Alt text',\n content: {\n good: 'All images have descriptive and relevant alt text.',\n improve: '',\n bad: 'Missing alt text. Add descriptive alt text for accessibility and SEO.'\n }\n };\n\n this.identifier = TEXT_IMAGES_ID;\n this._config = merge(defaultConfig, config);\n }\n\n /**\n * Runs the h1 research and based on this returns an assessment result with a score.\n *\n * @param {Paper} paper The paper to use for the assessment.\n * @param {Researcher} researcher The researcher used for calling the research.\n * @param i18n\n * @returns {AssessmentResult} The assessment result.\n */\n getResult({paper, researcher, i18n}) {\n const assessmentResult = new AssessmentResult({config: this._config});\n this.altTagsProperties = researcher.getResearch('altTagCount');\n this.imageCount = researcher.getResearch('imageCount');\n\n const calculatedResult = this.calculateResult(paper, i18n);\n\n assessmentResult.setScore(calculatedResult.score);\n assessmentResult.setStatus(calculatedResult.status);\n\n return assessmentResult;\n }\n\n /**\n *\n * @param paper\n * @param i18n\n * @returns {{score: number, body: React.JSX.Element, status: string}}\n */\n calculateResult(paper, i18n) {\n const imagesNoAlt = this.altTagsProperties.noAlt;\n\n let status = '';\n if (imagesNoAlt === this.imageCount || imagesNoAlt > 0) {\n status = 'bad';\n } else {\n status = 'good';\n }\n\n const score = this.getScore(this._config.priority, status);\n\n return {\n score,\n status\n };\n }\n\n /**\n *\n * @param shop\n * @param data\n * @returns {string}\n */\n fix({shop, data}) {\n if (!shop) {\n console.log('Shop is missing');\n return data.body || '';\n }\n\n if (!data.body) {\n console.log('body is missing');\n return '';\n }\n\n const altText = shop?.name || 'Shop' + ' | ' + data?.title || 'Title';\n\n const parser = new DOMParser();\n const doc = parser.parseFromString(data.body, 'text/html');\n\n const imgTags = doc.querySelectorAll('img');\n\n imgTags.forEach(img => {\n if (!img.hasAttribute('alt') || img.getAttribute('alt') === '') {\n img.setAttribute('alt', altText);\n }\n });\n\n return doc.body.innerHTML;\n }\n\n /**\n * Checks whether the paper has a text.\n *\n * @param {Paper} paper The paper to use for the assessment.\n * @param researcher\n * @returns {boolean} True when there is text.\n */\n isApplicable(paper, researcher) {\n this.imageCount = researcher.getResearch('imageCount');\n return paper.hasText() && this.imageCount > 0;\n }\n}\n"],"mappings":"AAAA,SAAQA,KAAK,QAAO,QAAQ;AAC5B,OAAOC,UAAU;AACjB,OAAOC,gBAAgB;AACvB,SAAQC,eAAe;AACvB,SAAQC,YAAY,QAAO,wBAAwB;AACnD,SAAQC,cAAc;;AAEtB;AACA;AACA;AACA,eAAe,MAAMC,oBAAoB,SAASL,UAAU,CAAC;EAC3D;AACF;AACA;AACA;AACA;AACA;AACA;EACEM,WAAWA,CAACC,MAAM,GAAG,CAAC,CAAC,EAAE;IACvB,KAAK,CAAC,CAAC;IAEP,MAAMC,aAAa,GAAG;MACpBC,EAAE,EAAEL,cAAc;MAClBM,OAAO,EAAE,KAAK;MACdC,MAAM,EACJ,sFAAsF;MACxFC,WAAW,EAAE,aAAa;MAC1BC,IAAI,EAAEV,YAAY;MAClBW,QAAQ,EAAE,MAAM;MAChBC,KAAK,EAAE,UAAU;MACjBC,OAAO,EAAE;QACPC,IAAI,EAAE,oDAAoD;QAC1DC,OAAO,EAAE,EAAE;QACXC,GAAG,EAAE;MACP;IACF,CAAC;IAED,IAAI,CAACC,UAAU,GAAGhB,cAAc;IAChC,IAAI,CAACiB,OAAO,GAAGtB,KAAK,CAACS,aAAa,EAAED,MAAM,CAAC;EAC7C;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEe,SAASA,CAAC;IAACC,KAAK;IAAEC,UAAU;IAAEC;EAAI,CAAC,EAAE;IACnC,MAAMC,gBAAgB,GAAG,IAAIzB,gBAAgB,CAAC;MAACM,MAAM,EAAE,IAAI,CAACc;IAAO,CAAC,CAAC;IACrE,IAAI,CAACM,iBAAiB,GAAGH,UAAU,CAACI,WAAW,CAAC,aAAa,CAAC;IAC9D,IAAI,CAACC,UAAU,GAAGL,UAAU,CAACI,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AAM,CAACG,eAAe,CAACT,IAAI,CAACG,IAAI,EAAE,WAAW,CAAC;IAE1D,MAAMO,OAAO,GAAGF,GAAG,CAACG,gBAAgB,CAAC,KAAK,CAAC;IAE3CD,OAAO,CAACE,OAAO,CAACC,GAAG,IAAI;MACrB,IAAI,CAACA,GAAG,CAACC,YAAY,CAAC,KAAK,CAAC,IAAID,GAAG,CAACE,YAAY,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE;QAC9DF,GAAG,CAACG,YAAY,CAAC,KAAK,EAAEZ,OAAO,CAAC;MAClC;IACF,CAAC,CAAC;IAEF,OAAOI,GAAG,CAACL,IAAI,CAACc,SAAS;EAC3B;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,YAAYA,CAACpC,KAAK,EAAEC,UAAU,EAAE;IAC9B,IAAI,CAACK,UAAU,GAAGL,UAAU,CAACI,WAAW,CAAC,YAAY,CAAC;IACtD,OAAOL,KAAK,CAACqC,OAAO,CAAC,CAAC,IAAI,IAAI,CAAC/B,UAAU,GAAG,CAAC;EAC/C;AACF","ignoreList":[]}
|
|
@@ -3,6 +3,7 @@ import Assessment from "../assessment";
|
|
|
3
3
|
import AssessmentResult from "../../../values/AssessmentResult";
|
|
4
4
|
import wordCountInText from "../../../languageProcessing/researches/wordCountInText";
|
|
5
5
|
import countCharacters from "../../../languageProcessing/languages/ja/helpers/countCharacters";
|
|
6
|
+
import { TEXT_LENGTH_ID } from "../../../const/analysis";
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Represents an assessment that checks the length of the text and gives feedback accordingly.
|
|
@@ -18,7 +19,7 @@ export default class TextLengthAssessment extends Assessment {
|
|
|
18
19
|
constructor(config = {}) {
|
|
19
20
|
super();
|
|
20
21
|
const defaultConfig = {
|
|
21
|
-
id:
|
|
22
|
+
id: TEXT_LENGTH_ID,
|
|
22
23
|
ctaType: 'fix',
|
|
23
24
|
docUrl: 'https://docs.avada.io/seo-suite-help-center/seo-audit/on-page-seo/checklist#text-length',
|
|
24
25
|
priority: 'high',
|
|
@@ -30,7 +31,7 @@ export default class TextLengthAssessment extends Assessment {
|
|
|
30
31
|
bad: 'Insufficient content. Aim for at least 600 words to provide value and rank well in search results.'
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
|
-
this.identifier =
|
|
34
|
+
this.identifier = TEXT_LENGTH_ID;
|
|
34
35
|
this._config = merge(defaultConfig, config);
|
|
35
36
|
}
|
|
36
37
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextLengthAssessment.js","names":["merge","Assessment","AssessmentResult","wordCountInText","countCharacters","TextLengthAssessment","constructor","config","defaultConfig","id","ctaType","docUrl","priority","fixPosition","title","content","good","improve","bad","identifier","_config","getResult","paper","researcher","i18n","calculatedResult","calculateResult","assessmentResult","setScore","score","setStatus","status","wordCount","count","charCount","getText","getScore"],"sources":["../../../../src/scoring/assessments/seo/TextLengthAssessment.js"],"sourcesContent":["import {merge} from 'lodash';\nimport Assessment from '../assessment';\nimport AssessmentResult from '../../../values/AssessmentResult';\nimport wordCountInText from '@axyseo/languageProcessing/researches/wordCountInText';\nimport countCharacters from '@axyseo/languageProcessing/languages/ja/helpers/countCharacters';\n\n/**\n * Represents an assessment that checks the length of the text and gives feedback accordingly.\n */\nexport default class TextLengthAssessment extends Assessment {\n /**\n * Sets the identifier and the config.\n *\n * @param {Object} [config] The configuration to use.\n *\n * @returns {void}\n */\n constructor(config = {}) {\n super();\n\n const defaultConfig = {\n id:
|
|
1
|
+
{"version":3,"file":"TextLengthAssessment.js","names":["merge","Assessment","AssessmentResult","wordCountInText","countCharacters","TEXT_LENGTH_ID","TextLengthAssessment","constructor","config","defaultConfig","id","ctaType","docUrl","priority","fixPosition","title","content","good","improve","bad","identifier","_config","getResult","paper","researcher","i18n","calculatedResult","calculateResult","assessmentResult","setScore","score","setStatus","status","wordCount","count","charCount","getText","getScore"],"sources":["../../../../src/scoring/assessments/seo/TextLengthAssessment.js"],"sourcesContent":["import {merge} from 'lodash';\nimport Assessment from '../assessment';\nimport AssessmentResult from '../../../values/AssessmentResult';\nimport wordCountInText from '@axyseo/languageProcessing/researches/wordCountInText';\nimport countCharacters from '@axyseo/languageProcessing/languages/ja/helpers/countCharacters';\nimport {TEXT_LENGTH_ID} from '@axyseo/const/analysis';\n\n/**\n * Represents an assessment that checks the length of the text and gives feedback accordingly.\n */\nexport default class TextLengthAssessment extends Assessment {\n /**\n * Sets the identifier and the config.\n *\n * @param {Object} [config] The configuration to use.\n *\n * @returns {void}\n */\n constructor(config = {}) {\n super();\n\n const defaultConfig = {\n id: TEXT_LENGTH_ID,\n ctaType: 'fix',\n docUrl:\n 'https://docs.avada.io/seo-suite-help-center/seo-audit/on-page-seo/checklist#text-length',\n priority: 'high',\n fixPosition: 'description',\n title: 'Text length',\n content: {\n good: 'Text length is optimized.',\n improve:\n 'Content length is acceptable, but could be expanded to 2,500 characters for more value.',\n bad:\n 'Insufficient content. Aim for at least 600 words to provide value and rank well in search results.'\n }\n };\n\n this.identifier = TEXT_LENGTH_ID;\n this._config = merge(defaultConfig, config);\n }\n\n /**\n * Executes the Assessment and returns a result.\n *\n * @param {Paper} paper The Paper object to assess.\n * @param {Researcher} researcher The Researcher object containing all available researches.\n *\n * @param i18n\n * @returns {AssessmentResult} The result of the assessment, containing both a score and a descriptive text.\n */\n getResult({paper, researcher, i18n}) {\n const calculatedResult = this.calculateResult(paper, i18n);\n\n const assessmentResult = new AssessmentResult({config: this._config});\n assessmentResult.setScore(calculatedResult.score);\n assessmentResult.setStatus(calculatedResult.status);\n\n return assessmentResult;\n }\n\n /**\n *\n * @param paper\n * @param i18n\n * @returns {{score: number, body: React.JSX.Element, status: string}}\n */\n calculateResult(paper, i18n) {\n const wordCount = wordCountInText(paper).count;\n const charCount = countCharacters(paper.getText());\n\n let status = 'bad';\n if (charCount < 2500 && wordCount >= 600) {\n status = 'improve';\n }\n if (wordCount < 600 && charCount < 2500) {\n status = 'bad';\n }\n if (charCount >= 2500 && wordCount >= 600) {\n status = 'good';\n }\n\n const score = this.getScore(this._config.priority, status);\n\n return {\n score,\n status\n };\n }\n}\n"],"mappings":"AAAA,SAAQA,KAAK,QAAO,QAAQ;AAC5B,OAAOC,UAAU;AACjB,OAAOC,gBAAgB;AACvB,OAAOC,eAAe;AACtB,OAAOC,eAAe;AACtB,SAAQC,cAAc;;AAEtB;AACA;AACA;AACA,eAAe,MAAMC,oBAAoB,SAASL,UAAU,CAAC;EAC3D;AACF;AACA;AACA;AACA;AACA;AACA;EACEM,WAAWA,CAACC,MAAM,GAAG,CAAC,CAAC,EAAE;IACvB,KAAK,CAAC,CAAC;IAEP,MAAMC,aAAa,GAAG;MACpBC,EAAE,EAAEL,cAAc;MAClBM,OAAO,EAAE,KAAK;MACdC,MAAM,EACJ,yFAAyF;MAC3FC,QAAQ,EAAE,MAAM;MAChBC,WAAW,EAAE,aAAa;MAC1BC,KAAK,EAAE,aAAa;MACpBC,OAAO,EAAE;QACPC,IAAI,EAAE,2BAA2B;QACjCC,OAAO,EACL,yFAAyF;QAC3FC,GAAG,EACD;MACJ;IACF,CAAC;IAED,IAAI,CAACC,UAAU,GAAGf,cAAc;IAChC,IAAI,CAACgB,OAAO,GAAGrB,KAAK,CAACS,aAAa,EAAED,MAAM,CAAC;EAC7C;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEc,SAASA,CAAC;IAACC,KAAK;IAAEC,UAAU;IAAEC;EAAI,CAAC,EAAE;IACnC,MAAMC,gBAAgB,GAAG,IAAI,CAACC,eAAe,CAACJ,KAAK,EAAEE,IAAI,CAAC;IAE1D,MAAMG,gBAAgB,GAAG,IAAI1B,gBAAgB,CAAC;MAACM,MAAM,EAAE,IAAI,CAACa;IAAO,CAAC,CAAC;IACrEO,gBAAgB,CAACC,QAAQ,CAACH,gBAAgB,CAACI,KAAK,CAAC;IACjDF,gBAAgB,CAACG,SAAS,CAACL,gBAAgB,CAACM,MAAM,CAAC;IAEnD,OAAOJ,gBAAgB;EACzB;;EAEA;AACF;AACA;AACA;AACA;AACA;EACED,eAAeA,CAACJ,KAAK,EAAEE,IAAI,EAAE;IAC3B,MAAMQ,SAAS,GAAG9B,eAAe,CAACoB,KAAK,CAAC,CAACW,KAAK;IAC9C,MAAMC,SAAS,GAAG/B,eAAe,CAACmB,KAAK,CAACa,OAAO,CAAC,CAAC,CAAC;IAElD,IAAIJ,MAAM,GAAG,KAAK;IAClB,IAAIG,SAAS,GAAG,IAAI,IAAIF,SAAS,IAAI,GAAG,EAAE;MACxCD,MAAM,GAAG,SAAS;IACpB;IACA,IAAIC,SAAS,GAAG,GAAG,IAAIE,SAAS,GAAG,IAAI,EAAE;MACvCH,MAAM,GAAG,KAAK;IAChB;IACA,IAAIG,SAAS,IAAI,IAAI,IAAIF,SAAS,IAAI,GAAG,EAAE;MACzCD,MAAM,GAAG,MAAM;IACjB;IAEA,MAAMF,KAAK,GAAG,IAAI,CAACO,QAAQ,CAAC,IAAI,CAAChB,OAAO,CAACR,QAAQ,EAAEmB,MAAM,CAAC;IAE1D,OAAO;MACLF,KAAK;MACLE;IACF,CAAC;EACH;AACF","ignoreList":[]}
|
|
@@ -2,6 +2,7 @@ import { Text } from '@shopify/polaris';
|
|
|
2
2
|
import { merge } from 'lodash';
|
|
3
3
|
import Assessment from "../assessment";
|
|
4
4
|
import AssessmentResult from "../../../values/AssessmentResult";
|
|
5
|
+
import { SLUG_KEYWORD_ID } from "../../../const/analysis";
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Represents the Slug keyword assessment. This assessment checks if the keyword is present in the slug.
|
|
@@ -16,7 +17,7 @@ class SlugKeywordAssessment extends Assessment {
|
|
|
16
17
|
constructor(config = {}) {
|
|
17
18
|
super();
|
|
18
19
|
const defaultConfig = {
|
|
19
|
-
id:
|
|
20
|
+
id: SLUG_KEYWORD_ID,
|
|
20
21
|
docUrl: 'https://docs.avada.io/seo-suite-help-center/seo-audit/on-page-seo/checklist#keyword-in-url',
|
|
21
22
|
fixPosition: 'url handle',
|
|
22
23
|
ctaType: 'fix',
|
|
@@ -28,7 +29,7 @@ class SlugKeywordAssessment extends Assessment {
|
|
|
28
29
|
bad: 'Missing keyword in URL. Include it for relevance and better SEO.'
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
|
-
this.identifier =
|
|
32
|
+
this.identifier = SLUG_KEYWORD_ID;
|
|
32
33
|
this._config = merge(defaultConfig, config);
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UrlKeywordAssessment.js","names":["Text","merge","Assessment","AssessmentResult","SlugKeywordAssessment","constructor","config","defaultConfig","id","docUrl","fixPosition","ctaType","priority","title","content","good","improve","bad","identifier","_config","getResult","paper","researcher","i18n","_keywordInSlug","getResearch","assessmentResult","calculatedResult","calculateResult","setScore","score","setStatus","status","setBody","body","isApplicable","isFrontPage","hasKeyword","hasSlug","hasResearch","percentWordMatches","getScore"],"sources":["../../../../src/scoring/assessments/seo/UrlKeywordAssessment.js"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"UrlKeywordAssessment.js","names":["Text","merge","Assessment","AssessmentResult","SLUG_KEYWORD_ID","SlugKeywordAssessment","constructor","config","defaultConfig","id","docUrl","fixPosition","ctaType","priority","title","content","good","improve","bad","identifier","_config","getResult","paper","researcher","i18n","_keywordInSlug","getResearch","assessmentResult","calculatedResult","calculateResult","setScore","score","setStatus","status","setBody","body","isApplicable","isFrontPage","hasKeyword","hasSlug","hasResearch","percentWordMatches","getScore"],"sources":["../../../../src/scoring/assessments/seo/UrlKeywordAssessment.js"],"sourcesContent":["import {Text} from '@shopify/polaris';\nimport {merge} from 'lodash';\n\nimport Assessment from '../assessment';\nimport AssessmentResult from '../../../values/AssessmentResult';\nimport {SLUG_KEYWORD_ID} from '@axyseo/const/analysis';\n\n/**\n * Represents the Slug keyword assessment. This assessment checks if the keyword is present in the slug.\n */\nclass SlugKeywordAssessment extends Assessment {\n /**\n * Sets the identifier and the config.\n *\n * @param {Object} config The configuration to use.\n * @returns {void}\n */\n constructor(config = {}) {\n super();\n\n const defaultConfig = {\n id: SLUG_KEYWORD_ID,\n docUrl:\n 'https://docs.avada.io/seo-suite-help-center/seo-audit/on-page-seo/checklist#keyword-in-url',\n fixPosition: 'url handle',\n ctaType: 'fix',\n priority: 'medium',\n title: 'Keyword in URL',\n content: {\n good: 'Keyword is included in URL.',\n improve: '',\n bad: 'Missing keyword in URL. Include it for relevance and better SEO.'\n }\n };\n\n this.identifier = SLUG_KEYWORD_ID;\n this._config = merge(defaultConfig, config);\n }\n\n /**\n * Executes the Assessment and returns a result.\n *\n * @param {Paper} paper The Paper object to assess.\n * @param {Researcher} researcher The Researcher object containing all available researches.\n *\n * @param i18n\n * @returns {AssessmentResult} The result of the assessment, containing both a score and a descriptive text.\n */\n getResult({paper, researcher, i18n}) {\n this._keywordInSlug = researcher.getResearch('keywordCountInSlug');\n\n const assessmentResult = new AssessmentResult({config: this._config});\n\n const calculatedResult = this.calculateResult(i18n);\n\n assessmentResult.setScore(calculatedResult.score);\n assessmentResult.setStatus(calculatedResult.status);\n assessmentResult.setBody(calculatedResult.body);\n return assessmentResult;\n }\n\n /**\n * Checks whether the paper has a keyword and a slug.\n *\n * @param {Paper} paper The paper to use for the assessment.\n * @param {Researcher} researcher The researcher object.\n *\n * @returns {boolean} True if the paper contains a keyword and a slug, and if the keywordCountInSlug research is available on the researcher.\n */\n isApplicable(paper, researcher) {\n return (\n !paper.isFrontPage() &&\n paper.hasKeyword() &&\n paper.hasSlug() &&\n researcher.hasResearch('keywordCountInSlug')\n );\n }\n\n /**\n *\n * @param i18n\n * @returns {{score: number, body: React.JSX.Element, status: string}}\n */\n calculateResult(i18n) {\n const status = (() => {\n return this._keywordInSlug.percentWordMatches >= 50 ? 'good' : 'bad';\n })();\n\n const score = this.getScore(this._config.priority, status);\n\n return {\n score,\n status\n };\n }\n}\n\nexport default SlugKeywordAssessment;\n"],"mappings":"AAAA,SAAQA,IAAI,QAAO,k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A;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACES,YAAYA,CAACd,KAAK,EAAEC,UAAU,EAAE;IAC9B,OACE,CAACD,KAAK,CAACe,WAAW,CAAC,CAAC,IACpBf,KAAK,CAACgB,UAAU,CAAC,CAAC,IAClBhB,KAAK,CAACiB,OAAO,CAAC,CAAC,IACfhB,UAAU,CAACiB,WAAW,CAAC,oBAAoB,CAAC;EAEhD;;EAEA;AACF;AACA;AACA;AACA;EACEX,eAAeA,CAACL,IAAI,EAAE;IACpB,MAAMS,MAAM,GAAG,CAAC,MAAM;MACpB,OAAO,IAAI,CAACR,cAAc,CAACgB,kBAAkB,IAAI,EAAE,GAAG,MAAM,GAAG,KAAK;IACtE,CAAC,EAAE,CAAC;IAEJ,MAAMV,KAAK,GAAG,IAAI,CAACW,QAAQ,CAAC,IAAI,CAACtB,OAAO,CAACP,QAAQ,EAAEoB,MAAM,CAAC;IAE1D,OAAO;MACLF,KAAK;MACLE;IACF,CAAC;EACH;AACF;AAEA,eAAe5B,qBAAqB","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { merge } from 'lodash';
|
|
2
2
|
import AssessmentResult from "../../../values/AssessmentResult";
|
|
3
3
|
import Assessment from "../assessment";
|
|
4
|
+
import { URL_LENGTH_ID } from "../../../const/analysis";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Represents the assessment that checks whether there are three or more consecutive sentences beginning with the same word.
|
|
@@ -16,7 +17,7 @@ export default class UrlLengthAssessment extends Assessment {
|
|
|
16
17
|
constructor(config = {}) {
|
|
17
18
|
super();
|
|
18
19
|
const defaultConfig = {
|
|
19
|
-
id:
|
|
20
|
+
id: URL_LENGTH_ID,
|
|
20
21
|
priority: 'high',
|
|
21
22
|
docUrl: 'https://docs.avada.io/seo-suite-help-center/seo-audit/on-page-seo/checklist#url-length',
|
|
22
23
|
fixPosition: 'url handle',
|
|
@@ -28,7 +29,7 @@ export default class UrlLengthAssessment extends Assessment {
|
|
|
28
29
|
bad: 'Keep it less than 75 characters for better readability and SEO.'
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
|
-
this.identifier =
|
|
32
|
+
this.identifier = URL_LENGTH_ID;
|
|
32
33
|
this._config = merge(defaultConfig, config);
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UrlLengthAssessment.js","names":["merge","AssessmentResult","Assessment","UrlLengthAssessment","constructor","config","defaultConfig","id","priority","docUrl","fixPosition","ctaType","title","content","good","improve","bad","identifier","_config","calculateResult","paper","i18n","status","length","getDomain","getSlug","score","getScore","getResult","researcher","calculatedResult","assessmentResult","setScore","setStatus","setBody","body","isApplicable"],"sources":["../../../../src/scoring/assessments/seo/UrlLengthAssessment.js"],"sourcesContent":["import {merge} from 'lodash';\nimport AssessmentResult from '../../../values/AssessmentResult';\nimport Assessment from '../assessment';\n\n/**\n * Represents the assessment that checks whether there are three or more consecutive sentences beginning with the same word.\n */\nexport default class UrlLengthAssessment extends Assessment {\n /**\n * Sets the identifier and the config.\n *\n * @param {object} config The configuration to use.\n *\n * @returns {void}\n */\n constructor(config = {}) {\n super();\n\n const defaultConfig = {\n id:
|
|
1
|
+
{"version":3,"file":"UrlLengthAssessment.js","names":["merge","AssessmentResult","Assessment","URL_LENGTH_ID","UrlLengthAssessment","constructor","config","defaultConfig","id","priority","docUrl","fixPosition","ctaType","title","content","good","improve","bad","identifier","_config","calculateResult","paper","i18n","status","length","getDomain","getSlug","score","getScore","getResult","researcher","calculatedResult","assessmentResult","setScore","setStatus","setBody","body","isApplicable"],"sources":["../../../../src/scoring/assessments/seo/UrlLengthAssessment.js"],"sourcesContent":["import {merge} from 'lodash';\nimport AssessmentResult from '../../../values/AssessmentResult';\nimport Assessment from '../assessment';\nimport {URL_LENGTH_ID} from '@axyseo/const/analysis';\n\n/**\n * Represents the assessment that checks whether there are three or more consecutive sentences beginning with the same word.\n */\nexport default class UrlLengthAssessment extends Assessment {\n /**\n * Sets the identifier and the config.\n *\n * @param {object} config The configuration to use.\n *\n * @returns {void}\n */\n constructor(config = {}) {\n super();\n\n const defaultConfig = {\n id: URL_LENGTH_ID,\n priority: 'high',\n docUrl:\n 'https://docs.avada.io/seo-suite-help-center/seo-audit/on-page-seo/checklist#url-length',\n fixPosition: 'url handle',\n ctaType: 'fix',\n title: 'URL length',\n content: {\n good: 'URL length is optimized, less than 75 characters.',\n improve: '',\n bad: 'Keep it less than 75 characters for better readability and SEO.'\n }\n };\n\n this.identifier = URL_LENGTH_ID;\n this._config = merge(defaultConfig, config);\n }\n\n /**\n *\n * @param paper\n * @param i18n\n * @returns {{score: number, body: React.JSX.Element, status: string}}\n */\n calculateResult(paper, i18n) {\n let status = '';\n const length = paper.getDomain().length + paper.getSlug().length;\n\n if (length < 75) {\n status = 'good';\n } else {\n status = 'bad';\n }\n\n const score = this.getScore(this._config.priority, status);\n\n return {\n score,\n status\n };\n }\n\n /**\n *\n * @param paper\n * @param researcher\n * @param i18n\n * @returns {AssessmentResult}\n */\n getResult({paper, researcher, i18n}) {\n const calculatedResult = this.calculateResult(paper, i18n);\n const assessmentResult = new AssessmentResult({config: this._config});\n\n assessmentResult.setScore(calculatedResult.score);\n assessmentResult.setStatus(calculatedResult.status);\n assessmentResult.setBody(calculatedResult.body);\n\n return assessmentResult;\n }\n\n /**\n * Checks if the sentence beginnings assessment is applicable to the paper.\n *\n * @param {Object} paper The paper to check.\n * @param {Researcher} researcher The researcher object.\n *\n * @returns {boolean} Returns true if the language is available and the paper is not empty.\n */\n isApplicable(paper, researcher) {\n return true;\n }\n}\n"],"mappings":"AAAA,SAAQA,KAAK,QAAO,QAAQ;AAC5B,OAAOC,gBAAgB;AACvB,OAAOC,UAAU;AACjB,SAAQC,aAAa;;AAErB;AACA;AACA;AACA,eAAe,MAAMC,mBAAmB,SAASF,UAAU,CAAC;EAC1D;AACF;AACA;AACA;AACA;AACA;AACA;EACEG,WAAWA,CAACC,MAAM,GAAG,CAAC,CAA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