93% e-product-feedback

Code Review | woocommerce-product-feedback

WordPress plugin woocommerce-product-feedback scored 93% from 54 tests.

About plugin

  • Plugin page: e-product-feedback
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.1
  • WordPress version: 5.8.1
  • First release: Feb 1, 2018
  • Latest release: May 27, 2019
  • Number of updates: 24
  • Update frequency: every 20.0 days
  • Top authors: upadalavipul (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 597 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1336.76 ▲1.77
Dashboard /wp-admin3.07 ▲0.0248.31 ▼3.76
Posts /wp-admin/edit.php3.12 ▲0.0145.78 ▼3.08
Add New Post /wp-admin/post-new.php5.43 ▼0.0188.66 ▼592.07
Media Library /wp-admin/upload.php3.01 ▲0.0135.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,871 ▲29917.11 ▲1.5015.69 ▲2.4949.62 ▼5.27
Dashboard /wp-admin2,976 ▲426.34 ▲0.27146.71 ▼7.96140.95 ▲11.60
Posts /wp-admin/edit.php2,772 ▲332.88 ▲0.0766.39 ▼9.7487.13 ▼5.66
Add New Post /wp-admin/post-new.php1,696 ▼1,99918.88 ▲0.49383.79 ▼118.41110.86 ▼6.01
Media Library /wp-admin/upload.php1,763 ▼445.44 ▲0.43128.29 ▼27.93152.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

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


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: The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/if_feedback_88405.png0.60KB0.40KB▼ 32.95%
css/icons8-Close Window-48.png0.54KB0.49KB▼ 8.83%
images/fancybox_overlay.png0.98KB0.09KB▼ 90.43%