84% wpc-variation-duplicator

Code Review | WPC Variation Duplicator for WooCommerce

WordPress plugin WPC Variation Duplicator for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: wpc-variation-dup...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 4, 2023
  • Latest release: Sep 3, 2023
  • Number of updates: 8
  • Update frequency: every 11.9 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /350 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.56ms] Passed 4 tests

Analyzing server-side resources used by WPC Variation Duplicator for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.59 ▲0.87
Dashboard /wp-admin3.32 ▲0.0247.42 ▼3.52
Posts /wp-admin/edit.php3.44 ▲0.0843.22 ▼1.74
Add New Post /wp-admin/post-new.php5.92 ▲0.0480.65 ▼12.21
Media Library /wp-admin/upload.php3.25 ▲0.0233.73 ▼0.75
About /wp-admin/admin.php?page=wpclever3.2132.23
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.2131.73

Server storage [IO: ▲0.08MB] [DB: ▲0.02MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPC Variation Duplicator for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13113.15 ▼1.281.74 ▼0.0842.96 ▼4.68
Dashboard /wp-admin2,283 ▲924.85 ▼0.06109.42 ▲2.6183.95 ▲47.39
Posts /wp-admin/edit.php2,166 ▲772.05 ▲0.0535.75 ▼2.2234.78 ▲0.31
Add New Post /wp-admin/post-new.php1,598 ▲6423.25 ▲0.11793.24 ▲115.9654.66 ▼3.92
Media Library /wp-admin/upload.php1,462 ▲744.26 ▲0.0798.19 ▼2.9580.56 ▲37.73
About /wp-admin/admin.php?page=wpclever1,3932.1131.6635.94
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7232.1636.8856.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpc-variation-duplicator/wpc-variation-duplicator.php:19

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: You can look at the official readme.txt

wpc-variation-duplicator/wpc-variation-duplicator.php Passed 13 tests

Analyzing the main PHP file in "WPC Variation Duplicator for WooCommerce" version 1.0.4
93 characters long description:
WPC Variation Duplicator helps you duplicate a variation with all properties in just 1-click.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,831 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS4208147946
PHP59725655
JavaScript3314172
SVG10029
Sass13029

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity14.80
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity3.34
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods30
▷ Static methods310.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin