Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼143.03ms] Passed 4 tests
Analyzing server-side resources used by Accessibility Enabler
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.12 | 24.70 ▲6.25 |
Dashboard /wp-admin | 3.07 ▲0.01 | 30.00 ▼5.82 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 32.69 ▲2.89 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.00 | 68.32 ▼569.05 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 22.18 ▼0.15 |
Accessibility Enabler /wp-admin/options-general.php?page=a11y-enabler | 3.03 | 24.75 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Accessibility Enabler
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,706 ▲105 | 15.98 ▼0.00 | 6.44 ▼0.02 | 75.89 ▼1.07 |
Dashboard /wp-admin | 2,935 ▲42 | 6.18 ▼0.01 | 115.31 ▼17.68 | 168.42 ▼4.59 |
Posts /wp-admin/edit.php | 2,742 ▲36 | 3.24 ▼0.01 | 64.14 ▼2.03 | 138.66 ▼2.19 |
Add New Post /wp-admin/post-new.php | 3,810 ▲74 | 18.80 ▲0.22 | 412.94 ▼21.20 | 155.30 ▼8.45 |
Media Library /wp-admin/upload.php | 1,757 ▲5 | 5.55 ▲0.02 | 142.54 ▲3.08 | 183.76 ▼1.57 |
Accessibility Enabler /wp-admin/options-general.php?page=a11y-enabler | 1,221 | 2.41 | 53.21 | 132.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=a11y-enabler
- > Notice in wp-content/plugins/accessibility-enabler/admin/partials/plugin-a11y-enabler-display.php+69
Trying to access array offset on value of type bool
SRP 0% 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/accessibility-enabler/public/partials/a11y-enabler-public-display.php
- 1× 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/accessibility-enabler/admin/partials/plugin-a11y-enabler-display.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (27 tag instead of maximum 10); only the first 5 tags are used in your directory listing
accessibility-enabler/a11y-enabler.php 85% from 13 tests
The main PHP script in "Accessibility Enabler" version 1.5.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("accessibility-enabler.php" instead of "a11y-enabler.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin302 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 209 | 585 | 296 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 30 | |
▷ Static methods | 3 | 10.00% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
There were not PNG files found in your plugin