Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/demomentsomtres-wine-catalog/demomentsomtres-catalog.php+61
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.47ms] Passed 4 tests
A check of server-side resources used by DeMomentSomTres Wine and Cheese Catalog
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.73 ▼36.18 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.70 ▼42.64 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.21 ▼42.91 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.59 ▼96.15 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.19 ▼29.67 |
Product Types /wp-admin/edit-tags.php?taxonomy=product-type&post_type=product | 2.05 | 5.77 |
Milk Types /wp-admin/edit-tags.php?taxonomy=product-cheese-milk-type&post_type=product | 2.05 | 6.11 |
Producers /wp-admin/edit-tags.php?taxonomy=product-mark&post_type=product | 2.05 | 7.71 |
Products /wp-admin/edit.php?post_type=product | 2.05 | 6.89 |
Add Product /wp-admin/post-new.php?post_type=product | 2.05 | 5.91 |
Wine Grapes /wp-admin/edit-tags.php?taxonomy=product-wine-grape&post_type=product | 2.05 | 12.16 |
Allergens /wp-admin/edit-tags.php?taxonomy=product-allergens-info&post_type=product | 2.05 | 6.07 |
Milk origins /wp-admin/edit-tags.php?taxonomy=product-cheese-milk-animal&post_type=product | 2.05 | 7.37 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 2.05 | 7.10 |
Wine Types /wp-admin/edit-tags.php?taxonomy=product-wine-type&post_type=product | 2.05 | 6.85 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_productsincategorywidget |
widget_recent-comments |
db_upgraded |
widget_productsalesurlwidget |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_productnamewidget |
widget_markdescriptionwidget |
widget_marklogowidget |
... |
Browser metrics Passed 4 tests
DeMomentSomTres Wine and Cheese Catalog: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲136 | 14.34 ▼0.19 | 1.73 ▲0.26 | 37.09 ▼3.16 |
Dashboard /wp-admin | 2,300 ▲123 | 5.55 ▼0.12 | 82.35 ▼1.46 | 41.67 ▼1.58 |
Posts /wp-admin/edit.php | 2,214 ▲111 | 2.16 ▲0.18 | 42.68 ▲7.10 | 46.69 ▲12.73 |
Add New Post /wp-admin/post-new.php | 1,614 ▲88 | 23.16 ▲0.17 | 694.44 ▲20.98 | 63.56 ▲8.13 |
Media Library /wp-admin/upload.php | 1,516 ▲116 | 4.25 ▲0.09 | 95.86 ▼5.74 | 47.66 ▲1.19 |
Product Types /wp-admin/edit-tags.php?taxonomy=product-type&post_type=product | 1,390 | 2.30 | 30.02 | 35.62 |
Milk Types /wp-admin/edit-tags.php?taxonomy=product-cheese-milk-type&post_type=product | 1,390 | 2.30 | 27.51 | 31.15 |
Producers /wp-admin/edit-tags.php?taxonomy=product-mark&post_type=product | 1,387 | 2.30 | 28.02 | 33.60 |
Products /wp-admin/edit.php?post_type=product | 1,229 | 1.99 | 33.53 | 35.31 |
Add Product /wp-admin/post-new.php?post_type=product | 2,615 | 7.86 | 165.60 | 69.57 |
Wine Grapes /wp-admin/edit-tags.php?taxonomy=product-wine-grape&post_type=product | 1,384 | 2.31 | 27.98 | 30.29 |
Allergens /wp-admin/edit-tags.php?taxonomy=product-allergens-info&post_type=product | 1,390 | 2.30 | 26.82 | 36.42 |
Milk origins /wp-admin/edit-tags.php?taxonomy=product-cheese-milk-animal&post_type=product | 1,387 | 2.31 | 28.25 | 35.77 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,041 | 2.06 | 25.38 | 24.52 |
Wine Types /wp-admin/edit-tags.php?taxonomy=product-wine-type&post_type=product | 1,387 | 2.31 | 27.54 | 33.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/demomentsomtres-wine-catalog/demomentsomtres-catalog.php+61
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_productsalesurlwidget
- widget_theysaidso_widget
- widget_marklogowidget
- widget_recent-posts
- can_compress_scripts
- widget_productsincategorywidget
- widget_productnamewidget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 66 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=product-wine-type&post_type=product
- > Deprecated in wp-content/plugins/demomentsomtres-wine-catalog/demomentsomtres-catalog.php+66
Function create_function() is deprecated
- 22 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=product-wine-type&post_type=product
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in ProductNameWidget is deprecated since version 4.3.0! Use __construct() instead.
- 11 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=product-wine-type&post_type=product
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in MarkDescriptionWidget is deprecated since version 4.3.0! Use __construct() instead.
- 11 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=product-wine-type&post_type=product
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in ProductsInCategoryWidget is deprecated since version 4.3.0! Use __construct() instead.
- 11 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=product-wine-type&post_type=product
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in ProductSalesURLWidget is deprecated since version 4.3.0! Use __construct() instead.
- 11 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=product-wine-type&post_type=product
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in MarkLogoWidget is deprecated since version 4.3.0! Use __construct() instead.
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/demomentsomtres-wine-catalog/lib/class-tgm-plugin-activation.php:161
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/demomentsomtres-wine-catalog/lib/class-tgm-plugin-activation.php:161
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/demomentsomtres-wine-catalog/demomentsomtres-catalog-widgets.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: wines, product portfolio, cheese
demomentsomtres-wine-catalog/demomentsomtres-catalog.php 85% from 13 tests
The primary PHP file in "DeMomentSomTres Wine and Cheese Catalog" version 2.05 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 285 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("demomentsomtres-wine-catalog.php" instead of "demomentsomtres-catalog.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
There were no executable files found in this plugin3,217 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 439 | 876 | 2,431 |
PO File | 2 | 251 | 314 | 643 |
Markdown | 1 | 50 | 0 | 143 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 1 | 1.05% |
▷ Public methods | 89 | 93.68% |
▷ Protected methods | 6 | 6.32% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 16 | 100.00% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin