Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼1.94ms] Passed 4 tests
An overview of server-side resources used by Button visually impaired
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 46.16 ▲0.86 |
Dashboard /wp-admin | 3.70 ▲0.39 | 47.96 ▼2.24 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 54.16 ▲4.67 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 89.52 ▼8.44 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 37.93 ▲2.05 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
bvi-option |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Button visually impaired
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.28 ▼1.48 | 5.28 ▲3.65 | 42.93 ▲5.56 |
Dashboard /wp-admin | 2,221 ▲33 | 5.86 ▲0.96 | 106.64 ▼3.72 | 43.50 ▼1.77 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.04 ▲0.07 | 39.55 ▲0.31 | 34.62 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,543 ▼2 | 23.08 ▲4.73 | 658.86 ▲28.83 | 46.84 ▼4.27 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.18 ▼0.08 | 94.49 ▼4.27 | 40.34 ▼2.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Bvi\\Core\\Core' not found in wp-content/plugins/button-visually-impaired/include/src/Core/Activate.php:17
- > PHP Fatal error
Uncaught Error: Class 'Bvi\\Core\\Core' not found in wp-content/plugins/button-visually-impaired/functions.php:2
- > PHP Fatal error
Uncaught Error: Class 'Bvi\\Core\\Core' not found in wp-content/plugins/button-visually-impaired/include/src/Core/FieldsAdmin/Fields.php:19
- > PHP Fatal error
Uncaught Error: Class 'Bvi\\Core\\Core' not found in wp-content/plugins/button-visually-impaired/include/src/Core/Admin.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/button-visually-impaired/include/src/Core/Widget.php:17
- > PHP Fatal error
Uncaught Error: Class 'Bvi\\Core\\FieldsAdmin\\Fields' not found in wp-content/plugins/button-visually-impaired/include/src/Core/FieldsAdmin/Text.php:17
- > PHP Fatal error
Uncaught Error: Class 'Bvi\\Core\\Core' not found in wp-content/plugins/button-visually-impaired/include/src/Core/Upgrade.php:17
- > PHP Fatal error
Uncaught Error: Class 'Bvi\\Core\\FieldsAdmin\\Fields' not found in wp-content/plugins/button-visually-impaired/include/src/Core/FieldsAdmin/Select.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function Bvi\\Core\\get_option() in wp-content/plugins/button-visually-impaired/include/src/Core/Core.php:60
- > PHP Fatal error
Uncaught Error: Class 'Bvi\\Core\\Core' not found in wp-content/plugins/button-visually-impaired/include/src/Core/Bvi.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
button-visually-impaired/Button-visually-impaired.php 77% from 13 tests
"Button visually impaired" version 2.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("button-visually-impaired.php" instead of "Button-visually-impaired.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 679 characters long)
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
There were no executable files found in this plugin5,747 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 3 | 11 | 2,195 |
PHP | 27 | 329 | 724 | 1,642 |
JavaScript | 2 | 353 | 154 | 1,568 |
PO File | 1 | 64 | 69 | 198 |
Markdown | 1 | 41 | 0 | 100 |
JSON | 2 | 0 | 0 | 35 |
SVG | 9 | 0 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 22 | 26.51% |
▷ Public methods | 79 | 95.18% |
▷ Protected methods | 1 | 1.20% |
▷ Private methods | 3 | 3.61% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
Constants | 8 | |
▷ Global constants | 4 | 50.00% |
▷ Class constants | 4 | 50.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin