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
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/info-nutricional/info_nutricional_setup.php+26
Use of undefined constant LD_WS_BASE - assumed 'LD_WS_BASE' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.89MB] [CPU: ▼57.51ms] Passed 4 tests
Server-side resources used by Info Nutricional
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.13 ▼38.95 |
Dashboard /wp-admin | 2.11 ▼1.19 | 12.84 ▼40.84 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 6.61 ▼47.06 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 7.24 ▼103.20 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 7.67 ▼32.47 |
Add New /wp-admin/post-new.php?post_type=info_nutricional | 2.11 | 6.47 |
All Recipes /wp-admin/edit.php?post_type=info_nutricional | 2.11 | 7.15 |
Server storage [IO: ▲0.08MB] [DB: ▲0.04MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Info Nutricional: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 14.39 ▼0.17 | 1.87 ▼0.22 | 48.23 ▼1.30 |
Dashboard /wp-admin | 2,234 ▲60 | 5.56 ▼0.01 | 83.37 ▼10.14 | 79.65 ▲31.24 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.00 ▼0.02 | 37.29 ▼3.12 | 33.21 ▼3.19 |
Add New Post /wp-admin/post-new.php | 1,579 ▲53 | 23.30 ▼0.44 | 677.15 ▼23.70 | 61.39 ▲9.44 |
Media Library /wp-admin/upload.php | 1,439 ▲42 | 4.16 ▲0.04 | 112.84 ▲3.47 | 75.18 ▲27.87 |
Add New /wp-admin/post-new.php?post_type=info_nutricional | 1,714 | 3.62 | 66.28 | 89.12 |
All Recipes /wp-admin/edit.php?post_type=info_nutricional | 1,109 | 1.96 | 31.10 | 29.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/info-nutricional/info_nutricional_setup.php+26
Use of undefined constant LD_WS_BASE - assumed 'LD_WS_BASE' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=info_nutricional
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/info-nutricional/info_nutricional_setup.php+26
Use of undefined constant LD_WS_BASE - assumed 'LD_WS_BASE' (this will throw an Error in a future version of PHP)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=info_nutricional
- > Notice in wp-content/plugins/info-nutricional/infonutricional_settings.php+35
Trying to access array offset on value of type bool
- > GET request to /wp-admin/post-new.php?post_type=info_nutricional
- > Notice in wp-content/plugins/info-nutricional/info_nutricional.php+123
Undefined variable: aliments
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
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant LD_WS_BASE - assumed 'LD_WS_BASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/info-nutricional/info_nutricional_setup.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/info-nutricional/info_nutricional.php:128
- > PHP Warning
Use of undefined constant LD_WS_BASE - assumed 'LD_WS_BASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/info-nutricional/info_nutricional_setup.php on line 26
- > PHP Warning
Use of undefined constant LD_WS_BASE - assumed 'LD_WS_BASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/info-nutricional/info_nutricional_setup.php on line 26
- > PHP Warning
Use of undefined constant LD_WS_BASE - assumed 'LD_WS_BASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/info-nutricional/info_nutricional_setup.php on line 26
- > PHP Warning
Use of undefined constant LD_WS_BASE - assumed 'LD_WS_BASE' (this will throw an Error in a future version of PHP) in wp-content/plugins/info-nutricional/info_nutricional_setup.php on line 26
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #2 is required in info-nutricional/assets to your readme.txt
info-nutricional/info_nutricional.php 77% from 13 tests
The main PHP file in "Info Nutricional" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("info-nutricional.php" instead of "info_nutricional.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please keep the plugin description shorter than 140 characters (currently 435 characters long)
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
Good job! No executable or dangerous file extensions detected456 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 165 | 116 | 456 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
info_nutricional_plugin_icon.png | 13.79KB | 6.94KB | ▼ 49.69% |