89% a11y-kit

Code Review | A11y Kit

WordPress plugin A11y Kit scored89%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: 6.3.1
  • 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 /653 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.93ms] Passed 4 tests

Analyzing server-side resources used by A11y Kit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.89 ▲0.51
Dashboard /wp-admin3.34 ▲0.0440.94 ▼6.37
Posts /wp-admin/edit.php3.45 ▲0.1046.89 ▲0.69
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.41 ▼14.87
Media Library /wp-admin/upload.php3.26 ▲0.0330.95 ▼3.00

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by A11y Kit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.70 ▼0.616.26 ▲4.5139.37 ▼5.57
Dashboard /wp-admin2,206 ▲154.86 ▼0.01111.99 ▼3.8143.11 ▼0.82
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0440.22 ▲2.6134.36 ▼1.59
Add New Post /wp-admin/post-new.php1,519 ▼023.19 ▼0.11642.66 ▼16.6659.54 ▲6.91
Media Library /wp-admin/upload.php1,385 ▼04.24 ▲0.07100.70 ▲0.7141.90 ▼2.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in a11y-kit/assets to your readme.txt
  • Plugin Name: Please specify the plugin name on the first line ( === a11y-kit === )
Please take inspiration from this readme.txt

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

The main PHP script in "A11y Kit" version 1.1.0 is automatically included on every request by WordPress
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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,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
This plugin has no cyclomatic complexity issues
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 are no PNG files in this plugin