Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.96ms] Passed 4 tests
This is a short check of server-side resources used by Accessibility Enabler
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.55 ▼6.30 |
Dashboard /wp-admin | 3.32 ▼0.02 | 41.05 ▼22.70 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.08 ▼1.47 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 89.42 ▼9.38 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.43 ▲3.85 |
Accessibility Enabler /wp-admin/options-general.php?page=a11y-enabler | 3.25 | 30.03 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Accessibility Enabler
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.80 ▲0.51 | 1.88 ▲0.13 | 41.09 ▼2.24 |
Dashboard /wp-admin | 2,210 ▲22 | 5.81 ▼0.06 | 94.90 ▼4.40 | 41.98 ▼0.43 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 1.99 ▼0.04 | 40.31 ▲6.27 | 33.90 ▼2.86 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.16 ▲0.08 | 652.91 ▼22.93 | 52.54 ▼13.36 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.19 ▲0.01 | 94.99 ▼4.06 | 41.23 ▼2.91 |
Accessibility Enabler /wp-admin/options-general.php?page=a11y-enabler | 900 | 2.01 | 21.44 | 32.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/accessibility-enabler/public/partials/a11y-enabler-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > 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 just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
accessibility-enabler/a11y-enabler.php 85% from 13 tests
The main PHP script in "Accessibility Enabler" version 1.8.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected301 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 208 | 585 | 295 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
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