90% woo-sold-individually-for-variations

Code Review | WooCommerce Sold Individually for Variations

WordPress plugin WooCommerce Sold Individually for Variations scored90%from 54 tests.

About plugin

  • Plugin page: woo-sold-individu...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 4, 2018
  • Latest release: Jul 3, 2023
  • Number of updates: 25
  • Update frequency: every 69.4 days
  • Top authors: webdados (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /10,610 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by WooCommerce Sold Individually for Variations
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.22 ▲2.62
Dashboard /wp-admin3.31 ▲0.0148.20 ▼1.69
Posts /wp-admin/edit.php3.36 ▲0.0048.21 ▼15.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.05 ▼21.17
Media Library /wp-admin/upload.php3.23 ▲0.0040.50 ▲6.23

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Sold Individually for Variations
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7314.65 ▲0.372.05 ▲0.1642.76 ▼4.72
Dashboard /wp-admin2,228 ▲374.86 ▼0.04102.42 ▼5.6142.52 ▲1.98
Posts /wp-admin/edit.php2,105 ▲132.07 ▲0.0737.93 ▼0.8332.63 ▼5.86
Add New Post /wp-admin/post-new.php1,547 ▲3323.29 ▲5.64687.98 ▲24.3558.83 ▲9.01
Media Library /wp-admin/upload.php1,407 ▲194.12 ▼0.08113.24 ▲1.6848.97 ▲1.32

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce, webdados, variations, ecommerce, e-commerce

woo-sold-individually-for-variations/woo-sold-individually-for-variations.php 92% from 13 tests

Analyzing the main PHP file in "WooCommerce Sold Individually for Variations" version 1.0
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 336 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin167 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32544167

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected