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
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼1.19ms] Passed 4 tests
Analyzing server-side resources used by Related Products Manager for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 43.56 ▲5.47 |
Dashboard /wp-admin | 3.57 ▲0.22 | 51.69 ▼5.45 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 51.04 ▲1.03 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 85.42 ▼5.82 |
Media Library /wp-admin/upload.php | 3.50 ▲0.26 | 41.01 ▲8.76 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 10 new options
New WordPress options |
---|
prowc_related_products_manager_plugin_reviewtrack |
prowc_related_products_manager_plugin_notice_remindlater |
can_compress_scripts |
widget_theysaidso_widget |
prowc_rpmw_activation_time |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
prowc_related_products_manager_version |
Browser metrics Passed 4 tests
Related Products Manager for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲49 | 14.33 ▼0.02 | 1.74 ▲0.23 | 44.52 ▲3.04 |
Dashboard /wp-admin | 2,205 ▲34 | 5.78 ▲0.24 | 89.65 ▲3.42 | 40.08 ▼0.40 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.42 ▲0.47 | 38.20 ▲1.14 | 32.50 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.37 ▼0.18 | 662.88 ▼16.16 | 56.55 ▼2.79 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.39 ▲0.21 | 98.29 ▲3.22 | 41.16 ▼4.06 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 10 options in the database
- db_upgraded
- prowc_related_products_manager_version
- prowc_related_products_manager_plugin_notice_remindlater
- widget_recent-comments
- prowc_rpmw_activation_time
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- prowc_related_products_manager_plugin_reviewtrack
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/related-products-manager-woocommerce/widgets/related-product-manager-wpbakery-widget.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/related-products-manager-woocommerce/widgets/elementor-helper.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: woocommerce, manager, related, products, woo commerce...
related-products-manager-woocommerce/related-products-manager-for-woocommerce.php 92% from 13 tests
The entry point to "Related Products Manager for WooCommerce" version 1.5.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("related-products-manager-woocommerce.php" instead of "related-products-manager-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,564 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 219 | 486 | 3,313 |
CSS | 2 | 3 | 3 | 218 |
JavaScript | 2 | 6 | 2 | 33 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 24.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 60 | |
▷ Static methods | 1 | 1.67% |
▷ Public methods | 58 | 96.67% |
▷ Protected methods | 2 | 3.33% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/admin-rating-rpmw.png | 0.82KB | 0.56KB | ▼ 31.62% |
includes/img/prowc_logo.png | 38.75KB | 12.41KB | ▼ 67.98% |