Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼15.52ms] Passed 4 tests
Server-side resources used by Carousel Upsells and Related Product for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.01 | 40.18 ▼9.54 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.28 ▼11.20 |
Posts /wp-admin/edit.php | 3.38 ▼0.47 | 52.74 ▼18.78 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.56 ▼22.57 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 42.91 ▲9.81 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Carousel Upsells and Related Product for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.23 ▼1.36 | 1.49 ▼0.91 | 39.39 ▼7.62 |
Dashboard /wp-admin | 2,206 ▲15 | 4.87 ▲0.02 | 112.00 ▼28.46 | 45.58 ▼24.23 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.04 ▼0.03 | 38.79 ▼5.64 | 33.30 ▼5.02 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.57 ▲0.29 | 601.53 ▼64.51 | 54.44 ▲0.65 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.26 ▲0.07 | 104.89 ▼8.32 | 45.80 ▼2.13 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/carousel-upsells-and-related-product-for-woocommerce/includes/ffxf_related_and_upsells_rate.php:6
- > 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)
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
carousel-upsells-and-related-product-for-woocommerce/ffxf-woo-glide-related-and-upsells.php 77% from 13 tests
Analyzing the main PHP file in "Carousel Upsells and Related Product for Woocommerce" version 0.4.6
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.8" instead of "3.3.0")
- Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("carousel-upsells-and-related-product-for-woocommerce.php" instead of "ffxf-woo-glide-related-and-upsells.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,212 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 408 | 183 | 1,544 |
JavaScript | 4 | 117 | 20 | 280 |
CSS | 5 | 31 | 7 | 216 |
SVG | 32 | 0 | 0 | 172 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 1.00MB with 0.64MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/center_mod.png | 253.90KB | 104.22KB | ▼ 58.95% |
assets/img/iPhone_6.png | 507.29KB | 138.17KB | ▼ 72.76% |
assets/img/sc_1.png | 202.06KB | 69.62KB | ▼ 65.54% |
assets/img/sc_2.png | 59.57KB | 24.92KB | ▼ 58.16% |