Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.79ms] 75% from 4 tests
This is a short check of server-side resources used by Meal Tracker
Please take the time to fix the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,097.27ms on /wp-admin/admin.php?page=yk-mt-license)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.24 ▲4.18 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.46 ▼1.44 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 44.40 ▼4.14 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 79.89 ▼19.37 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.83 ▲1.78 |
Upgrade to Pro /wp-admin/admin.php?page=yk-mt-license | 3.28 | 1,097.27 |
Meal Collection /wp-admin/admin.php?page=yk-mt-meals | 3.30 | 56.95 |
/wp-admin/admin.php?page=yk-mt-main-menu | 3.29 | 41.67 |
Settings /wp-admin/admin.php?page=yk-mt-settings | 3.28 | 36.69 |
Help /wp-admin/admin.php?page=yk-mt-help | 3.27 | 30.05 |
User Data /wp-admin/admin.php?page=yk-mt-user | 3.29 | 41.30 |
Setup Wizard /wp-admin/admin.php?page=yk-mt-setup-wizard | 3.27 | 31.28 |
Server storage [IO: ▲2.05MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 96 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_yk_mt_entry |
wp_yk_mt_meal_types |
wp_yk_mt_entry_meals |
wp_yk_mt_meals |
wp_yk_mt_settings |
New WordPress options |
---|
can_compress_scripts |
yk-wt-version-number-0 |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
yk-mt-hash |
Browser metrics Passed 4 tests
Meal Tracker: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲69 | 14.39 ▼0.14 | 1.64 ▼0.08 | 43.00 ▲2.91 |
Dashboard /wp-admin | 2,258 ▲84 | 5.57 ▲0.04 | 81.84 ▼1.85 | 37.15 ▼4.22 |
Posts /wp-admin/edit.php | 2,166 ▲63 | 2.05 ▲0.05 | 36.42 ▼1.90 | 32.44 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,577 ▲51 | 23.16 ▼0.10 | 672.31 ▲9.69 | 58.03 ▼2.03 |
Media Library /wp-admin/upload.php | 1,469 ▲75 | 4.20 ▲0.02 | 96.59 ▼0.66 | 42.39 ▼3.60 |
Upgrade to Pro /wp-admin/admin.php?page=yk-mt-license | 1,123 | 2.02 | 24.92 | 26.71 |
Meal Collection /wp-admin/admin.php?page=yk-mt-meals | 1,369 | 4.60 | 84.19 | 43.35 |
/wp-admin/admin.php?page=yk-mt-main-menu | 1,281 | 5.01 | 81.41 | 37.65 |
Settings /wp-admin/admin.php?page=yk-mt-settings | 1,836 | 2.69 | 50.54 | 89.08 |
Help /wp-admin/admin.php?page=yk-mt-help | 970 | 2.05 | 28.71 | 25.45 |
User Data /wp-admin/admin.php?page=yk-mt-user | 1,287 | 5.01 | 73.33 | 40.52 |
Setup Wizard /wp-admin/admin.php?page=yk-mt-setup-wizard | 1,137 | 2.12 | 46.11 | 50.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables were found after uninstall: 5 tables
- wp_yk_mt_meal_types
- wp_yk_mt_meals
- wp_yk_mt_settings
- wp_yk_mt_entry_meals
- wp_yk_mt_entry
- This plugin does not fully uninstall, leaving 8 options in the database
- yk-mt-hash
- widget_recent-posts
- widget_recent-comments
- yk-wt-version-number-0
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 41× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/meal-tracker/core/admin-pages/user/data-user.php
- > /wp-content/plugins/meal-tracker/core/shortcode-various.php
- > /wp-content/plugins/meal-tracker/core/external-sources.php
- > /wp-content/plugins/meal-tracker/core/admin-pages/page.help.php
- > /wp-content/plugins/meal-tracker/core/admin-pages/meals/meals-import.php
- > /wp-content/plugins/meal-tracker/core/admin-pages/user/data-entry.php
- > /wp-content/plugins/meal-tracker/core/functions.admin.php
- > /wp-content/plugins/meal-tracker/core/external-sources/meal-tracker.php
- > /wp-content/plugins/meal-tracker/core/meta.php
- > /wp-content/plugins/meal-tracker/core/caching.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=yk-mt-setup-wizard
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: yk_mt_sc_meal_tracker is not defined" "ReferenceError: yk_mt_sc_meal_tracker is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/meal-tracker/assets/js/admin.js?ver=3.1.5:163:19)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=yk-mt-settings
- > Network (severe)
wp-content/plugins/meal-tracker/assets/css/images/z-tabs-icons.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=yk-mt-setup-wizard
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: yk_mt_sc_meal_tracker is not defined
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: These screenshots require images: #8 (Search an external API for meals.), #9 (Manually add own meal to meal collection.)
meal-tracker/meal-tracker.php 92% from 13 tests
The main PHP script in "Meal Tracker" version 3.1.5 is automatically included on every request by WordPress
It is important to fix the following:
- Git Repository: There should be no Git repositories present in your plugin
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
Good job! No executable or dangerous file extensions detected11,376 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 2,276 | 2,080 | 6,287 |
PO File | 2 | 742 | 841 | 1,728 |
CSS | 12 | 243 | 181 | 1,215 |
JavaScript | 15 | 431 | 459 | 1,143 |
SVG | 1 | 299 | 1 | 986 |
YAML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 65.45% |
▷ Protected methods | 14 | 25.45% |
▷ Private methods | 5 | 9.09% |
Functions | 314 | |
▷ Named functions | 313 | 99.68% |
▷ Anonymous functions | 1 | 0.32% |
Constants | 19 | |
▷ Global constants | 19 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.30MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/admin-pages/assets/images/product-logo.png | 9.00KB | 8.82KB | ▼ 2.00% |
assets/images/setup-wizard-meal-tracker-shortcode.png | 36.31KB | 15.77KB | ▼ 56.58% |
core/admin-pages/assets/images/yeken-logo.png | 8.83KB | 4.42KB | ▼ 49.97% |
assets/images/setup-wizard-meal-tracker-shortcode-wysiwyg.png | 5.64KB | 3.34KB | ▼ 40.72% |
core/admin-pages/assets/images/setup-wizard-meal-tracker-shortcode-small.png | 27.51KB | 10.54KB | ▼ 61.67% |