Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼1.94MB] [CPU: ▼50.81ms] Passed 4 tests
Analyzing server-side resources used by DISPONGO
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.74 ▼38.40 |
Dashboard /wp-admin | 2.07 ▼1.24 | 6.00 ▼40.58 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 6.90 ▼39.63 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 6.53 ▼84.61 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 5.46 ▼31.72 |
Dispongo Settings /wp-admin/options-general.php?page=dispongo_plugin_options | 2.07 | 5.69 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 19 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_dsp_city_list_widget |
widget_theysaidso_widget |
widget_dsp_product_detail_widget |
widget_dsp_user_login_external_widget |
theysaidso_admin_options |
db_upgraded |
widget_dsp_user_new_form_widget |
widget_dsp_continent_list_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by DISPONGO
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲80 | 13.25 ▼1.13 | 1.91 ▲0.04 | 41.45 ▼7.43 |
Dashboard /wp-admin | 2,212 ▲36 | 5.84 ▼0.00 | 97.11 ▼2.76 | 35.38 ▼9.55 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▲0.00 | 40.56 ▼2.46 | 35.96 ▼0.43 |
Add New Post /wp-admin/post-new.php | 6,195 ▲4,675 | 23.50 ▲0.27 | 875.63 ▲194.04 | 50.92 ▲0.05 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.31 ▲0.03 | 95.10 ▼4.97 | 43.90 ▲1.26 |
Dispongo Settings /wp-admin/options-general.php?page=dispongo_plugin_options | 783 | 2.06 | 25.70 | 26.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dispongo-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 19 options
- can_compress_scripts
- widget_dsp_city_list_widget
- theysaidso_admin_options
- widget_dsp_country_list_widget
- widget_dsp_product_detail_widget
- widget_dsp_product_tab_contents_widget
- widget_dsp_user_account_widget
- widget_dsp_product_top_ten_widget
- widget_dsp_product_list_widget
- widget_dsp_product_tab_images_widget
- ...
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dispongo-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dispongo-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dsp_continent_list_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dsp_country_list_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dsp_city_list_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dsp_product_list_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dsp_iframe_includer_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dsp_product_top_ten_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dsp_product_offers_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dsp_product_tab_images_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dsp_product_tab_contents_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dsp_product_detail_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dsp_user_account_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dsp_user_new_form_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in dsp_user_login_external_widget is deprecated since version 4.3.0! Use __construct() instead.
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > Notice in wp-content/plugins/dispongo/dispongo.php+441
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=dispongo_plugin_options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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
- 20× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/dispongo/widgets/templates/product_offers_widget/default.php
- > /wp-content/plugins/dispongo/widgets/templates/product_tab_images_widget/default.php
- > /wp-content/plugins/dispongo/css-dispongo.php
- > /wp-content/plugins/dispongo/widgets/templates/product_top_ten_widget/default-2.php
- > /wp-content/plugins/dispongo/widgets/templates/product_list_widget/custom-old.php
- > /wp-content/plugins/dispongo/widgets/templates/product_top_ten_widget/default.php
- > /wp-content/plugins/dispongo/widgets/templates/product_offers_widget/default-2.php
- > /wp-content/plugins/dispongo/widgets/templates/product_list_widget/default-2.php
- > /wp-content/plugins/dispongo/widgets/templates/country_list_widget/prueba.php
- > /wp-content/plugins/dispongo/widgets/templates/user_account_widget/default.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: dispongo, doblemente
dispongo/dispongo.php Passed 13 tests
The principal PHP file in "DISPONGO" v. 1.0.1 is loaded by WordPress automatically on each request
27 characters long description:
Dispongo Tourism E-Commerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,104 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 530 | 410 | 3,155 |
JavaScript | 2 | 178 | 40 | 795 |
CSS | 3 | 22 | 21 | 154 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 8.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 95 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
widgets/css/images/rating.png | 23.28KB | 0.21KB | ▼ 99.09% |
widgets/css/images/map-marker.png | 1.03KB | 1.11KB | 0.00% |