Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲6.20MB] [CPU: ▲41.67ms] 50% from 4 tests
This is a short check of server-side resources used by XT Ajax Add To Cart for WooCommerce
The following require your attention
- RAM: The total memory usage must be kept under 10MB (currently 10.24MB on /wp-admin/admin.php?page=freemius)
- Extra RAM: The extra memory usage should kept under 5MB (currently 6.20MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.78 ▲6.27 | 98.21 ▲60.16 |
Dashboard /wp-admin | 10.24 ▲6.89 | 81.66 ▲25.58 |
Posts /wp-admin/edit.php | 10.23 ▲6.84 | 102.38 ▲53.33 |
Add New Post /wp-admin/post-new.php | 10.74 ▲4.82 | 144.40 ▲34.52 |
Media Library /wp-admin/upload.php | 10.24 ▲6.97 | 90.37 ▲53.26 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 10.24 | 69.27 |
Server storage [IO: ▲8.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 756 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
fs_debug_mode |
fs_active_plugins |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
xtfw_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by XT Ajax Add To Cart for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.28 ▼0.27 | 2.10 ▲0.47 | 45.26 ▲5.29 |
Dashboard /wp-admin | 2,223 ▲46 | 5.56 ▼0.02 | 87.48 ▼0.53 | 44.32 ▼5.57 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.14 ▲0.20 | 45.33 ▲4.46 | 40.24 ▲0.60 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 22.04 ▼1.46 | 635.04 ▼6.80 | 52.34 ▲1.94 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.21 ▲0.05 | 103.14 ▼7.88 | 48.45 ▲3.40 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,073 | 1.82 | 27.36 | 31.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/xt-woo-ajax-add-to-cart/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
- xtfw_active_plugins
- widget_theysaidso_widget
- fs_accounts
- fs_active_plugins
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- fs_debug_mode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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 fix the following
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/controls/views/number.php
- > /wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/controls/views/color.php
- > /wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/controls/views/radio.php
- > /wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/controls/views/generic.php
- > /wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/controls/views/code.php
- > /wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/controls/views/select.php
- > /wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/modules/webfonts/class-xirki-fonts-helper.php
- > /wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/controls/views/textarea.php
- 70× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Upload_Control' not found in wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/controls/php/class-xirki-control-upload.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Output' not found in wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/modules/css/field/class-xirki-output-field-typography.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field' not found in wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/field/class-xirki-field-xirki-generic.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field_Xirki_Generic' not found in wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/field/class-xirki-field-generic.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field' not found in wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/field/class-xirki-field-radio.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field' not found in wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/field/class-xirki-field-multicheck.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field_Xirki_Generic' not found in wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/field/class-xirki-field-textarea.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field_URL' not found in wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/field/class-xirki-field-link.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field' not found in wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/field/class-xirki-field-code.php:15
- > PHP Fatal error
Uncaught Error: Class 'Xirki_Field' not found in wp-content/plugins/xt-woo-ajax-add-to-cart/xt-framework/includes/customizer/xirki/field/class-xirki-field-color.php:15
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 90% 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 need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #2, #3, #4, #5 in xt-woo-ajax-add-to-cart/assets to your readme.txt
xt-woo-ajax-add-to-cart/xt-woo-ajax-add-to-cart.php 85% from 13 tests
The primary PHP file in "XT Ajax Add To Cart for WooCommerce" version 1.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 173 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "4.0")
Code Analysis 97% 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
There were no executable files found in this plugin95,035 lines of code in 616 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 330 | 12,665 | 28,170 | 50,350 |
JavaScript | 148 | 6,490 | 4,509 | 24,125 |
JSON | 5 | 0 | 0 | 8,319 |
Sass | 79 | 1,160 | 92 | 6,807 |
SVG | 12 | 0 | 9 | 2,786 |
CSS | 35 | 86 | 4 | 1,373 |
Markdown | 2 | 352 | 0 | 1,107 |
XML | 4 | 24 | 53 | 141 |
YAML | 1 | 7 | 0 | 27 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 31.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 219 | |
▷ Abstract classes | 5 | 2.28% |
▷ Concrete classes | 214 | 97.72% |
▷ Final classes | 10 | 4.67% |
Methods | 2,301 | |
▷ Static methods | 334 | 14.52% |
▷ Public methods | 1,631 | 70.88% |
▷ Protected methods | 267 | 11.60% |
▷ Private methods | 403 | 17.51% |
Functions | 247 | |
▷ Named functions | 162 | 65.59% |
▷ Anonymous functions | 85 | 34.41% |
Constants | 175 | |
▷ Global constants | 125 | 71.43% |
▷ Class constants | 50 | 28.57% |
▷ Public constants | 50 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
44 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
xt-framework/includes/customizer/xirki/assets/images/jquery.fs.stepper-arrows.png | 0.30KB | 0.18KB | ▼ 40.52% |
xt-framework/assets/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png | 3.69KB | 4.18KB | 0.00% |
xt-framework/dist/pricing/fde48e4609a6ddc11d639fc2421f2afd.png | 10.97KB | 5.78KB | ▼ 47.37% |
xt-framework/includes/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
xt-framework/includes/customizer/xirki/assets/images/2cl.png | 0.85KB | 0.27KB | ▼ 68.48% |