Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼33.67ms] Passed 4 tests
Server-side resources used by Accessibility
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 35.90 ▼3.41 |
Dashboard /wp-admin | 3.05 ▼0.26 | 24.36 ▼21.71 |
Posts /wp-admin/edit.php | 3.05 ▼0.31 | 23.75 ▼23.47 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.84 | 22.58 ▼75.05 |
Media Library /wp-admin/upload.php | 3.05 ▼0.18 | 22.40 ▼14.46 |
Attachments alt /wp-admin/admin.php?page=oc-accessibility-media | 3.05 | 25.73 |
Accessibility /wp-admin/admin.php?page=oc-accessibility-admin | 3.05 | 22.61 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Accessibility
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲115 | 13.70 ▼0.76 | 5.57 ▲3.72 | 39.70 ▼7.62 |
Dashboard /wp-admin | 2,232 ▲44 | 5.79 ▲0.72 | 104.50 ▼5.68 | 38.83 ▼2.72 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.15 ▲0.09 | 39.51 ▲4.78 | 35.57 ▼0.17 |
Add New Post /wp-admin/post-new.php | 1,555 ▲41 | 23.34 ▲5.68 | 582.68 ▼46.12 | 52.81 ▲2.91 |
Media Library /wp-admin/upload.php | 1,414 ▲32 | 4.20 ▲0.03 | 97.16 ▼2.49 | 40.83 ▼5.03 |
Attachments alt /wp-admin/admin.php?page=oc-accessibility-media | 870 | 1.93 | 23.28 | 25.47 |
Accessibility /wp-admin/admin.php?page=oc-accessibility-admin | 908 | 2.05 | 24.16 | 38.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=oc-accessibility-admin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accessibility/includes/accessibility-attachments-alt.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accessibility/includes/accessibility-settings.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
accessibility/accessibility.php Passed 13 tests
Analyzing the main PHP file in "Accessibility" version 1.0.6
106 characters long description:
Accessibility Utility Widget - A high quality solution for making your WordPress website accessible ready.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin640 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 75 | 71 | 443 |
CSS | 1 | 3 | 5 | 110 |
PO File | 1 | 30 | 33 | 87 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 75.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 24.14% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 6.00KB | 3.20KB | ▼ 46.64% |
assets/images/text_logo.png | 6.31KB | 3.01KB | ▼ 52.30% |