74% tc-ecommerce

Code Review | Themes Coder - Create Android & iOS Apps For Your Woocommerce Site

WordPress plugin Themes Coder - Create Android & iOS Apps For Your Woocommerce Site scored74%from 54 tests.

About plugin

  • Plugin page: tc-ecommerce
  • Plugin version: 1.3.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 25, 2022
  • Latest release: Aug 30, 2023
  • Number of updates: 13
  • Update frequency: every 38.1 days
  • Top authors: themescoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,017 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.78ms] Passed 4 tests

Analyzing server-side resources used by Themes Coder - Create Android & iOS Apps For Your Woocommerce Site
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0424.01 ▼16.46
Dashboard /wp-admin3.35 ▲0.0449.73 ▲0.28
Posts /wp-admin/edit.php3.40 ▲0.0449.50 ▼2.42
Add New Post /wp-admin/post-new.php6.00 ▲0.12100.29 ▼6.92
Media Library /wp-admin/upload.php3.27 ▲0.0434.94 ▼5.33
Add New /wp-admin/post-new.php?post_type=geofencing3.4051.38
All Fencing Data /wp-admin/edit.php?post_type=geofencing3.3136.60

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 814 new files
Database: 4 new tables, 6 new options
New tables
wp_tc_app_notification_devices
wp_tc_app_banner_settings
wp_tc_app_all_notification
wp_tc_app_order_data
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Themes Coder - Create Android & iOS Apps For Your Woocommerce Site
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲7814.25 ▼0.122.30 ▲0.3444.45 ▼1.75
Dashboard /wp-admin2,242 ▲655.61 ▼0.0691.05 ▲4.4039.70 ▲1.04
Posts /wp-admin/edit.php2,151 ▲511.98 ▼0.0337.44 ▲1.3830.32 ▼9.62
Add New Post /wp-admin/post-new.php1,637 ▲11122.40 ▼1.14596.09 ▼95.3234.59 ▼23.62
Media Library /wp-admin/upload.php1,450 ▲534.23 ▼0.02105.02 ▼3.7847.14 ▲0.28
Add New /wp-admin/post-new.php?post_type=geofencing2,3607.63169.7164.03
All Fencing Data /wp-admin/edit.php?post_type=geofencing1,1291.9730.8931.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables detected upon uninstall: 4 tables
    • wp_tc_app_all_notification
    • wp_tc_app_banner_settings
    • wp_tc_app_order_data
    • wp_tc_app_notification_devices
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/tc-ecommerce/framework/templates/panel/container.tpl.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-ecommerce/functions/tc_geo_fencing_functions.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tc-ecommerce/framework/templates/panel/header.tpl.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/tc-ecommerce/framework/templates/panel/menu-container.tpl.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tc-ecommerce/framework/templates/panel/header-stickybar.tpl.php:15
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/tc-ecommerce/framework/templates/panel/content.tpl.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-ecommerce/functions/tc_miscellaneous_functions.php:262
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-ecommerce/functions/tc_app_notifications_function.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% 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:
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

tc-ecommerce/tc-ecommerce.php Passed 13 tests

The main PHP script in "Themes Coder - Create Android & iOS Apps For Your Woocommerce Site" version 1.3.3 is automatically included on every request by WordPress
110 characters long description:
A wordpress Plugin for mobile app solution for android and iOS platform with WordPress WooCommerce as backend.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin73,012 lines of code in 459 files:
LanguageFilesBlank linesComment linesLines of code
PHP1546,91911,33427,484
JavaScript1155,2762,74521,536
Sass871,7608812,065
CSS936,27834310,207
SVG107711,720

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 110)
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity41.35
▷ Minimum class complexity1.00
▷ Maximum class complexity338.00
Average method complexity5.77
▷ Minimum method complexity1.00
▷ Maximum method complexity110.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes128
▷ Abstract classes43.12%
▷ Concrete classes12496.88%
▷ Final classes00.00%
Methods1,081
▷ Static methods28125.99%
▷ Public methods83176.87%
▷ Protected methods14113.04%
▷ Private methods10910.08%
Functions40
▷ Named functions3177.50%
▷ Anonymous functions922.50%
Constants104
▷ Global constants65.77%
▷ Class constants9894.23%
▷ Public constants98100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
109 compressed PNG files occupy 0.96MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
framework/assets/img/jquery-ui-bootstrap/ui-icons_f6cf3b_256x240.png4.29KB4.11KB▼ 4.32%
framework/assets/img/raw/jquery-ui-bootstrap/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
assets/images/rcard-24.png13.93KB14.39KB0.00%
framework/assets/img/1col.png0.13KB0.14KB0.00%
framework/assets/img/3-col-portfolio.png0.15KB0.15KB0.00%