Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲17.90MB] [CPU: ▲166.04ms] 50% from 4 tests
Server-side resources used by Welcart e-Commerce
The following require your attention
- RAM: Total memory usage should be kept under 10MB (currently 21.44MB on /wp-admin/admin.php?page=usces_memberlist)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 17.90MB on /wp-admin/admin.php?page=usces_memberlist)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 21.63 ▲18.17 | 178.30 ▲137.60 |
Dashboard /wp-admin | 21.27 ▲17.97 | 1,111.92 ▲1,063.04 |
Posts /wp-admin/edit.php | 21.24 ▲17.88 | 213.56 ▲162.38 |
Add New Post /wp-admin/post-new.php | 23.76 ▲17.87 | 239.98 ▲150.89 |
Media Library /wp-admin/upload.php | 21.11 ▲17.88 | 242.85 ▲213.27 |
Operation log /wp-admin/admin.php?page=usces_loglist | 21.08 | 157.04 |
New Order or Estimate /wp-admin/admin.php?page=usces_ordernew | 21.67 | 184.69 |
General Setting /wp-admin/admin.php?page=usces_initial | 21.36 | 159.36 |
Settlement Setting /wp-admin/admin.php?page=usces_settlement | 21.14 | 168.11 |
Cart Page Setting /wp-admin/admin.php?page=usces_cart | 21.23 | 167.50 |
E-mail Setting /wp-admin/admin.php?page=usces_mail | 21.43 | 164.64 |
Business Days Setting /wp-admin/admin.php?page=usces_schedule | 21.49 | 159.14 |
Master Items /wp-admin/admin.php?page=usces_itemedit | 21.38 | 151.81 |
Order List /wp-admin/admin.php?page=usces_orderlist | 21.67 | 154.12 |
List of Members /wp-admin/admin.php?page=usces_memberlist | 21.44 | 153.80 |
Server storage [IO: ▲16.40MB] [DB: ▲0.36MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 363 new files
Database: 13 new tables, 59 new options
New tables |
---|
wp_usces_admin_log |
wp_usces_skus |
wp_usces_order |
wp_usces_access |
wp_usces_ordercart_meta |
wp_usces_opts |
wp_usces_log |
wp_usces_ordercart |
wp_usces_order_meta |
wp_usces_member_meta |
... |
New WordPress options |
---|
usces_display_mode |
widget_welcart-blog-calendar |
usces_memberlist_option |
widget_recent-comments |
usces_custom_customer_select |
usces_db_order |
usces |
usces_upgrade |
can_compress_scripts |
usces_db_opts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Welcart e-Commerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,475 ▲688 | 13.88 ▼0.82 | 7.37 ▲5.35 | 36.39 ▼8.19 |
Dashboard /wp-admin | 2,772 ▲598 | 5.74 ▲0.10 | 85.19 ▼13.17 | 91.13 ▲46.21 |
Posts /wp-admin/edit.php | 2,279 ▲176 | 2.03 ▲0.08 | 38.84 ▼2.79 | 38.28 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,763 ▲237 | 19.93 ▼3.27 | 681.29 ▲80.77 | 53.42 ▲10.34 |
Media Library /wp-admin/upload.php | 1,501 ▲101 | 4.16 ▲0.01 | 97.06 ▲1.64 | 43.99 ▲0.86 |
Operation log /wp-admin/admin.php?page=usces_loglist | 1,460 | 2.13 | 34.15 | 28.99 |
New Order or Estimate /wp-admin/admin.php?page=usces_ordernew | 2,690 | 2.58 | 79.76 | 40.07 |
General Setting /wp-admin/admin.php?page=usces_initial | 2,394 | 2.46 | 71.88 | 43.63 |
Settlement Setting /wp-admin/admin.php?page=usces_settlement | 1,077 | 2.38 | 56.90 | 62.48 |
Cart Page Setting /wp-admin/admin.php?page=usces_cart | 1,883 | 2.09 | 45.80 | 48.01 |
E-mail Setting /wp-admin/admin.php?page=usces_mail | 2,200 | 2.25 | 41.74 | 43.73 |
Business Days Setting /wp-admin/admin.php?page=usces_schedule | 5,129 | 1.85 | 34.71 | 43.90 |
Master Items /wp-admin/admin.php?page=usces_itemedit | 1,346 | 2.60 | 53.99 | 32.79 |
Order List /wp-admin/admin.php?page=usces_orderlist | 3,111 | 3.71 | 99.06 | 36.22 |
List of Members /wp-admin/admin.php?page=usces_memberlist | 1,911 | 2.19 | 58.22 | 33.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.36MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 13 tables
- wp_usces_log
- wp_usces_skus
- wp_usces_order_meta
- wp_usces_access
- wp_usces_order
- wp_usces_ordercart_meta
- wp_usces_ordercart
- wp_usces_member
- wp_usces_opts
- wp_usces_item
- ...
- This plugin does not fully uninstall, leaving 59 options in the database
- usces_db_ordercart
- usces_db_access
- usces_customer_status
- widget_welcart_post
- usces_order_mail_print_fields
- usces_memberlist_option
- db_upgraded
- usces_wcid
- widget_recent-comments
- usces_upgrade2
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=usces_memberlist
- > Notice in wp-content/plugins/usc-e-shop/classes/memberList.class.php+49
Trying to access array offset on value of type bool
- 16 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=usces_orderlist
- > Notice in wp-content/plugins/usc-e-shop/classes/orderList2.class.php+209
Trying to access array offset on value of type null
SRP 0% 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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/usc-e-shop/pdf/tcpdf/tools/tcpdf_addfont.php
- > /wp-content/plugins/usc-e-shop/includes/edit-form-advanced34.php
- 157× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'USCES_PLUGIN_DIR/classes/dataList.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/usc-e-shop/includes/member_list.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/usc-e-shop/includes/admin_member.php:8
- > PHP Fatal error
require_once(): Failed opening required 'USCES_PLUGIN_DIR/classes/fpdf/fpdf_tpl.php' (include_path='.:/usr/share/php') in wp-content/plugins/usc-e-shop/classes/fpdf/fpdi.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function usces_get_system_option() in wp-content/plugins/usc-e-shop/includes/delivery_secure_form.php:5
- > PHP Warning
require_once(USCES_PLUGIN_DIR/classes/fpdf/mbfpdf.php): failed to open stream: No such file or directory in wp-content/plugins/usc-e-shop/classes/fpdf/fpdf_tpl.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/usc-e-shop/templates/cart/cart.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/usc-e-shop/templates/member/member_verifying.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_reset_vars() in wp-content/plugins/usc-e-shop/includes/usces_item_master_edit.php:12
- > PHP Fatal error
require_once(): Failed opening required 'USCES_PLUGIN_DIR/classes/memberList.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/usc-e-shop/includes/memberlist_page.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/usc-e-shop/classes/loglist.class.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% 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:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add images for these screenshots: #1 (Item List page on the admin screen), #2 (Editing orders page on the admin screen), #3 (Top page(Free official theme 'Welcart Basic')), #4 (Item page(Free official theme 'Welcart Basic'))
- Requires php: Version format is invalid
usc-e-shop/usc-e-shop.php 92% from 13 tests
The primary PHP file in "Welcart e-Commerce" version 2.9.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin199,988 lines of code in 273 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 230 | 13,823 | 30,558 | 164,918 |
PO File | 6 | 11,778 | 19,265 | 25,641 |
CSS | 11 | 321 | 169 | 4,829 |
JavaScript | 24 | 500 | 671 | 4,521 |
JSON | 2 | 0 | 0 | 79 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 4,378)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 165.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,378.00 |
Average method complexity | 8.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 129 | |
▷ Abstract classes | 5 | 3.88% |
▷ Concrete classes | 124 | 96.12% |
▷ Final classes | 0 | 0.00% |
Methods | 2,851 | |
▷ Static methods | 185 | 6.49% |
▷ Public methods | 2,264 | 79.41% |
▷ Protected methods | 406 | 14.24% |
▷ Private methods | 181 | 6.35% |
Functions | 789 | |
▷ Named functions | 773 | 97.97% |
▷ Anonymous functions | 16 | 2.03% |
Constants | 433 | |
▷ Global constants | 292 | 67.44% |
▷ Class constants | 141 | 32.56% |
▷ Public constants | 141 | 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
42 compressed PNG files occupy 0.50MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/jquery/color/hv.png | 2.80KB | 7.32KB | 0.00% |
images/search.png | 1.61KB | 1.45KB | ▼ 9.71% |
js/jquery/color/hs.png | 2.62KB | 7.54KB | 0.00% |
css/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
images/login.png | 1.57KB | 1.44KB | ▼ 8.31% |