Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼302.33ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Cross-Seller
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 64.52 ▲7.63 |
Dashboard /wp-admin | 3.41 ▲0.01 | 34.59 ▼40.94 |
Posts /wp-admin/edit.php | 3.64 ▲0.01 | 43.41 ▼3.77 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 96.13 ▼1,163.50 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 27.61 ▼1.12 |
Server storage [IO: ▲3.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 194 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_debug_mode |
fs_gdpr |
fs_accounts |
fs_active_plugins |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Cross-Seller
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.77 ▼0.22 | 6.24 ▼0.71 | 2.23 ▼0.14 |
Dashboard /wp-admin | 2,892 ▲31 | 6.07 ▼0.11 | 119.05 ▼20.35 | 174.08 ▲15.53 |
Posts /wp-admin/edit.php | 2,688 ▲16 | 3.24 ▼0.01 | 64.10 ▼33.36 | 131.90 ▼24.79 |
Add New Post /wp-admin/post-new.php | 1,661 ▼5 | 16.07 ▼4.66 | 393.80 ▼70.17 | 197.23 ▲33.46 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.54 ▲0.05 | 139.62 ▼2.99 | 229.80 ▲47.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 4 options
- fs_debug_mode
- fs_active_plugins
- fs_gdpr
- fs_accounts
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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wc-cross-seller/freemius/templates/ajax-loader.php
- > /wp-content/plugins/wc-cross-seller/admin/partials/woocommerce-cross-seller-admin-display.php
- > /wp-content/plugins/wc-cross-seller/public/partials/woocommerce-cross-seller-public-display.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wc-cross-seller/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wc-cross-seller/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wc-cross-seller/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wc-cross-seller/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wc-cross-seller/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/wc-cross-seller/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/wc-cross-seller/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wc-cross-seller/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: cross sell, woocommerce, email
wc-cross-seller/woocommerce-cross-seller.php 77% from 13 tests
The main file in "WooCommerce Cross-Seller" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-cross-seller.php" instead of "woocommerce-cross-seller.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version does not match the one declared in readme.txt ("4.3" instead of "3.3")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected32,440 lines of code in 146 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 7,393 | 16,693 | 31,386 |
PO File | 1 | 149 | 181 | 393 |
Markdown | 3 | 101 | 0 | 304 |
JavaScript | 6 | 45 | 116 | 223 |
CSS | 13 | 20 | 4 | 75 |
JSON | 2 | 0 | 0 | 42 |
SVG | 1 | 0 | 0 | 17 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,895)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 78.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,895.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,175 | |
▷ Static methods | 180 | 15.32% |
▷ Public methods | 828 | 70.47% |
▷ Protected methods | 15 | 1.28% |
▷ Private methods | 332 | 28.26% |
Functions | 98 | |
▷ Named functions | 98 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 126 | |
▷ Global constants | 101 | 80.16% |
▷ Class constants | 25 | 19.84% |
▷ Public constants | 25 | 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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
images/cleverpluginslogo.png | 21.10KB | 10.85KB | ▼ 48.61% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |