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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.06 | 30.05 ▼10.73 |
Dashboard /wp-admin | 3.38 ▲0.08 | 64.98 ▲13.06 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 56.15 ▲5.46 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 98.74 ▼3.85 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 38.47 ▲1.80 |
Screen Reader settings /wp-admin/plugins.php?page=screenreader-key-config | 3.62 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,111 ▲350 | 13.74 ▼0.84 | 18.34 ▲16.61 | 46.00 ▲3.39 |
Dashboard /wp-admin | 2,234 ▲54 | 5.83 ▲0.16 | 104.78 ▲11.06 | 49.78 ▲8.52 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.26 ▲0.31 | 40.64 ▼0.39 | 37.83 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,556 ▼133 | 23.40 ▼0.61 | 651.49 ▲46.71 | 29.72 ▼28.62 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.42 ▲0.28 | 105.98 ▲0.18 | 49.67 ▲3.97 |
Screen Reader settings /wp-admin/plugins.php?page=screenreader-key-config | 1,164 | 2.36 | 47.28 | 35.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 199 | 830 | 948 |
JavaScript | 11 | 55 | 223 | 605 |
INI | 1 | 42 | 3 | 126 |
SVG | 37 | 0 | 1 | 80 |
HTML | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
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 code | 0.42 |
Average class complexity | 20.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 7 | 13.21% |
▷ Public methods | 44 | 83.02% |
▷ Protected methods | 3 | 5.66% |
▷ Private methods | 6 | 11.32% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libraries/controller/css/images/ni_reset.png | 1.16KB | 0.46KB | ▼ 60.56% |
libraries/controller/css/images/decrease_elegant.png | 3.10KB | 0.75KB | ▼ 75.70% |
libraries/controller/css/images/reset_elegant.png | 3.21KB | 0.86KB | ▼ 73.26% |
libraries/controller/css/images/ni_decrease.png | 1.14KB | 0.42KB | ▼ 63.28% |
libraries/controller/css/images/acc_stop.png | 2.75KB | 1.76KB | ▼ 35.84% |