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
Installer ran successfully
Server metrics [RAM: ▲2.40MB] [CPU: ▲10.75ms] Passed 4 tests
Server-side resources used by Ultimate Product Catalog
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.83 ▲2.36 | 50.89 ▲3.98 |
Dashboard /wp-admin | 5.75 ▲2.44 | 100.00 ▲49.79 |
Posts /wp-admin/edit.php | 5.78 ▲2.42 | 67.77 ▲22.12 |
Add New Post /wp-admin/post-new.php | 8.61 ▲2.72 | 102.67 ▲0.96 |
Media Library /wp-admin/upload.php | 5.62 ▲2.38 | 49.35 ▲15.92 |
Import /wp-admin/edit.php?post_type=upcp_product&page=ewd-upcp-import | 5.62 | 49.00 |
Catalogs /wp-admin/edit.php?post_type=upcp_catalog | 5.78 | 52.79 |
Add New /wp-admin/post-new.php?post_type=upcp_product | 8.63 | 96.38 |
Product Page /wp-admin/edit.php?post_type=upcp_product&page=ewd-upcp-product-page | 5.62 | 52.17 |
Export /wp-admin/edit.php?post_type=upcp_product&page=ewd-upcp-export | 5.62 | 51.83 |
Dashboard /wp-admin/edit.php?post_type=upcp_product&page=ewd-upcp-dashboard | 5.62 | 50.50 |
Tags /wp-admin/edit-tags.php?taxonomy=upcp-product-tag&post_type=upcp_product | 5.71 | 58.67 |
About Us /wp-admin/edit.php?post_type=upcp_product&page=ewd-upcp-about-us | 5.62 | 58.05 |
Ultimate Product Catalog - Welcome! /wp-admin/index.php?page=ewd-upcp-getting-started | 5.61 | 48.61 |
Categories /wp-admin/edit-tags.php?taxonomy=upcp-product-category&post_type=upcp_product | 5.71 | 52.96 |
Server storage [IO: ▲9.77MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,029 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-posts |
ewd-upcp-permission-level |
widget_recent-comments |
can_compress_scripts |
widget_ewd_upcp_display_recent_products |
widget_ewd_upcp_display_product_list |
widget_ewd_upcp_display_random_products |
widget_ewd_upcp_display_popular_products |
db_upgraded |
ewd-upcp-installation-time |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Ultimate Product Catalog
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲140 | 14.33 ▲0.05 | 1.81 ▲0.17 | 37.57 ▼5.29 |
Dashboard /wp-admin | 2,276 ▲96 | 5.65 ▼0.03 | 97.05 ▼2.58 | 41.16 ▼6.58 |
Posts /wp-admin/edit.php | 2,178 ▲78 | 2.04 ▲0.10 | 39.97 ▲3.74 | 36.32 ▲4.67 |
Add New Post /wp-admin/post-new.php | 1,763 ▲237 | 24.77 ▲1.83 | 731.94 ▲38.44 | 40.33 ▼13.26 |
Media Library /wp-admin/upload.php | 1,481 ▲81 | 4.24 ▲0.03 | 99.93 ▼3.97 | 44.13 ▼0.47 |
Import /wp-admin/edit.php?post_type=upcp_product&page=ewd-upcp-import | 1,108 | 3.39 | 56.26 | 40.76 |
Catalogs /wp-admin/edit.php?post_type=upcp_catalog | 1,390 | 3.57 | 52.84 | 37.55 |
Add New /wp-admin/post-new.php?post_type=upcp_product | 1,799 | 16.78 | 864.42 | 42.84 |
Product Page /wp-admin/edit.php?post_type=upcp_product&page=ewd-upcp-product-page | 1,105 | 3.34 | 44.86 | 32.08 |
Export /wp-admin/edit.php?post_type=upcp_product&page=ewd-upcp-export | 1,108 | 3.32 | 46.02 | 32.32 |
Dashboard /wp-admin/edit.php?post_type=upcp_product&page=ewd-upcp-dashboard | 1,475 | 3.33 | 43.64 | 110.48 |
Tags /wp-admin/edit-tags.php?taxonomy=upcp-product-tag&post_type=upcp_product | 1,569 | 3.61 | 52.61 | 38.63 |
About Us /wp-admin/edit.php?post_type=upcp_product&page=ewd-upcp-about-us | 1,478 | 3.38 | 44.45 | 62.09 |
Ultimate Product Catalog - Welcome! /wp-admin/index.php?page=ewd-upcp-getting-started | 1,503 | 3.26 | 47.93 | 31.00 |
Categories /wp-admin/edit-tags.php?taxonomy=upcp-product-category&post_type=upcp_product | 1,612 | 3.62 | 51.90 | 38.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 13 options in the database
- widget_ewd_upcp_display_random_products
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_ewd_upcp_display_search_bar
- widget_ewd_upcp_display_popular_products
- widget_ewd_upcp_display_recent_products
- ewd-upcp-permission-level
- ewd-upcp-installation-time
- widget_theysaidso_widget
- ...
Smoke tests 25% 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 0% 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
The following issues need your attention
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ultimate-product-catalogue/ewd-upcp-templates/single-product-thumbnails-next-button.php
- > /wp-content/plugins/ultimate-product-catalogue/ewd-upcp-templates/catalog-category-footer.php
- > /wp-content/plugins/ultimate-product-catalogue/ewd-upcp-templates/catalog-product-comparison.php
- > /wp-content/plugins/ultimate-product-catalogue/ewd-upcp-templates/single-product-thumbnails-previous-button.php
- 403× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Exception' not found in wp-content/plugins/ultimate-product-catalogue/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Exception.php:7
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/ultimate-product-catalogue/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Arabic.php on line 9
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/ultimate-product-catalogue/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Distributions/Poisson.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ultimate-product-catalogue/ewd-upcp-templates/single-product-custom-element-subcategories-label.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ultimate-product-catalogue/ewd-upcp-templates/single-product-custom-element-price.php:1
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Cell\\DefaultValueBinder' not found in wp-content/plugins/ultimate-product-catalogue/lib/PHPSpreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/AdvancedValueBinder.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ultimate-product-catalogue/ewd-upcp-templates/catalog-product-sale-price.php:3
- > PHP Fatal error
Uncaught Error: Class 'sapAdminPageSetting_2_6_13' not found in wp-content/plugins/ultimate-product-catalogue/lib/simple-admin-pages/classes/AdminPageSetting.Count.class.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ultimate-product-catalogue/ewd-upcp-templates/single-product-custom-element-additional-images.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ultimate-product-catalogue/ewd-upcp-templates/catalog-product-tags.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/index.php?page=ewd-upcp-getting-started
- > Network (severe)
wp-content/plugins/ultimate-product-catalogue/assets/css/admin.css?ver=5.2.13 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ultimate-product-catalogue/ultimate-product-catalogue.php 92% from 13 tests
The main file in "Ultimate Product Catalog" v. 5.2.13 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin117,659 lines of code in 843 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 703 | 21,730 | 42,302 | 89,992 |
CSS | 23 | 599 | 479 | 8,976 |
PO File | 13 | 3,750 | 5,509 | 8,798 |
JavaScript | 71 | 2,118 | 1,477 | 7,377 |
Markdown | 10 | 411 | 0 | 1,855 |
SVG | 13 | 12 | 0 | 286 |
JSON | 3 | 0 | 0 | 245 |
YAML | 5 | 19 | 12 | 84 |
Bourne Again Shell | 1 | 6 | 3 | 24 |
XML | 1 | 0 | 0 | 22 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,020)
- Method cyclomatic complexity should be reduced to less than 100 (currently 333)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 24.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,020.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 333.00 |
Code structure | ||
---|---|---|
Namespaces | 73 | |
Interfaces | 14 | |
Traits | 1 | |
Classes | 565 | |
▷ Abstract classes | 30 | 5.31% |
▷ Concrete classes | 535 | 94.69% |
▷ Final classes | 2 | 0.37% |
Methods | 5,430 | |
▷ Static methods | 1,620 | 29.83% |
▷ Public methods | 4,053 | 74.64% |
▷ Protected methods | 222 | 4.09% |
▷ Private methods | 1,155 | 21.27% |
Functions | 77 | |
▷ Named functions | 20 | 25.97% |
▷ Anonymous functions | 57 | 74.03% |
Constants | 1,413 | |
▷ Global constants | 10 | 0.71% |
▷ Class constants | 1,403 | 99.29% |
▷ Public constants | 1,236 | 88.10% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
60 PNG files occupy 2.09MB with 0.91MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/premium-screenshots/seo.png | 71.40KB | 23.66KB | ▼ 66.86% |
lib/simple-admin-pages/img/options-asset-star.png | 0.78KB | 0.32KB | ▼ 58.92% |
assets/img/question_mark.png | 0.66KB | 0.40KB | ▼ 38.48% |
lib/simple-admin-pages/img/options-asset-lock.png | 1.05KB | 0.50KB | ▼ 52.28% |
assets/img/Related_FAQ.png | 154.30KB | 152.71KB | ▼ 1.03% |