83% xcompliant

Code Review | Web Accessibility - Free Accessibility Scan and Audit for ADA & WCAG 2.1 Compliance by XCompliant

WordPress plugin Web Accessibility - Free Accessibility Scan and Audit for ADA & WCAG 2.1 Compliance by XCompliant scored83%from 54 tests.

About plugin

  • Plugin page: xcompliant
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2022
  • Latest release: Mar 10, 2023
  • Number of updates: 13
  • Update frequency: every 10.4 days
  • Top authors: xcompliant (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

200+ active /1,603 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.23ms] 75% from 4 tests

Analyzing server-side resources used by Web Accessibility - Free Accessibility Scan and Audit for ADA & WCAG 2.1 Compliance by XCompliant
Please have a look at the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 661.12ms on /wp-admin/tools.php?page=XCompliant)
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.88 ▲2.72
Dashboard /wp-admin3.31 ▲0.0152.87 ▲0.94
Posts /wp-admin/edit.php3.36 ▲0.0145.49 ▼5.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.34 ▼20.35
Media Library /wp-admin/upload.php3.23 ▲0.0136.83 ▼0.45
XCompliant /wp-admin/tools.php?page=XCompliant3.22661.12

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
XCompliant_Token

Browser metrics Passed 4 tests

A check of browser resources used by Web Accessibility - Free Accessibility Scan and Audit for ADA & WCAG 2.1 Compliance by XCompliant
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.62 ▲0.261.96 ▲0.1836.18 ▼4.61
Dashboard /wp-admin2,196 ▲165.54 ▼0.0382.55 ▼14.4740.13 ▼2.69
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0435.71 ▲0.4037.56 ▲4.68
Add New Post /wp-admin/post-new.php1,531 ▲522.89 ▼0.41633.57 ▼35.2950.54 ▼7.78
Media Library /wp-admin/upload.php1,398 ▼54.20 ▼0.0799.28 ▼7.4441.99 ▼0.80
XCompliant /wp-admin/tools.php?page=XCompliant1,60911.94196.5459.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • XCompliant_Token
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xcompliant/xcompliant.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can take inspiration from this readme.txt

xcompliant/xcompliant.php 85% from 13 tests

The main PHP file in "Web Accessibility - Free Accessibility Scan and Audit for ADA & WCAG 2.1 Compliance by XCompliant" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Plugin Name: Keep the plugin name shorter than 70 characters (currently 97 characters long)
  • Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin315 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG100154
PHP34335135
CSS10022
HTML1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin