• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AxeWP / wp-graphql-rank-math / 15507492505

07 Jun 2025 11:44AM UTC coverage: 86.429% (-2.0%) from 88.44%
15507492505

push

github

web-flow
dev: add support for lazy-loading `description`/`deprecationReason` config values (#121)

* chore: update strauss and deps

* dev: use callable descriptions/deprecations

* fix: dont prefix `NodeWithRankMathSeo`

* chore: fix backcompat on connections

* chore: update dep

* chore: update deps

* tests: ensure schema can build

* chore: update and cleanup

* fix: regenerate autoloader

357 of 367 new or added lines in 66 files covered. (97.28%)

60 existing lines in 60 files now uncovered.

2541 of 2940 relevant lines covered (86.43%)

11.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.0
/src/Type/WPObject/Settings/General/FrontendSeoScore.php
1
<?php
2
/**
3
 * The FrontendSeoScore GraphQL object.
4
 *
5
 * @package WPGraphQL\RankMath\Type\WPObject\Settings\General
6
 */
7

8
declare( strict_types = 1 );
9

10
namespace WPGraphQL\RankMath\Type\WPObject\Settings\General;
11

12
use WPGraphQL\RankMath\Type\Enum\SeoScorePositionEnum;
13
use WPGraphQL\RankMath\Type\Enum\SeoScoreTemplateTypeEnum;
14
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\ObjectType;
15

16
/**
17
 * Class - FrontendSeoScore
18
 */
19
class FrontendSeoScore extends ObjectType {
20
        /**
21
         * {@inheritDoc}
22
         */
23
        protected static function type_name(): string {
24
                return 'FrontendSeoScore';
20✔
25
        }
26

27
        /**
28
         * {@inheritDoc}
29
         */
30
        public static function get_description(): string {
UNCOV
31
                return __( 'RankMath Frontend SEO Score settings.', 'wp-graphql-rank-math' );
×
32
        }
33

34
        /**
35
         * {@inheritDoc}
36
         */
37
        public static function get_fields(): array {
38
                return [
20✔
39
                        'enabledPostTypes'    => [
20✔
40
                                'type'        => [ 'list_of' => 'ContentTypeEnum' ],
20✔
41
                                'description' => static fn () => __( 'The list of post types which should display the calculated SEO score.', 'wp-graphql-rank-math' ),
20✔
42
                        ],
20✔
43
                        'template'            => [
20✔
44
                                'type'        => SeoScoreTemplateTypeEnum::get_type_name(),
20✔
45
                                'description' => static fn () => __( 'The list of post types which should display the calculated SEO score.', 'wp-graphql-rank-math' ),
20✔
46
                        ],
20✔
47
                        'position'            => [
20✔
48
                                'type'        => SeoScorePositionEnum::get_type_name(),
20✔
49
                                'description' => static fn () => __( 'Where the SEO score badges should be displayed automatically, or if the `[rank_math_seo_score]` shortcode is used instead.', 'wp-graphql-rank-math' ),
20✔
50
                        ],
20✔
51
                        'hasRankMathBacklink' => [
20✔
52
                                'type'        => 'Boolean',
20✔
53
                                'description' => static fn () => __( 'Whether to insert a backlink to RankMath.com to show your support, if you are showing the SEO scores on the front end.', 'wp-graphql-rank-math' ),
20✔
54
                        ],
20✔
55
                ];
20✔
56
        }
57
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc