84% ni-woocommerce-product-variations-table

Code Review | Ni WooCommerce Product Variations Table

WordPress plugin Ni WooCommerce Product Variations Table scored 84% from 54 tests.

About plugin

  • Plugin page: ni-woocommerce-pr...
  • Plugin version: 1.6.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Jan 3, 2018
  • Latest release: Aug 28, 2023
  • Number of updates: 48
  • Update frequency: every 43.0 days
  • Top authors: anzia (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active / 14,177 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.89ms] Passed 4 tests

Server-side resources used by Ni WooCommerce Product Variations Table
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0126.68 ▼20.80
Dashboard /wp-admin3.40 ▲0.0947.82 ▼2.77
Posts /wp-admin/edit.php3.51 ▲0.1550.78 ▲5.80
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.69 ▼0.58
Media Library /wp-admin/upload.php3.32 ▲0.0935.79 ▲0.58
Other Plugins /wp-admin/admin.php?page=niwoopvt-other-plugins3.3132.99
Settings /wp-admin/admin.php?page=nipv-settings3.3032.41
Dashboard /wp-admin/admin.php?page=nipv-product-variation3.5933.61

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
recovery_mode_email_last_sent
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ni WooCommerce Product Variations Table
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,503 ▼23213.17 ▼1.140.81 ▼1.3913.89 ▼30.42
Dashboard /wp-admin2,230 ▲395.79 ▼0.0998.66 ▼10.5539.45 ▼3.07
Posts /wp-admin/edit.php2,116 ▲242.05 ▲0.0535.01 ▼1.0635.83 ▲2.39
Add New Post /wp-admin/post-new.php1,555 ▲1323.25 ▲5.25648.76 ▲38.7164.81 ▲7.21
Media Library /wp-admin/upload.php1,415 ▲274.24 ▼0.0394.42 ▼10.0945.35 ▲4.44
Other Plugins /wp-admin/admin.php?page=niwoopvt-other-plugins1,1532.3432.5666.30
Settings /wp-admin/admin.php?page=nipv-settings8702.3729.5027.67
Dashboard /wp-admin/admin.php?page=nipv-product-variation1,5362.0015.5178.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=nipv-product-variation
    • > Error in wp-content/plugins/ni-woocommerce-product-variations-table/includes/ni-product-variations-dashboard.php+329
    Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/ni-woocommerce-product-variations-table/includes/ni-product-variations-dashboard.php:329
    Stack trace:
    #0 wp-content/plugins/ni-woocommerce-product-variations-table/includes/ni-product-variations-table.php(40): Ni_Product_Variations_Dashboard->page_init()
    #1 wp-includes/class-wp-hook.php(310): Ni_Product_Variations_Table->add_page()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 {main}
    thrown

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Change WooCommerce default varations dropdown to product variations table), #2 (Top country, top customer, payment gateway and order status report), #3 (Sales key indicatior)
The official readme.txt is a good inspiration

ni-woocommerce-product-variations-table/ni-woocommerce-product-variations-table.php Passed 13 tests

The principal PHP file in "Ni WooCommerce Product Variations Table" v. 1.6.1 is loaded by WordPress automatically on each request
136 characters long description:
Ni WooCommerce Product Variations Table plugin change the WooCommerce product variation dropdown to Variations table or Variations Grid.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected9,689 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
CSS61441625,049
SVG2002,678
PHP6259781,861
JavaScript10715101

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity19.33
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods45
▷ Static methods12.22%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png4.13KB3.12KB▼ 24.57%
screenshot-2.png18.96KB11.39KB▼ 39.93%
screenshot-1.png42.54KB18.12KB▼ 57.40%
screenshot-3.png40.36KB20.87KB▼ 48.30%