Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼6.93ms] Passed 4 tests
This is a short check of server-side resources used by Leo Product Recommendations For WooCommerce - Recommended Products For WooCommerce, Upsell Product Popup, Related Product Lightbox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 45.26 ▲1.56 |
Dashboard /wp-admin | 3.58 ▲0.23 | 47.69 ▼21.09 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 52.19 ▼0.73 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 90.20 ▼7.47 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 37.21 ▲3.42 |
Server storage [IO: ▲1.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
woocommerce_cart_redirect_after_add |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
lc_lpr_settings |
woocommerce_enable_ajax_add_to_cart |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Leo Product Recommendations For WooCommerce - Recommended Products For WooCommerce, Upsell Product Popup, Related Product Lightbox
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲70 | 14.34 ▼0.00 | 2.18 ▲0.29 | 42.92 ▼8.30 |
Dashboard /wp-admin | 2,198 ▲24 | 5.53 ▼0.05 | 92.66 ▼10.12 | 41.04 ▲2.64 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.96 ▲0.02 | 40.81 ▼1.26 | 37.25 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.22 ▲0.07 | 634.44 ▲13.24 | 52.70 ▼9.86 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.20 ▲0.01 | 98.39 ▲1.10 | 41.09 ▼1.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- widget_theysaidso_widget
- lc_lpr_settings
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- woocommerce_cart_redirect_after_add
- can_compress_scripts
- widget_recent-posts
- woocommerce_enable_ajax_add_to_cart
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/leo-product-recommendations/templates/modal-modal.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: ajax add to cart popup, woocommerce cross-sell, woocommerce popup, woocommerce grouped product, woocommerce related products...
leo-product-recommendations/leo-product-recommendations.php 92% from 13 tests
The primary PHP file in "Leo Product Recommendations For WooCommerce - Recommended Products For WooCommerce, Upsell Product Popup, Related Product Lightbox" version 2.6.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin35,849 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 28,348 |
JavaScript | 22 | 498 | 268 | 2,993 |
PHP | 13 | 579 | 786 | 2,572 |
Sass | 3 | 218 | 8 | 1,239 |
CSS | 7 | 74 | 30 | 697 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 94 | |
▷ Static methods | 2 | 2.13% |
▷ Public methods | 90 | 95.74% |
▷ Protected methods | 2 | 2.13% |
▷ Private methods | 2 | 2.13% |
Functions | 32 | |
▷ Named functions | 11 | 34.38% |
▷ Anonymous functions | 21 | 65.62% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin