89% woo-extra-product-options

Code Review | Extra product options For WooCommerce | Custom Product Addons and Fields

WordPress plugin Extra product options For WooCommerce | Custom Product Addons and Fields scored89%from 54 tests.

About plugin

  • Plugin page: woo-extra-product...
  • Plugin version: 3.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 27, 2016
  • Latest release: Nov 7, 2023
  • Number of updates: 186
  • Update frequency: every 15.3 days
  • Top authors: ThemeHigh (100%)

Code review

54 tests

User reviews

180 reviews

Install metrics

30,000+ active /739,818 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.00MB] [CPU: ▼6.47ms] Passed 4 tests

This is a short check of server-side resources used by Extra product options For WooCommerce | Custom Product Addons and Fields
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.26 ▼1.60
Dashboard /wp-admin3.31 ▲0.0044.44 ▼4.05
Posts /wp-admin/edit.php3.36 ▲0.0045.99 ▼4.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.92 ▼15.88
Media Library /wp-admin/upload.php3.23 ▲0.0033.01 ▲1.18

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Extra product options For WooCommerce | Custom Product Addons and Fields
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲1814.27 ▼0.081.64 ▼0.2836.40 ▼8.34
Dashboard /wp-admin2,198 ▲185.56 ▼0.0889.31 ▼11.8037.63 ▼5.17
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.0535.40 ▼3.0331.11 ▼4.54
Add New Post /wp-admin/post-new.php1,526 ▼1123.48 ▲0.36674.29 ▼19.2158.61 ▲5.24
Media Library /wp-admin/upload.php1,400 ▼04.28 ▼0.0296.98 ▼10.1643.24 ▼0.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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 to be fixed:
  • Tags: There are too many tags (24 tag instead of maximum 10)
You can look at the official readme.txt

woo-extra-product-options/woo-extra-product-options.php 85% from 13 tests

The main file in "Extra product options For WooCommerce | Custom Product Addons and Fields" v. 3.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.9" instead of "3.0.0")
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 72 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin12,009 lines of code in 71 files:
LanguageFilesBlank linesComment linesLines of code
PHP391,1998176,165
CSS53123163,105
JavaScript105633412,512
SVG1720227

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity27.08
▷ Minimum class complexity1.00
▷ Maximum class complexity175.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes39
▷ Abstract classes25.13%
▷ Concrete classes3794.87%
▷ Final classes00.00%
Methods370
▷ Static methods11130.00%
▷ Public methods26872.43%
▷ Protected methods10.27%
▷ Private methods10127.30%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants521.74%
▷ Class constants1878.26%
▷ Public constants18100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
23 PNG files occupy 0.33MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/assets/css/jquery-ui/images/ui-icons_888888_256x240.png6.94KB4.18KB▼ 39.78%
admin/assets/css/fields.png82.76KB86.13KB0.00%
admin/assets/css/upgrade-btn.png7.61KB2.20KB▼ 71.09%
admin/assets/css/popup-flyers.png3.62KB2.27KB▼ 37.36%
public/assets/css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png0.26KB0.09KB▼ 66.79%