78% innovs-woo-manager

Code Review | WooCommerce Manager - Customize and Control Cart page, Add to Cart button, Checkout fields easily

WordPress plugin WooCommerce Manager - Customize and Control Cart page, Add to Cart button, Checkout fields easily scored78%from 54 tests.

About plugin

  • Plugin page: innovs-woo-manager
  • Plugin version: 1.2.4.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0.3
  • WordPress version: 6.3.1
  • First release: Sep 28, 2019
  • Latest release: Oct 30, 2022
  • Number of updates: 27
  • Update frequency: every 41.8 days
  • Top authors: cscode (55.56%)innovs (48.15%)

Code review

54 tests

User reviews

14 reviews

Install metrics

400+ active /15,476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.27MB] [CPU: ▲0.47ms] Passed 4 tests

Server-side resources used by WooCommerce Manager - Customize and Control Cart page, Add to Cart button, Checkout fields easily
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2845.29 ▲5.51
Dashboard /wp-admin3.57 ▲0.2744.66 ▼6.05
Posts /wp-admin/edit.php3.68 ▲0.3347.50 ▼1.22
Add New Post /wp-admin/post-new.php6.17 ▲0.2895.90 ▲3.65
Media Library /wp-admin/upload.php3.49 ▲0.2639.68 ▲7.55
Increase Variation /wp-admin/admin.php?page=slug_increase_product_variation3.4631.45
Single Product /wp-admin/admin.php?page=slug_single_product3.4936.85
Product title price /wp-admin/admin.php?page=slug_product_title_price3.4834.77
Checkout Fileds /wp-admin/admin.php?page=slug_checkout_field3.5130.77
Woo Manager /wp-admin/admin.php?page=parent_menu_slug3.5239.19
/wp-admin/admin.php?page=slug_checkout_shipping_field3.5133.74

Server storage [IO: ▲4.06MB] [DB: ▲0.32MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 80 new files
Database: 3 new tables, 16 new options
New tables
wp_woo_manage_checkout_field
wp_woo_manage_checkout_shipping_field
wp_woo_manage_checkout_order_note
New WordPress options
woo_estimate_notice
grouped_button_text
simple_button_text
theysaidso_admin_options
variable_button_text
widget_recent-posts
woo_pro_notice
subs_button_text
can_compress_scripts
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Manager - Customize and Control Cart page, Add to Cart button, Checkout fields easily
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,996 ▲22514.37 ▼0.005.16 ▲2.9627.56 ▼15.50
Dashboard /wp-admin2,298 ▲1215.66 ▼0.24117.77 ▲6.6395.46 ▲38.25
Posts /wp-admin/edit.php2,206 ▲1142.58 ▲0.6048.77 ▲12.7365.17 ▲33.03
Add New Post /wp-admin/post-new.php1,593 ▲5123.86 ▲0.95759.32 ▲94.4133.36 ▼21.77
Media Library /wp-admin/upload.php1,486 ▲1044.93 ▲0.72104.14 ▲5.6668.36 ▲26.59
Increase Variation /wp-admin/admin.php?page=slug_increase_product_variation9592.2132.9036.04
Single Product /wp-admin/admin.php?page=slug_single_product2,0523.2576.0231.87
Product title price /wp-admin/admin.php?page=slug_product_title_price1,8893.0767.9233.45
Checkout Fileds /wp-admin/admin.php?page=slug_checkout_field2,6192.4742.3954.36
Woo Manager /wp-admin/admin.php?page=parent_menu_slug3,1293.45105.1131.02
/wp-admin/admin.php?page=slug_checkout_shipping_field2,3562.4637.4437.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 16 options
    • db_upgraded
    • subs_button_text
    • increase_variable_pro
    • widget_recent-posts
    • woo_estimate_notice
    • variable_button_text
    • widget_theysaidso_widget
    • external_button_text
    • grouped_button_text
    • widget_recent-comments
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/innovs-woo-manager/public/partials/innovs-woo-manager-public-display.php
    • > /wp-content/plugins/innovs-woo-manager/admin/partials/innovs-woo-manager-admin-display.php
  • 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/innovs-woo-manager/admin/partials/innovs-woo-add-cart-page-text.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/innovs-woo-manager/admin/partials/innovs-woo-product-title-price.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/innovs-woo-manager/admin/partials/innovs-woo-checkout-shipping-fields.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/innovs-woo-manager/includes/class-innovs-woo-manager-checkout-field.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/innovs-woo-manager/includes/innovs-woo-css.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/innovs-woo-manager/includes/class-innovs-woo-manager.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/innovs-woo-manager/admin/partials/innovs-woo-increase-product-variation.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/innovs-woo-manager/admin/partials/innovs-woo-checkout-order-fields.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/innovs-woo-manager/admin/partials/innovs-woo-checkout-fields.php:9
    • > PHP Notice
      Undefined variable: page in wp-content/plugins/innovs-woo-manager/admin/partials/innovs-woo-checkout-order-fields.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

innovs-woo-manager/innovs-woo-manager.php 85% from 13 tests

"WooCommerce Manager - Customize and Control Cart page, Add to Cart button, Checkout fields easily" version 1.2.4.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/language")
  • Description: The description should be shorter than 140 characters (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected9,382 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
SVG40166,599
PHP236208382,328
CSS46222293
JavaScript475131162

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.25
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods55
▷ Static methods712.73%
▷ Public methods4887.27%
▷ Protected methods00.00%
▷ Private methods712.73%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/icon-2.png2.35KB0.87KB▼ 62.99%
img/theinnovs.png50.31KB14.92KB▼ 70.35%
img/woo-logo.png7.45KB2.40KB▼ 67.83%