88% veeqo-for-woocommerce

Code Review | Veeqo for WooCommerce

WordPress plugin Veeqo for WooCommerce scored 88% from 54 tests.

About plugin

  • Plugin page: veeqo-for-woocomm...
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 1.6-5.7
  • WordPress version: 5.8.1
  • First release: Nov 6, 2015
  • Latest release: Sep 15, 2021
  • Number of updates: 35
  • Update frequency: every 61.2 days
  • Top authors: calvify (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

600+ active / 6,457 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Veeqo for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0030.88 ▼3.47
Dashboard /wp-admin3.06 ▲0.0047.30 ▲5.14
Posts /wp-admin/edit.php3.11 ▲0.0043.74 ▲0.58
Add New Post /wp-admin/post-new.php5.42 ▼0.0290.61 ▼561.20
Media Library /wp-admin/upload.php3.00 ▲0.0024.46 ▼6.95

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Veeqo for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲10615.82 ▲0.307.90 ▲0.1451.08 ▲4.84
Dashboard /wp-admin2,973 ▲425.90 ▼0.03124.29 ▼18.89108.13 ▼4.36
Posts /wp-admin/edit.php2,736 ▼32.69 ▲0.0065.10 ▼0.3276.41 ▼20.10
Add New Post /wp-admin/post-new.php1,498 ▼10618.83 ▼0.01369.25 ▲3.47113.36 ▲5.38
Media Library /wp-admin/upload.php1,807 ▼65.00 ▼0.04155.71 ▲7.86115.37 ▼10.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/veeqo-for-woocommerce/veeqo.php
    • > /wp-content/plugins/veeqo-for-woocommerce/views/layout/header.php
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function does_bridge_exist() on null in wp-content/plugins/veeqo-for-woocommerce/views/index_view.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'VeeqoPluginCore' not found in wp-content/plugins/veeqo-for-woocommerce/includes/bridge_class.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function plugin_url() on null in wp-content/plugins/veeqo-for-woocommerce/views/layout/index/index_bottom.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/veeqo-for-woocommerce/includes/wordpress_hooks.php:2
    • > PHP Notice
      Trying to get property 'bridge' of non-object in wp-content/plugins/veeqo-for-woocommerce/views/install_bridge_form_view.php on line 4
    • > PHP Notice
      Trying to get property 'bridge' of non-object in wp-content/plugins/veeqo-for-woocommerce/views/index_view.php on line 21
    • > PHP Notice
      Trying to get property 'core' of non-object in wp-content/plugins/veeqo-for-woocommerce/views/layout/index/index_bottom.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to a member function does_bridge_exist() on null in wp-content/plugins/veeqo-for-woocommerce/views/install_bridge_form_view.php:4
    • > PHP Notice
      Undefined variable: wooVeeqo in wp-content/plugins/veeqo-for-woocommerce/views/layout/index/index_bottom.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
The official readme.txt is a good inspiration

veeqo-for-woocommerce/veeqo.php 85% from 13 tests

The primary PHP file in "Veeqo for WooCommerce" version 1.2.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.1" instead of "1.6")
  • Main file name: Name the main plugin file the same as the plugin slug ("veeqo-for-woocommerce.php" instead of "veeqo.php")

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
No dangerous file extensions were detected690 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS22430334
PHP97924321
JavaScript18135

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods1356.52%
▷ Protected methods00.00%
▷ Private methods1043.48%
Functions6
▷ Named functions6100.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
4 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/veeqo-logo.png4.52KB2.44KB▼ 46.00%
assets/images/woocommerceapp-x2.png89.38KB40.01KB▼ 55.24%
assets/images/shippingintegrations.png6.21KB3.27KB▼ 47.30%
assets/images/ebay-amazon.png2.66KB1.96KB▼ 26.40%