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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼16.68ms] Passed 4 tests
Analyzing server-side resources used by Product Compare for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.03 | 23.21 ▼13.58 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.96 ▼0.15 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 47.33 ▼13.94 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.29 ▼36.14 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.72 ▼3.05 |
Server storage [IO: ▲3.81MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Product Compare for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,471 ▼264 | 13.49 ▼0.89 | 0.51 ▼1.09 | 17.07 ▼27.35 |
Dashboard /wp-admin | 2,209 ▲20 | 5.84 ▲0.93 | 100.15 ▼17.02 | 41.22 ▼2.61 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.05 ▲0.04 | 39.41 ▼2.16 | 35.81 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 23.34 ▲0.22 | 591.15 ▲1.15 | 58.21 ▲7.37 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.25 ▲0.03 | 102.10 ▲4.53 | 45.36 ▲5.14 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/product-compare-for-woocommerce/public/handler/show_compared_products.php
- > /wp-content/plugins/product-compare-for-woocommerce/admin/class-cdlzr-proco-actions.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in product-compare-for-woocommerce/assets to your readme.txt
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
product-compare-for-woocommerce/product-compare-for-woocommerce.php Passed 13 tests
"Product Compare for WooCommerce" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
73 characters long description:
The plugin give you the ability to compare the products by their category
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin22,879 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 2,905 | 83 | 13,369 |
JavaScript | 8 | 2,410 | 1,114 | 8,583 |
PHP | 13 | 67 | 155 | 834 |
PO File | 1 | 199 | 361 | 93 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 20 | |
▷ Static methods | 16 | 80.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected