84% a11y-speech-synthesis

Code Review | Accessibility (a11y) Speech Synthesis

WordPress plugin Accessibility (a11y) Speech Synthesis scored84%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: 6.3.1
  • 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,604 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▼4.07ms] Passed 4 tests

Server-side resources used by Accessibility (a11y) Speech Synthesis
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.41 ▼2.70
Dashboard /wp-admin3.31 ▲0.0150.63 ▼1.39
Posts /wp-admin/edit.php3.37 ▲0.0044.31 ▼5.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0085.68 ▼6.52
Media Library /wp-admin/upload.php3.24 ▲0.0036.83 ▲3.35

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Accessibility (a11y) Speech Synthesis
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.35 ▼0.022.12 ▲0.4245.63 ▼0.12
Dashboard /wp-admin2,197 ▲235.56 ▼0.1697.10 ▼0.6944.39 ▲3.74
Posts /wp-admin/edit.php2,099 ▼11.97 ▼0.0336.51 ▼1.9336.24 ▲2.73
Add New Post /wp-admin/post-new.php1,530 ▲222.96 ▼0.08668.13 ▼41.5458.17 ▲8.85
Media Library /wp-admin/upload.php1,405 ▲54.22 ▲0.0897.14 ▼19.0644.95 ▼4.73

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tested up to: Version not formatted correctly
Please take inspiration from this readme.txt

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

The main file in "Accessibility (a11y) Speech Synthesis" v. 0.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin34 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1101621
PHP143313

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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
There were not PNG files found in your plugin