Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼150.10ms] Passed 4 tests
This is a short check of server-side resources used by woocommerce-product-feedback
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 36.76 ▲1.77 |
Dashboard /wp-admin | 3.07 ▲0.02 | 48.31 ▼3.76 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.78 ▼3.08 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 88.66 ▼592.07 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 35.36 ▼1.47 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
woocommerce-product-feedback: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,871 ▲299 | 17.11 ▲1.50 | 15.69 ▲2.49 | 49.62 ▼5.27 |
Dashboard /wp-admin | 2,976 ▲42 | 6.34 ▲0.27 | 146.71 ▼7.96 | 140.95 ▲11.60 |
Posts /wp-admin/edit.php | 2,772 ▲33 | 2.88 ▲0.07 | 66.39 ▼9.74 | 87.13 ▼5.66 |
Add New Post /wp-admin/post-new.php | 1,696 ▼1,999 | 18.88 ▲0.49 | 383.79 ▼118.41 | 110.86 ▼6.01 |
Media Library /wp-admin/upload.php | 1,763 ▼44 | 5.44 ▲0.43 | 128.29 ▼27.93 | 152.55 ▲29.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/e-product-feedback/include/admin-settings-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-product-feedback/include/woocomerce-product-feednack-post.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-product-feedback/include/main-functionality-code-file.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-product-feedback/include/prouduct-feedback-button-add.php:55
- > 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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in e-product-feedback/assets to your readme.txt
e-product-feedback/woocommerce-products-feedback.php 77% from 13 tests
"woocommerce-product-feedback" version 2.0.0'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
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("e-product-feedback.php" instead of "woocommerce-products-feedback.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected343 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 8 | 63 | 228 |
JavaScript | 1 | 6 | 3 | 83 |
CSS | 1 | 0 | 0 | 32 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/if_feedback_88405.png | 0.60KB | 0.40KB | ▼ 32.95% |
css/icons8-Close Window-48.png | 0.54KB | 0.49KB | ▼ 8.83% |
images/fancybox_overlay.png | 0.98KB | 0.09KB | ▼ 90.43% |