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

equalizedigital / accessibility-checker / 16057813270

03 Jul 2025 06:21PM UTC coverage: 28.915% (-0.1%) from 29.05%
16057813270

push

github

web-flow
Merge pull request #1029 from equalizedigital/william/pro-165-urls-missing-utm-parameters-in-plugin

Update some links through the plugin to properly attribute them

32 of 160 new or added lines in 15 files covered. (20.0%)

18 existing lines in 5 files now uncovered.

1527 of 5281 relevant lines covered (28.91%)

1.66 hits per line

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

0.0
/admin/class-accessibility-statement.php
1
<?php
2
/**
3
 * Class file for accessibility statement.
4
 *
5
 * @package Accessibility_Checker
6
 * @since 1.9.0
7
 */
8

9
namespace EDAC\Admin;
10

11
/**
12
 * Class that adds the accessibility statement page.
13
 */
14
class Accessibility_Statement {
15

16
        /**
17
         * Add Accessibility Statement Page
18
         *
19
         * @return void
20
         */
21
        public static function add_page() {
22

23
                if ( ! current_user_can( 'activate_plugins' ) ) {
×
24
                        return;
×
25
                }
26

27
                // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.get_page_by_path_get_page_by_path -- Needs to suport all hosting environments.
28
                if ( ! get_page_by_path( 'accessibility-statement' ) ) {
×
29

30
                        $current_user = wp_get_current_user();
×
31
                        $author_id    = $current_user->ID;
×
32
                        $slug         = 'accessibility-statement';
×
33
                        $title        = __( 'Our Commitment to Web Accessibility', 'accessibility-checker' );
×
34
                        $content      = sprintf(
×
35
                                '%1$s<br /><br />
×
36
                                <h2><strong>%2$s</strong></h2>
37
                                %3$s<br /><br />
38
                                %4$s<br /><br />
39
                                <h2>%5$s</h2>
40
                                %6$s<br /><br />
41
                                <ul>
42
                                <li>%7$s</li>
43
                                </ul>
44
                                <h2>%8$s</h2>
45
                                %9$s<br /><br />
46
                                <ul>
47
                                <li>%10$s</li>
48
                                <li>%11$s</li>
49
                                </ul>
50
                                %12$s<br /><br />
51
                                <h2>%13$s</h2>
52
                                %14$s',
×
53
                                sprintf( __( '[YOUR COMPANY NAME] is committed to providing a fully accessible website experience for all users of all abilities, including those who rely on assistive technologies like screen readers, screen enlargement software, and alternative keyboard input devices to navigate the web.', 'accessibility-checker' ) ),
×
54
                                __( 'Ongoing Efforts to Ensure Accessibility', 'accessibility-checker' ),
×
55
                                sprintf( __( 'We follow the <a href="https://www.w3.org/TR/WCAG21/">Web Content Accessibility Guidelines (WCAG) version 2.1</a> as our guiding principle for determining accessibility. These are internationally agreed-upon standards that cover a wide range of recommendations and best practices for making content useable. As we add new pages and functionality to our website, all designs, code, and content entry practices are checked against these standards.', 'accessibility-checker' ) ),
×
NEW
56
                                sprintf(
×
57
                                        /* translators: 1 - A link opening tag, 2 - link closing tag */
NEW
58
                                        __( 'Website accessibility is an ongoing process. We continually test content and features for WCAG 2.1 Level AA compliance and remediate any issues to ensure we meet or exceed the standards. Testing of our website is performed by our team members using industry-standard tools such as the %1$sAccessibility Checker WordPress Plugin%2$s, color contrast analyzers, keyboard-only navigation techniques, and Flesch-Kincaid readability tests.', 'accessibility-checker' ),
×
NEW
59
                                        '<a href="' . esc_url( 'https://a11ychecker.com/?utm_source=accessibility-checker&utm_medium=software&utm_campaign=wordpress-general' ) . '">',
×
NEW
60
                                        '</a>'
×
NEW
61
                                ),
×
62
                                __( 'Accessibility Features On Our Website', 'accessibility-checker' ),
×
63
                                __( 'The following is a list of items we have included in our website to improve its accessibility:', 'accessibility-checker' ),
×
64
                                __( '[LIST ACCESSIBILITY FEATURES HERE]', 'accessibility-checker' ),
×
65
                                __( 'Where We\'re Improving', 'accessibility-checker' ),
×
66
                                __( 'In our efforts to bring our website up to standard, we are targeting the following areas:', 'accessibility-checker' ),
×
67
                                __( '[LIST ITEMS YOU\'RE WORKING TO FIX HERE]', 'accessibility-checker' ),
×
68
                                __( '[IT MAY HELP TO REVIEW THE OPEN ISSUES TAB TO SEE THE MOST COMMON PROBLEMS]', 'accessibility-checker' ),
×
69
                                sprintf( __( 'This is part of our broader effort to make everyone\'s experience at [COMPANY NAME] a welcoming and enjoyable one. Please note that while we make every effort to provide information accessible for all users, we cannot guarantee the accessibility of third party websites to which we may link.', 'accessibility-checker' ) ),
×
70
                                __( 'Accessibility Support Contact', 'accessibility-checker' ),
×
71
                                sprintf( __( 'We welcome comments, questions, and feedback on our website. If you are using assistive technologies and are having difficulty using our website, please email [YOUR ACCESSIBILITY EMAIL ADDRESS] or give us a call at [YOUR PHONE NUMBER]. We will do our best to assist you and resolve issues.', 'accessibility-checker' ) )
×
72
                        );
×
73

74
                        $page = [
×
75
                                'post_title'   => $title,
×
76
                                'post_status'  => 'draft',
×
77
                                'post_author'  => $author_id,
×
78
                                'post_name'    => $slug,
×
79
                                'post_content' => $content,
×
80
                                'post_type'    => 'page',
×
81
                        ];
×
82

83
                        wp_insert_post( $page );
×
84
                }
85
        }
86
}
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