Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.60MB] [CPU: ▲0.84ms] Passed 4 tests
This is a short check of server-side resources used by Accessibly - Wordpress Website Accessibility
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.58 | 40.15 ▼2.12 |
Dashboard /wp-admin | 3.92 ▲0.61 | 49.13 ▼2.20 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 50.78 ▲3.79 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.64 | 93.89 ▲4.07 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 39.88 ▲3.88 |
Server storage [IO: ▲5.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 410 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Accessibly - Wordpress Website Accessibility
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.27 ▼1.40 | 1.61 ▼0.31 | 41.97 ▼1.43 |
Dashboard /wp-admin | 2,235 ▲44 | 4.87 ▼0.04 | 112.35 ▲8.50 | 41.24 ▼1.60 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.04 ▲0.07 | 39.41 ▲3.11 | 37.42 ▲3.36 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.47 ▲5.22 | 614.59 ▼30.45 | 54.84 ▼2.36 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.28 ▲0.09 | 103.98 ▲7.36 | 42.35 ▼2.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/otm-accessibly/public/partials/accessibly-plugin-public-display.php
- 87× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/otm-accessibly/vendor/guzzlehttp/promises/src/TaskQueue.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/otm-accessibly/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php:11
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/otm-accessibly/vendor/guzzlehttp/psr7/src/ServerRequest.php:27
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/otm-accessibly/vendor/guzzlehttp/guzzle/src/Pool.php:24
- > PHP Fatal error
Uncaught Error: Class 'GrahamCampbell\\ResultType\\Result' not found in wp-content/plugins/otm-accessibly/vendor/graham-campbell/result-type/src/Error.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Parser\\ParserInterface' not found in wp-content/plugins/otm-accessibly/vendor/vlucas/phpdotenv/src/Parser/Parser.php:12
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/otm-accessibly/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/otm-accessibly/vendor/guzzlehttp/promises/src/CancellationException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/otm-accessibly/vendor/psr/http-client/src/NetworkExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/otm-accessibly/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% 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
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in otm-accessibly/assets to your readme.txt
otm-accessibly/accessibly-plugin.php 77% from 13 tests
"Accessibly - Wordpress Website Accessibility" version 3.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.5")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("otm-accessibly.php" instead of "accessibly-plugin.php")
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected77,311 lines of code in 373 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 228 | 3,417 | 9,074 | 35,229 |
JSON | 26 | 0 | 0 | 32,175 |
Markdown | 23 | 1,333 | 0 | 3,789 |
JSX | 29 | 195 | 47 | 2,755 |
CSS | 8 | 184 | 126 | 2,010 |
TypeScript | 35 | 56 | 62 | 746 |
JavaScript | 12 | 44 | 15 | 417 |
YAML | 6 | 22 | 3 | 98 |
SVG | 4 | 0 | 0 | 75 |
Dockerfile | 1 | 8 | 0 | 10 |
Sass | 1 | 0 | 0 | 7 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 12.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 35 | |
Traits | 3 | |
Classes | 146 | |
▷ Abstract classes | 2 | 1.37% |
▷ Concrete classes | 144 | 98.63% |
▷ Final classes | 79 | 54.86% |
Methods | 1,153 | |
▷ Static methods | 315 | 27.32% |
▷ Public methods | 967 | 83.87% |
▷ Protected methods | 4 | 0.35% |
▷ Private methods | 182 | 15.78% |
Functions | 320 | |
▷ Named functions | 178 | 55.62% |
▷ Anonymous functions | 142 | 44.38% |
Constants | 248 | |
▷ Global constants | 91 | 36.69% |
▷ Class constants | 157 | 63.31% |
▷ Public constants | 134 | 85.35% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/assets/images/website-preview.png | 13.78KB | 13.07KB | ▼ 5.14% |
static/favicon.png | 1.53KB | 1.50KB | ▼ 2.42% |