Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/prodotti/prodotti_widget.php+72
Function create_function() is deprecated
Server metrics [RAM: ▼1.38MB] [CPU: ▼48.91ms] Passed 4 tests
A check of server-side resources used by Prodotti
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.61 ▼0.85 | 7.08 ▼35.04 |
Dashboard /wp-admin | 2.63 ▼0.68 | 11.01 ▼42.86 |
Posts /wp-admin/edit.php | 2.63 ▼0.73 | 11.13 ▼35.76 |
Add New Post /wp-admin/post-new.php | 2.63 ▼3.26 | 10.27 ▼81.96 |
Media Library /wp-admin/upload.php | 2.63 ▼0.60 | 9.30 ▼24.25 |
Tecnologia /wp-admin/edit-tags.php?taxonomy=tecnologia&post_type=product | 2.63 | 9.77 |
Taglia /wp-admin/edit-tags.php?taxonomy=taglia&post_type=product | 2.63 | 9.29 |
Colore /wp-admin/edit-tags.php?taxonomy=colore&post_type=product | 2.63 | 10.58 |
Tag /wp-admin/edit-tags.php?taxonomy=product_tag&post_type=product | 2.63 | 9.42 |
Tutti i Prodotti /wp-admin/edit.php?post_type=product | 2.63 | 8.96 |
Prodotti /wp-admin/options-general.php?page=prodotti | 2.63 | 9.59 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 2.64 | 9.40 |
Aggiungi Prodotto /wp-admin/post-new.php?post_type=product | 2.63 | 9.26 |
Categorie /wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product | 2.63 | 20.94 |
Caratteristica /wp-admin/edit-tags.php?taxonomy=caratteristica&post_type=product | 2.63 | 9.74 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_prodotti_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Prodotti
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲165 | 13.27 ▼1.17 | 1.54 ▼0.18 | 39.86 ▼8.10 |
Dashboard /wp-admin | 2,291 ▲100 | 5.84 ▲0.73 | 115.92 ▲12.52 | 86.23 ▲39.64 |
Posts /wp-admin/edit.php | 2,200 ▲111 | 2.06 ▲0.05 | 40.59 ▲3.08 | 37.53 ▲1.93 |
Add New Post /wp-admin/post-new.php | 1,597 ▲83 | 17.63 ▲0.09 | 643.64 ▼10.72 | 54.73 ▼13.68 |
Media Library /wp-admin/upload.php | 1,487 ▲96 | 4.24 ▲0.06 | 98.55 ▼3.12 | 84.87 ▲41.18 |
Tecnologia /wp-admin/edit-tags.php?taxonomy=tecnologia&post_type=product | 1,364 | 2.33 | 27.46 | 39.85 |
Taglia /wp-admin/edit-tags.php?taxonomy=taglia&post_type=product | 1,364 | 2.33 | 27.68 | 39.91 |
Colore /wp-admin/edit-tags.php?taxonomy=colore&post_type=product | 1,364 | 2.33 | 27.13 | 37.45 |
Tag /wp-admin/edit-tags.php?taxonomy=product_tag&post_type=product | 1,367 | 2.33 | 30.14 | 38.55 |
Tutti i Prodotti /wp-admin/edit.php?post_type=product | 1,218 | 1.99 | 34.24 | 34.09 |
Prodotti /wp-admin/options-general.php?page=prodotti | 1,024 | 2.21 | 24.75 | 28.92 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,065 | 2.05 | 25.23 | 29.06 |
Aggiungi Prodotto /wp-admin/post-new.php?post_type=product | 3,049 | 7.82 | 177.59 | 137.76 |
Categorie /wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product | 1,370 | 2.33 | 28.40 | 35.77 |
Caratteristica /wp-admin/edit-tags.php?taxonomy=caratteristica&post_type=product | 1,370 | 2.33 | 28.35 | 40.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/prodotti/prodotti_widget.php+72
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_prodotti_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 11 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=caratteristica&post_type=product
- > Deprecated in wp-content/plugins/prodotti/prodotti_widget.php+72
Function create_function() is deprecated
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=caratteristica&post_type=product
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/post-new.php?post_type=product
- > Notice in wp-content/plugins/prodotti/prodotti.php+91
Undefined index: product
- > GET request to /wp-admin/post-new.php?post_type=product
- > Notice in wp-content/plugins/prodotti/prodotti.php+91
Undefined offset: 1
- > GET request to /wp-admin/post-new.php?post_type=product
- > Notice in wp-content/plugins/prodotti/prodotti.php+92
Undefined offset: 6
- > GET request to /wp-admin/post-new.php?post_type=product
- > Notice in wp-content/plugins/prodotti/prodotti.php+93
Undefined offset: 9
- > GET request to /wp-admin/post-new.php?post_type=product
- > Notice in wp-content/plugins/prodotti/prodotti.php+97
Undefined offset: 8
- > GET request to /wp-admin/post-new.php?post_type=product
- > Notice in wp-content/plugins/prodotti/prodotti.php+98
Undefined offset: 10
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/prodotti/prodotti.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/prodotti/prodotti_metabox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/prodotti/prodotti_shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/prodotti/class-tgm-plugin-activation.php:161
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/prodotti/prodotti_opzioni.php:82
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prodotti/prodotti_tassonomie.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prodotti/prodotti_pluginaggiuntivi.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/prodotti/prodotti_widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== prodotti ===
)
prodotti/prodotti.php Passed 13 tests
The main PHP script in "Prodotti" version 1.0.0 is automatically included on every request by WordPress
31 characters long description:
gestione prodotti per wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,716 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 401 | 800 | 1,639 |
PO File | 1 | 22 | 27 | 77 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 42.40 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 5.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 1 | 2.08% |
▷ Public methods | 42 | 87.50% |
▷ Protected methods | 6 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/prodotti.png | 0.98KB | 0.98KB | 0.00% |