Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.38ms] Passed 4 tests
Server-side resources used by WP Accessibility
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 36.54 ▼8.12 |
Dashboard /wp-admin | 3.39 ▲0.05 | 50.85 ▼8.28 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.22 ▲2.34 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 92.91 ▲4.60 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 32.95 ▼3.45 |
WP Accessibility /wp-admin/admin.php?page=wp-accessibility | 3.27 | 37.21 |
Get Help /wp-admin/admin.php?page=wp-accessibility-help | 3.27 | 32.35 |
Accessibility Stats /wp-admin/edit.php?post_type=wpa-stats | 3.41 | 42.44 |
Stats Types /wp-admin/edit-tags.php?taxonomy=wpa-stats-type&post_type=wpa-stats | 3.38 | 37.83 |
Server storage [IO: ▲0.47MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 63 new files
Database: no new tables, 20 new options
New WordPress options |
---|
db_upgraded |
asl_styles_passive |
widget_theysaidso_widget |
wpa_focus |
widget_recent-comments |
asl_styles_focus |
wpa-stats-type_children |
theysaidso_admin_options |
wpa_tabindex |
wpa_continue |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Accessibility
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,115 ▲343 | 13.92 ▼0.45 | 16.60 ▲14.34 | 39.76 ▼12.07 |
Dashboard /wp-admin | 2,387 ▲210 | 5.83 ▲0.14 | 96.24 ▼0.32 | 50.03 ▲6.58 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 1.96 ▼0.05 | 39.26 ▼0.19 | 34.25 ▲1.78 |
Add New Post /wp-admin/post-new.php | 6,282 ▲4,756 | 26.18 ▲3.19 | 933.36 ▲255.56 | 58.06 ▲3.38 |
Media Library /wp-admin/upload.php | 1,454 ▲60 | 4.19 ▼0.01 | 96.86 ▼7.46 | 42.26 ▼3.80 |
WP Accessibility /wp-admin/admin.php?page=wp-accessibility | 2,156 | 5.71 | 140.89 | 80.87 |
Get Help /wp-admin/admin.php?page=wp-accessibility-help | 1,339 | 3.64 | 75.22 | 48.03 |
Accessibility Stats /wp-admin/edit.php?post_type=wpa-stats | 1,780 | 2.24 | 37.04 | 29.72 |
Stats Types /wp-admin/edit-tags.php?taxonomy=wpa-stats-type&post_type=wpa-stats | 1,548 | 2.13 | 29.57 | 34.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-posts
- asl_default_styles
- db_upgraded
- widget_theysaidso_widget
- wpa-stats-type_children
- wpa_post_types
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-accessibility/wp-accessibility-stats.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-accessibility/wp-accessibility.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-accessibility/templates/longdesc-template.php:18
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wp-accessibility/wp-accessibility.php Passed 13 tests
The main PHP script in "WP Accessibility" version 2.1.4 is automatically included on every request by WordPress
83 characters long description:
Helps improve accessibility in your WordPress site, like removing title attributes.
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
Success! There were no dangerous files found in this plugin4,957 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 231 | 953 | 2,390 |
CSS | 12 | 304 | 121 | 1,615 |
JavaScript | 13 | 68 | 70 | 805 |
JSON | 1 | 0 | 0 | 119 |
SVG | 4 | 0 | 3 | 28 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 82 | |
▷ Named functions | 80 | 97.56% |
▷ Anonymous functions | 2 | 2.44% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
toolbar/fonts/css/PNG/icon-fontsize.png | 0.17KB | 0.13KB | ▼ 23.53% |
toolbar/fonts/css/PNG/icon-contrast.png | 0.71KB | 0.40KB | ▼ 43.47% |
imgs/Equalize-Digital-Accessibility-Emblem-400x400-1.png | 8.85KB | 9.29KB | 0.00% |
imgs/awd-logo-disc.png | 11.02KB | 4.69KB | ▼ 57.43% |
toolbar/fonts/css/PNG/icon-saturation.png | 0.67KB | 0.36KB | ▼ 45.96% |