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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 24.01 ▼16.46 |
Dashboard /wp-admin | 3.35 ▲0.04 | 49.73 ▲0.28 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.50 ▼2.42 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 100.29 ▼6.92 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.94 ▼5.33 |
Add New /wp-admin/post-new.php?post_type=geofencing | 3.40 | 51.38 |
All Fencing Data /wp-admin/edit.php?post_type=geofencing | 3.31 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.25 ▼0.12 | 2.30 ▲0.34 | 44.45 ▼1.75 |
Dashboard /wp-admin | 2,242 ▲65 | 5.61 ▼0.06 | 91.05 ▲4.40 | 39.70 ▲1.04 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 1.98 ▼0.03 | 37.44 ▲1.38 | 30.32 ▼9.62 |
Add New Post /wp-admin/post-new.php | 1,637 ▲111 | 22.40 ▼1.14 | 596.09 ▼95.32 | 34.59 ▼23.62 |
Media Library /wp-admin/upload.php | 1,450 ▲53 | 4.23 ▼0.02 | 105.02 ▼3.78 | 47.14 ▲0.28 |
Add New /wp-admin/post-new.php?post_type=geofencing | 2,360 | 7.63 | 169.71 | 64.03 |
All Fencing Data /wp-admin/edit.php?post_type=geofencing | 1,129 | 1.97 | 30.89 | 31.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 154 | 6,919 | 11,334 | 27,484 |
JavaScript | 115 | 5,276 | 2,745 | 21,536 |
Sass | 87 | 1,760 | 88 | 12,065 |
CSS | 93 | 6,278 | 343 | 10,207 |
SVG | 10 | 77 | 1 | 1,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 code | 0.56 |
Average class complexity | 41.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 338.00 |
Average method complexity | 5.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 128 | |
▷ Abstract classes | 4 | 3.12% |
▷ Concrete classes | 124 | 96.88% |
▷ Final classes | 0 | 0.00% |
Methods | 1,081 | |
▷ Static methods | 281 | 25.99% |
▷ Public methods | 831 | 76.87% |
▷ Protected methods | 141 | 13.04% |
▷ Private methods | 109 | 10.08% |
Functions | 40 | |
▷ Named functions | 31 | 77.50% |
▷ Anonymous functions | 9 | 22.50% |
Constants | 104 | |
▷ Global constants | 6 | 5.77% |
▷ Class constants | 98 | 94.23% |
▷ Public constants | 98 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
framework/assets/img/jquery-ui-bootstrap/ui-icons_f6cf3b_256x240.png | 4.29KB | 4.11KB | ▼ 4.32% |
framework/assets/img/raw/jquery-ui-bootstrap/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
assets/images/rcard-24.png | 13.93KB | 14.39KB | 0.00% |
framework/assets/img/1col.png | 0.13KB | 0.14KB | 0.00% |
framework/assets/img/3-col-portfolio.png | 0.15KB | 0.15KB | 0.00% |