89% integrate-woocommerce-with-vend

Code Review | Integrate WooCommerce with Vend

WordPress plugin Integrate WooCommerce with Vend scored89%from 54 tests.

About plugin

  • Plugin page: integrate-woocomm...
  • Plugin version: 1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 25, 2018
  • Latest release: Nov 29, 2022
  • Number of updates: 27
  • Update frequency: every 60.0 days
  • Top authors: sujith222 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

50+ active /2,864 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: ▼3.38ms] Passed 4 tests

An overview of server-side resources used by Integrate WooCommerce with Vend
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.94 ▲1.51
Dashboard /wp-admin3.31 ▲0.0049.97 ▼5.87
Posts /wp-admin/edit.php3.36 ▲0.0047.75 ▼3.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.69 ▼5.46
Media Library /wp-admin/upload.php3.23 ▲0.0037.96 ▲1.84

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Integrate WooCommerce with Vend
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.261.83 ▼0.0244.40 ▲2.89
Dashboard /wp-admin2,195 ▲215.53 ▼0.0585.33 ▼19.4138.26 ▼5.28
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0137.86 ▲1.0733.39 ▲0.10
Add New Post /wp-admin/post-new.php1,533 ▲722.90 ▼0.14673.98 ▼10.6455.56 ▼3.73
Media Library /wp-admin/upload.php1,397 ▼04.25 ▲0.11110.66 ▲8.1047.57 ▲1.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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 | 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: A description for screenshot #2 is required in integrate-woocommerce-with-vend/assets to your readme.txt
You can take inspiration from this readme.txt

integrate-woocommerce-with-vend/vwi.php 85% from 13 tests

The primary PHP file in "Integrate WooCommerce with Vend" version 1.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.3")
  • Main file name: The principal plugin file should be the same as the plugin slug ("integrate-woocommerce-with-vend.php" instead of "vwi.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected548 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP78094548

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin