94% wc-dott-marketplace

Code Review | Connector Dott Marketplace for WooCommerce

WordPress plugin Connector Dott Marketplace for WooCommerce scored 94% from 54 tests.

About plugin

  • Plugin page: wc-dott-marketplace
  • Plugin version: 1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.3
  • WordPress version: 5.9.2
  • First release: Apr 17, 2021
  • Latest release: Jan 12, 2022
  • Number of updates: 51
  • Update frequency: every 5.3 days
  • Top authors: teracondition (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 299 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Connector Dott Marketplace for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0249.27 ▼2.79
Dashboard /wp-admin3.43 ▲0.0234.35 ▲0.84
Posts /wp-admin/edit.php3.66 ▲0.0238.36 ▲1.57
Add New Post /wp-admin/post-new.php6.90 ▼0.0789.90 ▼1,191.54
Media Library /wp-admin/upload.php3.31 ▲0.0225.78 ▼0.84

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Connector Dott Marketplace for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲8415.57 ▼0.086.42 ▼0.082.83 ▲0.59
Dashboard /wp-admin2,902 ▲516.20 ▲0.03117.70 ▼19.52174.86 ▲13.19
Posts /wp-admin/edit.php2,716 ▲283.13 ▼0.1064.73 ▼2.45144.15 ▼10.41
Add New Post /wp-admin/post-new.php1,714 ▼320.97 ▼1.27416.41 ▼30.56201.32 ▲43.62
Media Library /wp-admin/upload.php1,720 ▲225.54 ▲0.02125.31 ▼15.41207.95 ▲15.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-dott-marketplace/dottwooapp.php:299

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is stored in the /assets directory.), #2 (This is the second screen shot)
You can look at the official readme.txt

wc-dott-marketplace/dottwooapp.php 92% from 13 tests

The principal PHP file in "Connector Dott Marketplace for WooCommerce" v. 1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wc-dott-marketplace.php" instead of "dottwooapp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected145 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11539145

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin