89% linked-variation

Code Review | Advanced Linked Variations for Woocommerce

WordPress plugin Advanced Linked Variations for Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: linked-variation
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2022
  • Latest release: Aug 15, 2023
  • Number of updates: 18
  • Update frequency: every 27.2 days
  • Top authors: dots (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,026 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.68ms] Passed 4 tests

A check of server-side resources used by Advanced Linked Variations for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.18 ▲0.91
Dashboard /wp-admin3.32 ▼0.0249.30 ▼11.38
Posts /wp-admin/edit.php3.38 ▲0.0149.58 ▼4.87
Add New Post /wp-admin/post-new.php5.91 ▲0.0183.53 ▼19.88
Media Library /wp-admin/upload.php3.25 ▲0.0136.56 ▼2.60

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Linked Variations for Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.72 ▲0.171.80 ▲0.1542.71 ▲0.00
Dashboard /wp-admin2,205 ▲315.61 ▲0.0687.13 ▼8.3242.20 ▲1.48
Posts /wp-admin/edit.php2,117 ▲141.98 ▼0.0139.23 ▼0.9939.05 ▲0.47
Add New Post /wp-admin/post-new.php1,539 ▲1323.32 ▲0.20660.43 ▲11.3265.43 ▲3.61
Media Library /wp-admin/upload.php1,416 ▲134.21 ▲0.02101.06 ▼8.2946.77 ▼1.94

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: link, product, free, variations

linked-variation/linked-variation.php 85% from 13 tests

The primary PHP file in "Advanced Linked Variations for Woocommerce" version 1.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 181 characters long)
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "5.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin4,281 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP132165441,708
CSS82391661,309
PO File44365761,034
JavaScript42410227
SVG3003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity35.17
▷ Minimum class complexity1.00
▷ Maximum class complexity189.00
Average method complexity5.27
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods48
▷ Static methods918.75%
▷ Public methods4491.67%
▷ Protected methods00.00%
▷ Private methods48.33%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 1.31MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/thedotstore-images/popular-plugins/Advanced-Flat-Rate-Shipping-Method.png4.88KB4.90KB0.00%
admin/css/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
admin/images/thedotstore-images/popular-plugins/Advanced-Product-Sample-for-WooCommerce.png11.96KB4.80KB▼ 59.83%
admin/images/thedotstore-images/popular-plugins/hide-shipping-method-for-woocommerce.png7.13KB2.75KB▼ 61.38%
admin/images/thedotstore-images/popular-plugins/WooCommerce-Blocker-Prevent-Fake-Orders.png6.83KB6.87KB0.00%