78% wc-frontend-manager-elementor

Code Review | WCFM - WCFM Marketplace integrate Elementor

WordPress plugin WCFM - WCFM Marketplace integrate Elementor scored78%from 54 tests.

About plugin

  • Plugin page: wc-frontend-manag...
  • Plugin version: 3.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 5, 2019
  • Latest release: Oct 30, 2023
  • Number of updates: 32
  • Update frequency: every 46.5 days
  • Top authors: wclovers (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

3,000+ active /68,916 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.04MB] [CPU: ▼5.27ms] Passed 4 tests

An overview of server-side resources used by WCFM - WCFM Marketplace integrate Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.00 ▲1.49
Dashboard /wp-admin3.35 ▲0.0445.17 ▼5.83
Posts /wp-admin/edit.php3.40 ▲0.0442.70 ▼3.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.45 ▼12.04
Media Library /wp-admin/upload.php3.27 ▲0.0435.15 ▲0.68

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WCFM - WCFM Marketplace integrate Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.25 ▼0.101.72 ▲0.2242.66 ▲1.16
Dashboard /wp-admin2,202 ▲255.56 ▼0.1190.79 ▲2.0241.13 ▼1.86
Posts /wp-admin/edit.php2,110 ▲102.03 ▲0.0632.61 ▼3.6136.32 ▼0.78
Add New Post /wp-admin/post-new.php1,546 ▲1818.47 ▼4.58641.68 ▲13.3570.11 ▲12.09
Media Library /wp-admin/upload.php1,407 ▲104.30 ▲0.1199.52 ▲1.5444.08 ▼1.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • 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 shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wc-frontend-manager-elementor/views/template-preview-9000002.php
    • > /wp-content/plugins/wc-frontend-manager-elementor/views/template-preview-9000001.php
  • 31× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Data_Tag' not found in wp-content/plugins/wc-frontend-manager-elementor/includes/dynamic-tags/class-wcfmem-tag-storebanner.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Button' not found in wp-content/plugins/wc-frontend-manager-elementor/includes/widgets/class-wcfmem-widget-storechat.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Heading' not found in wp-content/plugins/wc-frontend-manager-elementor/includes/widgets/class-wcfmem-widget-storename.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Alert' not found in wp-content/plugins/wc-frontend-manager-elementor/includes/widgets/class-wcfmem-widget-storevacationmessage.php:6
    • > PHP Notice
      Trying to get property 'plugin_url' of non-object in wp-content/plugins/wc-frontend-manager-elementor/views/template-preview-9000001.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/wc-frontend-manager-elementor/includes/dynamic-tags/class-wcfmem-tag-storerating.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Button' not found in wp-content/plugins/wc-frontend-manager-elementor/includes/widgets/class-wcfmem-widget-storefollow.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Icon_List' not found in wp-content/plugins/wc-frontend-manager-elementor/includes/widgets/class-wcfmem-widget-storeinfo.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Social_Icons' not found in wp-content/plugins/wc-frontend-manager-elementor/includes/widgets/class-wcfmem-widget-storesocial.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Control_Hidden' not found in wp-content/plugins/wc-frontend-manager-elementor/includes/controls/class-wcfmem-control-dynamichidden.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce marketplace, vendor, multi vendor, elementor, wcfm

wc-frontend-manager-elementor/wc-frontend-manager-elementor.php 92% from 13 tests

"WCFM - WCFM Marketplace integrate Elementor" version 3.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,412 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP447681,7473,133
PO File175107193
CSS36052
JavaScript18131
JSON3003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.34
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes37
▷ Abstract classes00.00%
▷ Concrete classes37100.00%
▷ Final classes12.70%
Methods264
▷ Static methods186.82%
▷ Public methods20376.89%
▷ Protected methods6022.73%
▷ Private methods10.38%
Functions11
▷ Named functions872.73%
▷ Anonymous functions327.27%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 4.30MB with 2.79MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/store-preview-9000001.png704.01KB208.66KB▼ 70.36%
assets/images/store-header-9000002.png1,352.67KB479.30KB▼ 64.57%
assets/images/store-header-9000001.png514.69KB164.70KB▼ 68.00%
assets/images/default-logo.png9.00KB4.00KB▼ 55.51%
assets/images/store-preview-9000002.png1,823.23KB627.64KB▼ 65.58%