94% a11y-speech-synthesis

Code Review | Accessibility (a11y) Speech Synthesis

WordPress plugin Accessibility (a11y) Speech Synthesis scored 94% from 54 tests.

About plugin

  • Plugin page: a11y-speech-synth...
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2+
  • WordPress version: 5.9.2
  • First release: Jun 18, 2015
  • Latest release: Sep 23, 2017
  • Number of updates: 4
  • Update frequency: every 207.3 days
  • Top authors: westonruter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,288 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼298.67ms] Passed 4 tests

Server-side resources used by Accessibility (a11y) Speech Synthesis
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.49 ▲4.05
Dashboard /wp-admin3.41 ▲0.0033.69 ▼1.28
Posts /wp-admin/edit.php3.64 ▲0.0037.02 ▼6.92
Add New Post /wp-admin/post-new.php6.88 ▼0.0993.25 ▼1,183.73
Media Library /wp-admin/upload.php3.30 ▲0.0022.96 ▼2.74

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Accessibility (a11y) Speech Synthesis
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,766 ▲1216.01 ▲0.415.87 ▼1.792.42 ▼0.13
Dashboard /wp-admin2,898 ▲406.11 ▼0.07112.64 ▼24.07151.02 ▼9.90
Posts /wp-admin/edit.php2,694 ▲33.25 ▲0.0165.17 ▲0.83142.85 ▼0.35
Add New Post /wp-admin/post-new.php1,663 ▼8916.11 ▼4.88416.01 ▼46.27154.66 ▼2.95
Media Library /wp-admin/upload.php1,701 ▲35.56 ▲0.13146.56 ▲8.08190.80 ▲4.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a11y-speech-synthesis/a11y-speech-synthesis.php:50

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 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tested up to: Invalid version format
Please take inspiration from this readme.txt

a11y-speech-synthesis/a11y-speech-synthesis.php 92% from 13 tests

The entry point to "Accessibility (a11y) Speech Synthesis" version 0.2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected34 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1101621
PHP143313

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin