77% woo-to-vend-one-stop-solution

Code Review | WooCommerce to Vend One stop Solution

WordPress plugin WooCommerce to Vend One stop Solution scored 77% from 54 tests.

About plugin

  • Plugin page: woo-to-vend-one-s...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 30, 2018
  • Latest release: Sep 30, 2018
  • Number of updates: 2
  • Update frequency: every 83.5 days
  • Top authors: apurbajnu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by WooCommerce to Vend One stop Solution
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.67 ▼8.11
Dashboard /wp-admin3.31 ▲0.0050.67 ▲2.89
Posts /wp-admin/edit.php3.36 ▲0.0045.79 ▲4.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.68 ▼7.56
Media Library /wp-admin/upload.php3.23 ▲0.0037.35 ▲0.96

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 144 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce to Vend One stop Solution
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.601.59 ▼0.1444.15 ▲1.04
Dashboard /wp-admin2,206 ▲185.79 ▲0.9199.78 ▼13.1837.70 ▼8.24
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0434.89 ▼4.6635.86 ▲0.32
Add New Post /wp-admin/post-new.php1,537 ▲122.97 ▼0.45599.78 ▼56.0158.73 ▲0.62
Media Library /wp-admin/upload.php1,382 ▼64.28 ▲0.0397.87 ▼6.7844.24 ▲1.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/woo-to-vend-one-stop-solution/tests/bootstrap.php
  • 48× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/woo-to-vend-one-stop-solution/vendor/guzzlehttp/psr7/src/Stream.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/woo-to-vend-one-stop-solution/tests/WVOS_Vend_Functions_Test.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/woo-to-vend-one-stop-solution/vendor/guzzlehttp/psr7/src/FnStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/woo-to-vend-one-stop-solution/vendor/guzzlehttp/psr7/src/PumpStream.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/woo-to-vend-one-stop-solution/vendor/guzzlehttp/psr7/src/Request.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/woo-to-vend-one-stop-solution/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/woo-to-vend-one-stop-solution/vendor/guzzlehttp/promises/src/CancellationException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/woo-to-vend-one-stop-solution/vendor/psr/http-message/src/ResponseInterface.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/woo-to-vend-one-stop-solution/vendor/guzzlehttp/psr7/src/InflateStream.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/woo-to-vend-one-stop-solution/vendor/guzzlehttp/psr7/src/Uri.php:13

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

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Donate link: Invalid URI found ("")
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

woo-to-vend-one-stop-solution/wc-vend.php 77% from 13 tests

This is the main PHP file of "WooCommerce to Vend One stop Solution" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-to-vend-one-stop-solution.php" instead of "wc-vend.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
No dangerous file extensions were detected14,367 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
PHP1112,3915,93210,478
Markdown1095303,205
JSON730417
Bourne Shell12111120
JavaScript222175
CSS17046
XML10017
make1409

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity15.24
▷ Minimum class complexity1.00
▷ Maximum class complexity123.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces9
Interfaces14
Traits2
Classes81
▷ Abstract classes11.23%
▷ Concrete classes8098.77%
▷ Final classes78.75%
Methods814
▷ Static methods637.74%
▷ Public methods67582.92%
▷ Protected methods253.07%
▷ Private methods11414.00%
Functions149
▷ Named functions6140.94%
▷ Anonymous functions8859.06%
Constants51
▷ Global constants35.88%
▷ Class constants4894.12%
▷ Public constants48100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected