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.02MB] [CPU: ▼6.42ms] Passed 4 tests
Server-side resources used by tidyDOM Accessibility Reports
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.58 ▼4.52 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.10 ▼11.33 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.11 ▼2.04 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.50 ▼7.77 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.60 ▲5.38 |
Report /wp-admin/admin.php?page=tidydom-accessibility | 3.24 | 30.33 |
Settings /wp-admin/admin.php?page=tidydom-settings | 3.25 | 33.14 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by tidyDOM Accessibility Reports
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.26 ▼0.99 | 1.69 ▼0.11 | 43.43 ▼3.34 |
Dashboard /wp-admin | 2,233 ▲45 | 5.85 ▲0.04 | 110.71 ▼5.77 | 40.86 ▼3.95 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.01 ▲0.02 | 39.79 ▲3.97 | 35.43 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.05 ▼0.06 | 652.54 ▼20.31 | 51.22 ▼0.33 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.20 ▼0.02 | 102.52 ▼64.34 | 44.64 ▼10.09 |
Report /wp-admin/admin.php?page=tidydom-accessibility | 803 | 1.89 | 26.71 | 22.46 |
Settings /wp-admin/admin.php?page=tidydom-settings | 911 | 2.17 | 22.67 | 24.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tidydom/admin/partials/settings-page.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tidydom/admin/partials/app-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tidydom/admin/partials/settings-instructions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tidydom/admin/partials/field-allowed-roles.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tidydom/admin/partials/field-api-key.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: reports, reportings, accessibility, ada, wcag
tidydom/tidydom.php Passed 13 tests
"tidyDOM Accessibility Reports" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
97 characters long description:
Connect WordPress to the tidyDOM accessibility testing service to display statistics and reports.
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
Everything looks great! No dangerous files found in this plugin1,965 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Svelte | 8 | 93 | 0 | 697 |
PHP | 17 | 159 | 608 | 656 |
CSS | 1 | 67 | 1 | 595 |
JavaScript | 3 | 5 | 1 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 32 | 76.19% |
▷ Protected methods | 5 | 11.90% |
▷ Private methods | 5 | 11.90% |
Functions | 9 | |
▷ Named functions | 3 | 33.33% |
▷ Anonymous functions | 6 | 66.67% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin