Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼14.18ms] Passed 4 tests
Server-side resources used by Ybug Feedback Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.07 | 41.60 ▼5.82 |
Dashboard /wp-admin | 3.41 ▲0.03 | 50.97 ▼33.56 |
Posts /wp-admin/edit.php | 3.53 ▲0.13 | 51.02 ▼2.61 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.07 | 86.93 ▼14.74 |
Media Library /wp-admin/upload.php | 3.34 ▲0.07 | 39.07 ▲2.57 |
Ybug /wp-admin/options-general.php?page=ybug | 3.28 | 32.01 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Ybug Feedback Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲40 | 14.35 ▲0.18 | 1.66 ▼0.03 | 44.00 ▲1.51 |
Dashboard /wp-admin | 2,203 ▲29 | 5.61 ▲0.04 | 85.13 ▼6.10 | 42.49 ▲0.80 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.99 ▼0.02 | 34.30 ▼7.51 | 36.59 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.23 ▼0.24 | 674.44 ▲18.13 | 48.43 ▼7.00 |
Media Library /wp-admin/upload.php | 1,405 ▲2 | 4.20 ▲0.03 | 99.12 ▼1.98 | 43.47 ▲0.91 |
Ybug /wp-admin/options-general.php?page=ybug | 918 | 2.19 | 25.90 | 31.22 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ybug
- > Notice in wp-content/plugins/ybug-feedback-widget/admin/class-ybug-admin.php+151
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=ybug
- > Notice in wp-content/plugins/ybug-feedback-widget/admin/class-ybug-admin.php+76
Undefined index: roles
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: feedback widget, visual feedback, screenshot, user feedback, feedback...
ybug-feedback-widget/ybug.php 69% from 13 tests
The primary PHP file in "Ybug Feedback Widget" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ybug-feedback-widget.php" instead of "ybug.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("3.0.1" instead of "3.1")
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
Good job! No executable or dangerous file extensions detected334 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 127 | 403 | 285 |
SVG | 2 | 0 | 0 | 26 |
JavaScript | 1 | 1 | 0 | 14 |
CSS | 1 | 1 | 0 | 9 |
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.20 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 1 | 3.57% |
▷ Private methods | 4 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin