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
Installer ran successfully
Server metrics [RAM: ▲3.80MB] [CPU: ▲21.46ms] 75% from 4 tests
A check of server-side resources used by Weight Tracker
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,084.76ms on /wp-admin/admin.php?page=ws-ls-license)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.23 ▲3.77 | 68.40 ▲28.02 |
Dashboard /wp-admin | 7.13 ▲3.79 | 71.87 ▲11.40 |
Posts /wp-admin/edit.php | 7.19 ▲3.83 | 76.39 ▲29.18 |
Add New Post /wp-admin/post-new.php | 9.73 ▲3.85 | 110.89 ▲17.22 |
Media Library /wp-admin/upload.php | 7.06 ▲3.83 | 67.92 ▲35.63 |
Custom Fields /wp-admin/admin.php?page=ws-ls-meta-fields | 7.03 | 56.54 |
Export Data /wp-admin/admin.php?page=ws-ls-export-data | 7.02 | 55.51 |
Awards /wp-admin/admin.php?page=ws-ls-awards | 7.03 | 55.44 |
Help & Log /wp-admin/admin.php?page=ws-ls-help | 7.03 | 53.57 |
User Data /wp-admin/admin.php?page=ws-ls-data-home | 7.04 | 73.28 |
Challenges /wp-admin/admin.php?page=ws-ls-challenges | 7.03 | 51.83 |
Setup Wizard /wp-admin/admin.php?page=ws-ls-data-setup-wizard | 7.03 | 54.96 |
Settings /wp-admin/admin.php?page=ws-ls-settings | 7.08 | 101.39 |
User Groups /wp-admin/admin.php?page=ws-ls-user-groups | 7.03 | 59.71 |
Upgrade /wp-admin/admin.php?page=ws-ls-license | 7.04 | 1,084.76 |
Server storage [IO: ▲11.39MB] [DB: ▲0.06MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 393 new files
Database: 18 new tables, 29 new options
New tables |
---|
wp_WS_LS_EXPORT |
wp_WS_LS_AWARDS |
wp_WS_LS_META_GROUPS |
wp_WS_LS_DATA_TARGETS |
wp_WS_LS_DATA |
wp_WS_LS_META_FIELDS |
wp_WS_LS_EXPORT_REPORT |
wp_WS_LS_CHALLENGES_DATA |
wp_WS_LS_DATA_USER_PREFERENCES |
wp_WS_LS_DATA_USER_STATS |
... |
New WordPress options |
---|
theysaidso_admin_options |
ws-ls-messaging-version-number |
ws-ls-export-version-number |
ws-ls-migrated-macro-percentages |
widget_recent-posts |
ws-ls-license-site-hash |
widget_theysaidso_widget |
ws-ls-macro-proteins-gain |
ws-ls-meta-version-number |
ws-ls-group-add-missing-group-row |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Weight Tracker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲139 | 14.41 ▲0.06 | 1.70 ▼0.03 | 38.07 ▼6.50 |
Dashboard /wp-admin | 2,281 ▲107 | 5.69 ▲0.18 | 85.12 ▼4.34 | 41.29 ▲2.18 |
Posts /wp-admin/edit.php | 2,189 ▲89 | 2.04 ▲0.08 | 42.14 ▲2.05 | 39.92 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,594 ▲58 | 23.02 ▼0.29 | 794.45 ▲91.99 | 61.01 ▲11.64 |
Media Library /wp-admin/upload.php | 1,489 ▲89 | 4.32 ▲0.10 | 100.34 ▼1.91 | 45.27 ▲2.82 |
Custom Fields /wp-admin/admin.php?page=ws-ls-meta-fields | 1,819 | 3.57 | 89.77 | 44.08 |
Export Data /wp-admin/admin.php?page=ws-ls-export-data | 925 | 2.18 | 26.61 | 24.61 |
Awards /wp-admin/admin.php?page=ws-ls-awards | 1,147 | 3.70 | 70.36 | 36.81 |
Help & Log /wp-admin/admin.php?page=ws-ls-help | 1,441 | 4.04 | 96.18 | 38.06 |
User Data /wp-admin/admin.php?page=ws-ls-data-home | 1,610 | 3.99 | 93.13 | 45.99 |
Challenges /wp-admin/admin.php?page=ws-ls-challenges | 1,160 | 3.56 | 69.47 | 32.19 |
Setup Wizard /wp-admin/admin.php?page=ws-ls-data-setup-wizard | 1,405 | 2.45 | 46.78 | 58.28 |
Settings /wp-admin/admin.php?page=ws-ls-settings | 5,055 | 3.04 | 62.78 | 90.17 |
User Groups /wp-admin/admin.php?page=ws-ls-user-groups | 1,085 | 3.75 | 68.62 | 34.55 |
Upgrade /wp-admin/admin.php?page=ws-ls-license | 1,406 | 2.36 | 45.07 | 38.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 18 tables
- wp_WS_LS_MESSAGING
- wp_WS_LS_EXPORT_REPORT
- wp_WS_LS_CHALLENGES_DATA
- wp_WS_LS_META_GROUPS
- wp_WS_LS_DATA_USER_STATS
- wp_WS_LS_DATA_USER_PREFERENCES
- wp_WS_LS_GROUPS
- wp_WS_LS_DATA
- wp_WS_LS_GROUPS_USER
- wp_WS_LS_CHALLENGES
- ...
- The uninstall procedure has failed, leaving 29 options in the database
- ws-ls-challenges-db-number
- ws-ls-macro-fats-lose
- ws-ls-email-notification-db-number
- ws-ls-messaging-version-number
- ws-ls-migrated-macro-percentages
- db_upgraded
- ws-ls-export-version-number
- widget_theysaidso_widget
- ws-ls-macro-fats-gain
- ws-ls-license-site-hash
- ...
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 114× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/weight-loss-tracker/pro-features/plus/meta-fields/functions-photos.php
- > /wp-content/plugins/weight-loss-tracker/includes/admin-pages/user-data/data-summary.php
- > /wp-content/plugins/weight-loss-tracker/pro-features/hooks.php
- > /wp-content/plugins/weight-loss-tracker/includes/admin-pages/page-license.php
- > /wp-content/plugins/weight-loss-tracker/includes/components.php
- > /wp-content/plugins/weight-loss-tracker/pro-features/user-preferences.php
- > /wp-content/plugins/weight-loss-tracker/includes/converters.php
- > /wp-content/plugins/weight-loss-tracker/pro-features/email-notifications.php
- > /wp-content/plugins/weight-loss-tracker/pro-features/shortcode-stats.php
- > /wp-content/plugins/weight-loss-tracker/pro-features/widget-progress.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% 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:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
weight-loss-tracker/weight-loss-tracker.php 85% from 13 tests
"Weight Tracker" version 10.7.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 361 characters long)
- Git Repository: A Git repository was detected inside this plugin
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
No dangerous file extensions were detected116,535 lines of code in 209 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 25 | 25,251 | 45,690 | 59,001 |
CSS | 25 | 509 | 154 | 20,241 |
PHP | 114 | 6,558 | 5,600 | 19,206 |
JavaScript | 43 | 7,321 | 860 | 18,066 |
YAML | 1 | 0 | 0 | 17 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.20 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 830 | |
▷ Named functions | 822 | 99.04% |
▷ Anonymous functions | 8 | 0.96% |
Constants | 48 | |
▷ Global constants | 48 | 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
132 PNG files occupy 0.30MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
pro-features/plus/unitegallery/skins/default/grid_handle_black_left.png | 1.25KB | 0.69KB | ▼ 44.81% |
pro-features/plus/unitegallery/images/button_fullscreen.png | 1.49KB | 1.09KB | ▼ 27.14% |
pro-features/plus/unitegallery/skins/default/tile_bullets_brown.png | 0.37KB | 0.27KB | ▼ 26.20% |
assets/css/libraries/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
assets/css/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.30KB | 0.15KB | ▼ 49.68% |