89% simple-linked-variations-for-woocommerce

Code Review | Simple Linked Variations for WooCommerce

WordPress plugin Simple Linked Variations for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: simple-linked-var...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Feb 26, 2017
  • Latest release: Jun 27, 2019
  • Number of updates: 18
  • Update frequency: every 51.9 days
  • Top authors: dingo_bastard (77.78%)dingo_d (27.78%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /7,901 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.01MB] [CPU: ▼5.50ms] Passed 4 tests

Server-side resources used by Simple Linked Variations for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.79 ▲1.98
Dashboard /wp-admin3.31 ▼0.0444.76 ▼14.09
Posts /wp-admin/edit.php3.36 ▲0.0045.74 ▼3.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.00 ▼5.11
Media Library /wp-admin/upload.php3.23 ▲0.0034.39 ▲0.21

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Simple Linked Variations for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.27 ▼1.115.72 ▲3.8741.05 ▼3.60
Dashboard /wp-admin2,206 ▲184.85 ▼1.04110.55 ▲8.9743.39 ▼0.13
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0140.03 ▲3.1134.30 ▼2.70
Add New Post /wp-admin/post-new.php1,533 ▲522.96 ▼0.22589.34 ▼59.6661.64 ▲13.80
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0193.95 ▼7.5140.30 ▼3.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% 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
7 plugin tags: variable product, linked, attributes, shop, woocommerce...

simple-linked-variations-for-woocommerce/simple-linked-variations-for-woocommerce.php 85% from 13 tests

The entry point to "Simple Linked Variations for WooCommerce" version 1.0.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 151 characters long)

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
Good job! No executable or dangerous file extensions detected246 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP129125152
JavaScript111136
PO File18835
CSS24023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods969.23%
▷ Protected methods00.00%
▷ Private methods430.77%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected