78% epow-custom-product-options-for-woocommerce

Code Review | EPOW - Custom Product Options for WooCommerce

WordPress plugin EPOW - Custom Product Options for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: epow-custom-produ...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 2, 2022
  • Latest release: Jul 3, 2023
  • Number of updates: 10
  • Update frequency: every 24.7 days
  • Top authors: thanhtd (80%)villatheme (30%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /513 total downloads

Benchmarks

Plugin footprint 83% from 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.18MB] [CPU: ▼2.10ms] Passed 4 tests

An overview of server-side resources used by EPOW - Custom Product Options for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1935.65 ▼4.62
Dashboard /wp-admin3.48 ▲0.1852.96 ▲4.92
Posts /wp-admin/edit.php3.60 ▲0.2451.12 ▲4.86
Add New Post /wp-admin/post-new.php6.07 ▲0.1885.11 ▼9.34
Media Library /wp-admin/upload.php3.41 ▲0.1835.34 ▲0.69

Server storage [IO: ▲7.07MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

EPOW - Custom Product Options for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.36 ▲0.041.65 ▼0.0739.71 ▲0.83
Dashboard /wp-admin2,206 ▲345.64 ▼0.1584.58 ▼18.2839.58 ▼7.89
Posts /wp-admin/edit.php2,112 ▲121.98 ▼0.0240.06 ▲5.2637.78 ▼2.60
Add New Post /wp-admin/post-new.php1,543 ▲1218.31 ▼4.58610.80 ▼41.4467.90 ▲12.03
Media Library /wp-admin/upload.php1,402 ▼14.20 ▲0.0095.83 ▼2.2743.66 ▼0.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/epow-custom-product-options-for-woocommerce/templates/fields/select.php
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/epow-custom-product-options-for-woocommerce/templates/fields/number.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/epow-custom-product-options-for-woocommerce/templates/fields/url.php:7
    • > PHP Notice
      Undefined variable: field_attributes in wp-content/plugins/epow-custom-product-options-for-woocommerce/templates/fields/select.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/epow-custom-product-options-for-woocommerce/templates/final-total-box.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/epow-custom-product-options-for-woocommerce/templates/fields/checkbox.php:11
    • > PHP Notice
      Undefined variable: field_attributes in wp-content/plugins/epow-custom-product-options-for-woocommerce/templates/fields/textarea.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/epow-custom-product-options-for-woocommerce/templates/fields/tel.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/epow-custom-product-options-for-woocommerce/templates/fields/radio.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/epow-custom-product-options-for-woocommerce/templates/fields/textarea.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/epow-custom-product-options-for-woocommerce/templates/fields/text.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce, wordpress, option, extra option, product option

epow-custom-product-options-for-woocommerce/epow-custom-product-options-for-woocommerce.php 92% from 13 tests

The primary PHP file in "EPOW - Custom Product Options for WooCommerce" version 1.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 204 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected127,049 lines of code in 82 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2513,67413,428121,319
PHP256442993,589
SVG1041,514
CSS2843151408
Sass3491219

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity55.00
▷ Minimum class complexity5.00
▷ Maximum class complexity177.00
Average method complexity7.21
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods113
▷ Static methods2925.66%
▷ Public methods10189.38%
▷ Protected methods76.19%
▷ Private methods54.42%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin