83% wc-frontend-manager

Code Review | WCFM - Frontend Manager for WooCommerce along with Bookings Subscription Listings Compatible

WordPress plugin WCFM - Frontend Manager for WooCommerce along with Bookings Subscription Listings Compatible scored83%from 54 tests.

About plugin

  • Plugin page: wc-frontend-manager
  • Plugin version: 6.7.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 19, 2017
  • Latest release: Dec 2, 2023
  • Number of updates: 750
  • Update frequency: every 3.3 days
  • Top authors: wclovers (100%)

Code review

54 tests

User reviews

254 reviews

Install metrics

30,000+ active /1,308,686 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.43MB] [CPU: ▼6.12ms] Passed 4 tests

An overview of server-side resources used by WCFM - Frontend Manager for WooCommerce along with Bookings Subscription Listings Compatible
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4738.56 ▼4.60
Dashboard /wp-admin3.76 ▲0.4249.35 ▼7.86
Posts /wp-admin/edit.php3.82 ▲0.4649.93 ▲1.73
Add New Post /wp-admin/post-new.php6.28 ▲0.4082.37 ▼11.06
Media Library /wp-admin/upload.php3.67 ▲0.4435.04 ▼0.94

Server storage [IO: ▲30.81MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • Total filesystem usage should be limited to 25MB (currently using 30.81MB)
Filesystem: 695 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WCFM - Frontend Manager for WooCommerce along with Bookings Subscription Listings Compatible
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5214.23 ▲0.111.61 ▼0.3537.44 ▼17.72
Dashboard /wp-admin2,211 ▲345.62 ▲0.0098.21 ▼1.5342.96 ▲0.39
Posts /wp-admin/edit.php2,114 ▲141.94 ▼0.0640.37 ▼0.1436.97 ▲2.85
Add New Post /wp-admin/post-new.php1,539 ▲1323.05 ▼0.32587.78 ▼51.4751.97 ▲3.21
Media Library /wp-admin/upload.php1,416 ▲194.25 ▲0.11100.44 ▼6.5642.81 ▼3.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 87× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/orders/wcfm-view-orders-details.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wc-frontend-manager/views/wc_bookings/wcfm-view-wcbookings-details.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/notice/wcfm-view-notice-manage.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/enquiry/wcfm-view-enquiry.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/withdrawal/dokan/wcfm-view-payments.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/vendors/wcfm-view-vendors-manage.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/knowledgebase/wcfm-view-knowledgebase-manage.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wc-frontend-manager/views/wc_bookings/wcfm-view-wcbookings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_product() in wp-content/plugins/wc-frontend-manager/views/enquiry/wcfm-view-enquiry-form.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-frontend-manager/views/articles/wcfm-view-articles-manage.php:4

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt might help

wc-frontend-manager/wc_frontend_manager.php 85% from 13 tests

The main PHP script in "WCFM - Frontend Manager for WooCommerce along with Bookings Subscription Listings Compatible" version 6.7.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "3.0.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("wc-frontend-manager.php" instead of "wc_frontend_manager.php")

Code Analysis 97% from 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 detected192,031 lines of code in 513 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13711,41110,91254,462
PHP2079,8767,56153,891
PO File1518,98434,70443,486
CSS1195,90220121,888
SVG70014,778
Sass1434341,768
LESS1434441,758

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 211)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity71.44
▷ Minimum class complexity2.00
▷ Maximum class complexity696.00
Average method complexity8.22
▷ Minimum method complexity1.00
▷ Maximum method complexity211.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes119
▷ Abstract classes00.00%
▷ Concrete classes119100.00%
▷ Final classes00.00%
Methods1,161
▷ Static methods756.46%
▷ Public methods1,14198.28%
▷ Protected methods60.52%
▷ Private methods141.21%
Functions139
▷ Named functions12892.09%
▷ Anonymous functions117.91%
Constants23
▷ Global constants1460.87%
▷ Class constants939.13%
▷ Public constants9100.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
102 PNG files occupy 1.15MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/modules/shipstation.png17.19KB7.07KB▼ 58.85%
assets/images/user.png32.79KB14.44KB▼ 55.97%
assets/images/modules/profile.png15.70KB6.24KB▼ 60.28%
assets/images/your-logo-here-bak.png2.42KB2.42KB0.00%
assets/images/media/video.png0.28KB0.28KB0.00%