Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.68MB] [CPU: ▼0.44ms] Passed 4 tests
An overview of server-side resources used by XT Floating Cart for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.72 | 43.15 ▼1.22 |
Dashboard /wp-admin | 4.05 ▲0.74 | 59.72 ▲13.58 |
Posts /wp-admin/edit.php | 4.09 ▲0.74 | 49.82 ▼0.88 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.70 | 93.30 ▼3.48 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 38.37 ▲3.81 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.13 | 37.94 |
Server storage [IO: ▲9.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 844 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_active_plugins |
can_compress_scripts |
fs_accounts |
xtfw_active_plugins |
fs_debug_mode |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for XT Floating Cart for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 14.45 ▲0.08 | 1.72 ▼0.18 | 32.85 ▼5.47 |
Dashboard /wp-admin | 2,235 ▲53 | 5.79 ▲0.84 | 97.85 ▼6.05 | 41.65 ▲2.80 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.05 ▲0.01 | 35.70 ▼4.36 | 36.51 ▲0.42 |
Add New Post /wp-admin/post-new.php | 1,535 ▲5 | 23.22 ▲5.01 | 683.66 ▲42.39 | 73.98 ▲21.76 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.21 ▲0.01 | 97.20 ▲0.88 | 47.87 ▼2.86 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,085 | 1.84 | 27.70 | 27.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_recent-posts
- fs_accounts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- fs_active_plugins
- theysaidso_admin_options
- db_upgraded
- fs_debug_mode
- xtfw_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/controls/views/textarea.php
- > /wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/modules/webfonts/class-xirki-fonts-helper.php
- > /wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/controls/views/radio.php
- > /wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/controls/views/select.php
- > /wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/controls/views/number.php
- > /wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/controls/views/color.php
- > /wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/controls/views/generic.php
- > /wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/controls/views/code.php
- 98× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Output_Property' not found in wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/modules/css/property/class-xirki-output-property-background-image.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field' not found in wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/field/class-xirki-field-code.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Output_Property' not found in wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/modules/css/property/class-xirki-output-property-background-position.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/modules/custom-sections/sections/class-xirki-sections-expanded-section.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field' not found in wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/field/class-xirki-field-custom.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field_Select' not found in wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/field/class-xirki-field-preset.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field' not found in wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/field/class-xirki-field-background.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field_Checkbox' not found in wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/field/class-xirki-field-toggle.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Output_Property' not found in wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/modules/css/property/class-xirki-output-property-font-family.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field_Xirki_Generic' not found in wp-content/plugins/woo-floating-cart-lite/xt-framework/includes/customizer/xirki/field/class-xirki-field-url.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in woo-floating-cart-lite/assets to your readme.txt
- Tags: You are using too many tags: 13 tag instead of maximum 10
woo-floating-cart-lite/xt-woo-floating-cart.php 69% from 13 tests
This is the main PHP file of "XT Floating Cart for WooCommerce" version 2.7.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-floating-cart-lite.php" instead of "xt-woo-floating-cart.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 243 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "3.0.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin101,031 lines of code in 681 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 380 | 13,159 | 28,792 | 53,631 |
JavaScript | 154 | 7,079 | 4,573 | 26,456 |
JSON | 5 | 0 | 0 | 8,319 |
Sass | 79 | 1,160 | 92 | 6,807 |
SVG | 15 | 6 | 12 | 2,815 |
CSS | 41 | 112 | 25 | 1,728 |
Markdown | 2 | 352 | 0 | 1,107 |
XML | 4 | 24 | 53 | 141 |
YAML | 1 | 7 | 0 | 27 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 31.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 222 | |
▷ Abstract classes | 5 | 2.25% |
▷ Concrete classes | 217 | 97.75% |
▷ Final classes | 10 | 4.61% |
Methods | 2,338 | |
▷ Static methods | 334 | 14.29% |
▷ Public methods | 1,668 | 71.34% |
▷ Protected methods | 267 | 11.42% |
▷ Private methods | 403 | 17.24% |
Functions | 285 | |
▷ Named functions | 196 | 68.77% |
▷ Anonymous functions | 89 | 31.23% |
Constants | 175 | |
▷ Global constants | 125 | 71.43% |
▷ Class constants | 50 | 28.57% |
▷ Public constants | 50 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
61 PNG files occupy 1.01MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
xt-framework/assets/css/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png | 0.09KB | 0.16KB | 0.00% |
xt-framework/includes/customizer/xirki/assets/images/2cl.png | 0.85KB | 0.27KB | ▼ 68.48% |
xt-framework/dist/pricing/f64b1d31e75340a52b5dcf7560c5b995.png | 11.72KB | 7.39KB | ▼ 36.95% |
xt-framework/assets/css/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.08KB | 0.17KB | 0.00% |
xt-framework/includes/admin-tabs/assets/images/logo.png | 14.85KB | 5.17KB | ▼ 65.15% |