84% woo-virtuemart

Code Review | Virtuemart to woocoommerce

WordPress plugin Virtuemart to woocoommerce scored84%from 54 tests.

About plugin

  • Plugin page: woo-virtuemart
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 17, 2018
  • Latest release: Feb 24, 2019
  • Number of updates: 3
  • Update frequency: every 23.3 days
  • Top authors: akherati (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,006 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.21ms] Passed 4 tests

An overview of server-side resources used by Virtuemart to woocoommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.36 ▲4.40
Dashboard /wp-admin3.31 ▲0.0150.64 ▲1.42
Posts /wp-admin/edit.php3.36 ▲0.0145.43 ▼7.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.70 ▼19.60
Media Library /wp-admin/upload.php3.24 ▲0.0138.55 ▲0.34
Setting /wp-admin/admin.php?page=Migration_settings3.2332.44
Virtuemart 2 WC /wp-admin/admin.php?page=Migration_options3.2331.41

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Virtuemart to woocoommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲3014.17 ▼0.181.75 ▼0.0747.49 ▲4.60
Dashboard /wp-admin2,222 ▲425.62 ▲0.0095.93 ▲4.8743.24 ▲0.50
Posts /wp-admin/edit.php2,127 ▲271.95 ▼0.0437.56 ▲1.3533.34 ▼4.27
Add New Post /wp-admin/post-new.php1,548 ▲2023.67 ▲0.53648.68 ▼33.6959.19 ▼2.52
Media Library /wp-admin/upload.php1,427 ▲274.16 ▼0.0397.56 ▼19.2243.14 ▼4.95
Setting /wp-admin/admin.php?page=Migration_settings8312.0025.1022.40
Virtuemart 2 WC /wp-admin/admin.php?page=Migration_options8212.0325.2927.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woo-virtuemart/define.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
7 plugin tags: joomla to wordpress, wordpress migration, virtuemart to wc, migration, virtuemart 2 woocommerce...

woo-virtuemart/woo-virtuemart.php Passed 13 tests

The main PHP file in "Virtuemart to woocoommerce" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
107 characters long description:
this plugin imports products, medias, product categories, product attributes from virtuemart to woocommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected345 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP63860345

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity14.00
▷ Minimum class complexity6.00
▷ Maximum class complexity22.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods640.00%
▷ Protected methods00.00%
▷ Private methods960.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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