Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/dietmaster-pro-nutrition/includes/functions.php+10
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.23MB] [CPU: ▼51.72ms] Passed 4 tests
An overview of server-side resources used by DietMaster Integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 14.66 ▼29.97 |
Dashboard /wp-admin | 2.78 ▼0.52 | 15.70 ▼38.64 |
Posts /wp-admin/edit.php | 2.78 ▼0.58 | 16.34 ▼40.70 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.11 | 17.13 ▼97.58 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 15.73 ▼22.02 |
Dietmaster /wp-admin/options-general.php?page=dietmaster-menu | 2.78 | 16.44 |
Server storage [IO: ▲0.09MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_dietmaster |
New WordPress options |
---|
theysaidso_admin_options |
wpdmi |
wpdmi_token_email_text |
wpdmi_version |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DietMaster Integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.65 ▲0.52 | 2.04 ▲0.33 | 43.33 ▲0.03 |
Dashboard /wp-admin | 2,202 ▲25 | 5.51 ▼0.07 | 86.10 ▼16.20 | 37.70 ▼4.77 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.18 ▲0.23 | 35.49 ▼3.57 | 37.07 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.94 ▼0.33 | 654.27 ▼22.95 | 57.22 ▼1.84 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.17 ▼0.02 | 96.71 ▼9.24 | 42.67 ▼3.86 |
Dietmaster /wp-admin/options-general.php?page=dietmaster-menu | 1,089 | 1.84 | 29.54 | 31.27 |
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
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/dietmaster-pro-nutrition/includes/functions.php+191
Undefined index: wpdmi-profile-update-nonce
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=dietmaster-menu
- > Notice in wp-content/plugins/dietmaster-pro-nutrition/includes/functions.php+191
Undefined index: wpdmi-profile-update-nonce
- > GET request to /wp-admin/options-general.php?page=dietmaster-menu
- > Notice in wp-content/plugins/dietmaster-pro-nutrition/dietmaster-integration.php+58
Undefined index: activate
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dietmaster-menu
- > Notice in wp-content/plugins/dietmaster-pro-nutrition/includes/admin.php+171
Undefined index: detect_mobile
- > GET request to /wp-admin/options-general.php?page=dietmaster-menu
- > Notice in wp-content/plugins/dietmaster-pro-nutrition/includes/functions.php+760
Undefined offset: 1
- > GET request to /wp-admin/options-general.php?page=dietmaster-menu
- > Notice in wp-content/plugins/dietmaster-pro-nutrition/includes/admin.php+180
Undefined index: membership_integration
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/dietmaster-pro-nutrition/dietmaster-integration.php:32
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/dietmaster-pro-nutrition/includes/view-profile-form.php on line 10
- > PHP Notice
Undefined variable: user_profile in wp-content/plugins/dietmaster-pro-nutrition/includes/view-profile-form.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dietmaster-pro-nutrition/includes/admin.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/dietmaster-pro-nutrition/includes/view-profile-form.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dietmaster-pro-nutrition/includes/functions.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2 in dietmaster-pro-nutrition/assets to your readme.txt
dietmaster-pro-nutrition/dietmaster-integration.php 92% from 13 tests
The primary PHP file in "DietMaster Integration" version 1.3.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dietmaster-pro-nutrition.php" instead of "dietmaster-integration.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,668 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 352 | 198 | 1,125 |
JavaScript | 3 | 78 | 38 | 526 |
CSS | 1 | 1 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 50 | |
▷ Named functions | 50 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-help.png | 1.23KB | 0.36KB | ▼ 70.61% |