78% screen-reader-with-fontsize

Code Review | Screen Reader Accessibility

WordPress plugin Screen Reader Accessibility scored78%from 54 tests.

About plugin

  • Plugin page: screen-reader-wit...
  • Plugin version: 3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 26, 2016
  • Latest release: Oct 13, 2023
  • Number of updates: 107
  • Update frequency: every 26.3 days
  • Top authors: John Dagelmore (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

600+ active /15,343 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.04MB] [CPU: ▼1.83ms] Passed 4 tests

This is a short check of server-side resources used by Screen Reader Accessibility
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0630.05 ▼10.73
Dashboard /wp-admin3.38 ▲0.0864.98 ▲13.06
Posts /wp-admin/edit.php3.43 ▲0.0756.15 ▲5.46
Add New Post /wp-admin/post-new.php5.98 ▲0.0998.74 ▼3.85
Media Library /wp-admin/upload.php3.31 ▲0.0738.47 ▲1.80
Screen Reader settings /wp-admin/plugins.php?page=screenreader-key-config3.6235.82

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 106 new files
Database: 1 new table, 6 new options
New tables
wp_screenreader_config
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Screen Reader Accessibility
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,111 ▲35013.74 ▼0.8418.34 ▲16.6146.00 ▲3.39
Dashboard /wp-admin2,234 ▲545.83 ▲0.16104.78 ▲11.0649.78 ▲8.52
Posts /wp-admin/edit.php2,144 ▲442.26 ▲0.3140.64 ▼0.3937.83 ▼0.06
Add New Post /wp-admin/post-new.php1,556 ▼13323.40 ▼0.61651.49 ▲46.7129.72 ▼28.62
Media Library /wp-admin/upload.php1,442 ▲424.42 ▲0.28105.98 ▲0.1849.67 ▲3.97
Screen Reader settings /wp-admin/plugins.php?page=screenreader-key-config1,1642.3647.2835.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/plugins.php?page=screenreader-key-config
    • > Notice in wp-content/plugins/screen-reader-with-fontsize/admin.php+285
    Undefined variable: titleString
    • > GET request to /wp-admin/plugins.php?page=screenreader-key-config
    • > Notice in wp-content/plugins/screen-reader-with-fontsize/admin.php+285
    Undefined variable: descriptionString

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
The following issues need your attention
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined index: text in wp-content/plugins/screen-reader-with-fontsize/libraries/tts/proxy.php on line 12
    • > PHP Notice
      Undefined index: token in wp-content/plugins/screen-reader-with-fontsize/libraries/tts/proxy.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/screen-reader-with-fontsize/admin.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/screen-reader-with-fontsize/screenreader.php:123
    • > PHP Notice
      Undefined index: lang in wp-content/plugins/screen-reader-with-fontsize/libraries/tts/proxy.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: wcag, screenreader, accessibility, audio, font size...

screen-reader-with-fontsize/screenreader.php 85% from 13 tests

The main PHP script in "Screen Reader Accessibility" version 3.8 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("screen-reader-with-fontsize.php" instead of "screenreader.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 321 characters long)

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
No dangerous file extensions were detected1,762 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
PHP9199830948
JavaScript1155223605
INI1423126
SVG370180
HTML2002
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity20.17
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods53
▷ Static methods713.21%
▷ Public methods4483.02%
▷ Protected methods35.66%
▷ Private methods611.32%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
28 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libraries/controller/css/images/ni_reset.png1.16KB0.46KB▼ 60.56%
libraries/controller/css/images/decrease_elegant.png3.10KB0.75KB▼ 75.70%
libraries/controller/css/images/reset_elegant.png3.21KB0.86KB▼ 73.26%
libraries/controller/css/images/ni_decrease.png1.14KB0.42KB▼ 63.28%
libraries/controller/css/images/acc_stop.png2.75KB1.76KB▼ 35.84%