99% a11y-kit

Code Review | A11y Kit

WordPress plugin A11y Kit scored 99% from 54 tests.

About plugin

  • Plugin page: a11y-kit
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8.2
  • WordPress version: 5.9.2
  • First release: Jun 2, 2021
  • Latest release: Jan 3, 2022
  • Number of updates: 11
  • Update frequency: every 19.6 days
  • Top authors: multimedianj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 355 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼297.85ms] Passed 4 tests

Server-side resources used by A11y Kit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1053.67 ▲1.15
Dashboard /wp-admin3.45 ▲0.0432.65 ▼1.35
Posts /wp-admin/edit.php3.67 ▲0.0436.94 ▼0.51
Add New Post /wp-admin/post-new.php6.91 ▼0.0692.25 ▼1,188.94
Media Library /wp-admin/upload.php3.33 ▲0.0324.70 ▼0.60

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for A11y Kit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,905 ▲16016.58 ▲0.5610.21 ▲4.324.23 ▲2.07
Dashboard /wp-admin2,895 ▲346.03 ▼0.14120.34 ▼23.54157.20 ▼14.04
Posts /wp-admin/edit.php2,694 ▲103.22 ▼0.0165.22 ▲0.03140.95 ▲0.68
Add New Post /wp-admin/post-new.php1,661 ▼5822.33 ▲0.29432.72 ▲16.98163.32 ▲6.22
Media Library /wp-admin/upload.php1,698 ▼05.49 ▼0.04137.48 ▲6.15184.25 ▲0.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === a11y-kit === )
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in a11y-kit/assets to your readme.txt
The official readme.txt might help

a11y-kit/a11y-kit.php Passed 13 tests

Analyzing the main PHP file in "A11y Kit" version 1.1.0
49 characters long description:
Make accessibility a part of your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,485 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON1001,175
PHP992349138
CSS2918109
JavaScript226763

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.16
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods19
▷ Static methods210.53%
▷ Public methods1578.95%
▷ Protected methods00.00%
▷ Private methods421.05%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin