Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲2.69MB] [CPU: ▼124.08ms] 75% from 4 tests
An overview of server-side resources used by Frontend Dashboard
Please have a look at the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 2,340.00ms on /wp-admin/admin.php?page=fed_plugin_pages)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.46 ▲2.74 | 52.07 ▲30.18 |
Dashboard /wp-admin | 5.79 ▲2.74 | 60.49 ▲16.17 |
Posts /wp-admin/edit.php | 5.83 ▲2.72 | 56.61 ▲5.75 |
Add New Post /wp-admin/post-new.php | 8.09 ▲2.66 | 112.80 ▼534.72 |
Media Library /wp-admin/upload.php | 5.67 ▲2.67 | 48.12 ▲16.50 |
Status /wp-admin/admin.php?page=fed_status | 5.69 | 55.72 |
User Profile /wp-admin/admin.php?page=fed_user_profile | 5.69 | 57.95 |
Dashboard Menu /wp-admin/admin.php?page=fed_dashboard_menu | 5.69 | 57.12 |
Post Fields /wp-admin/admin.php?page=fed_post_fields | 5.69 | 50.45 |
Add-Ons /wp-admin/admin.php?page=fed_plugin_pages | 5.78 | 2,340.00 |
Payments /wp-admin/admin.php?page=fed_payments | 5.69 | 48.69 |
Help /wp-admin/admin.php?page=fed_help | 5.69 | 48.06 |
Add Profile / Post Fields /wp-admin/admin.php?page=fed_add_user_profile | 5.69 | 56.39 |
Membership Pro /wp-admin/admin.php?page=fed_membership_pro | 5.69 | 47.75 |
Frontend Dashboard /wp-admin/admin.php?page=fed_settings_menu | 5.70 | 65.81 |
Server storage [IO: ▲6.39MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 272 new files
Database: 6 new tables, 6 new options
New tables |
---|
wp_fed_payment_items |
wp_fed_user_profile |
wp_fed_payment |
wp_fed_menu_meta |
wp_fed_post |
wp_fed_menu |
New WordPress options |
---|
fed_cp_admin_settings |
fed_admin_settings_upl |
fed_admin_settings_post |
widget_fed-post-widget |
fed_plugin_version |
fed_admin_login |
Browser metrics Passed 4 tests
Checking browser requirements for Frontend Dashboard
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,876 ▲239 | 16.78 ▲1.30 | 12.94 ▲2.41 | 47.80 ▼3.02 |
Dashboard /wp-admin | 3,132 ▲195 | 7.41 ▲1.46 | 168.89 ▲21.28 | 123.87 ▲7.21 |
Posts /wp-admin/edit.php | 2,809 ▲70 | 2.72 ▲0.00 | 60.55 ▼2.14 | 86.72 ▼9.92 |
Add New Post /wp-admin/post-new.php | 1,808 ▲308 | 19.25 ▲0.68 | 387.59 ▲19.68 | 118.13 ▲11.02 |
Media Library /wp-admin/upload.php | 1,809 ▲2 | 5.01 ▲0.01 | 126.06 ▼23.13 | 125.13 ▼1.85 |
Status /wp-admin/admin.php?page=fed_status | 3,424 | 6.66 | 106.38 | 131.13 |
User Profile /wp-admin/admin.php?page=fed_user_profile | 2,885 | 5.82 | 100.17 | 111.14 |
Dashboard Menu /wp-admin/admin.php?page=fed_dashboard_menu | 16,810 | 8.41 | 281.78 | 156.80 |
Post Fields /wp-admin/admin.php?page=fed_post_fields | 1,700 | 5.66 | 94.77 | 103.98 |
Add-Ons /wp-admin/admin.php?page=fed_plugin_pages | 3,063 | 6.50 | 102.99 | 133.40 |
Payments /wp-admin/admin.php?page=fed_payments | 1,920 | 5.85 | 94.67 | 149.43 |
Help /wp-admin/admin.php?page=fed_help | 3,130 | 6.18 | 93.83 | 109.36 |
Add Profile / Post Fields /wp-admin/admin.php?page=fed_add_user_profile | 1,651 | 5.69 | 94.51 | 85.96 |
Membership Pro /wp-admin/admin.php?page=fed_membership_pro | 1,866 | 5.77 | 87.74 | 115.13 |
Frontend Dashboard /wp-admin/admin.php?page=fed_settings_menu | 15,513 | 4.80 | 349.06 | 144.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables were found after uninstall: 6 tables
- wp_fed_payment
- wp_fed_user_profile
- wp_fed_menu
- wp_fed_post
- wp_fed_payment_items
- wp_fed_menu_meta
- Zombie WordPress options were found after uninstall: 6 options
- fed_admin_settings_upl
- fed_plugin_version
- fed_admin_login
- widget_fed-post-widget
- fed_cp_admin_settings
- fed_admin_settings_post
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)
Even though no errors were found, 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
Please fix the following items
- 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function fed_register_only() in wp-content/plugins/frontend-dashboard/templates/login/register-only.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_exists() in wp-content/plugins/frontend-dashboard/includes/shortcodes/user-role.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/frontend-dashboard/templates/author.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_exists() in wp-content/plugins/frontend-dashboard/includes/shortcodes/payments/transactions.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/frontend-dashboard/vendor/template-loaders/page-template/layouts/fed_invoice.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function fed_show_users_by_role() in wp-content/plugins/frontend-dashboard/templates/user_role.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_exists() in wp-content/plugins/frontend-dashboard/includes/shortcodes/dashboard/dashboard-shortcode.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function fed_get_transactions() in wp-content/plugins/frontend-dashboard/templates/payments/transactions.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_exists() in wp-content/plugins/frontend-dashboard/includes/shortcodes/login/register-only-shortcode.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_exists() in wp-content/plugins/frontend-dashboard/includes/shortcodes/login/login-only-shortcode.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
frontend-dashboard/frontend-dashboard.php Passed 13 tests
The main PHP file in "Frontend Dashboard" ver. 2.2.1 adds more information about the plugin and also serves as the entry point for this plugin
127 characters long description:
Frontend dashboard makes you flexible way to customize the user dashboard on frontend rather than WordPress wp-admin dashboard.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected53,592 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 137 | 2,188 | 4,861 | 20,237 |
CSS | 11 | 2,802 | 136 | 18,650 |
JavaScript | 14 | 1,777 | 839 | 8,122 |
SVG | 3 | 0 | 0 | 3,927 |
PO File | 6 | 1,230 | 1,428 | 2,639 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 16.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 206 | |
▷ Static methods | 28 | 13.59% |
▷ Public methods | 193 | 93.69% |
▷ Protected methods | 7 | 3.40% |
▷ Private methods | 6 | 2.91% |
Functions | 401 | |
▷ Named functions | 395 | 98.50% |
▷ Anonymous functions | 6 | 1.50% |
Constants | 19 | |
▷ Global constants | 14 | 73.68% |
▷ Class constants | 5 | 26.32% |
▷ Public constants | 5 | 100.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
25 PNG files occupy 0.39MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/inputs/checkbox.png | 3.15KB | 0.65KB | ▼ 79.32% |
assets/admin/images/pro/buy-now-29.png | 32.08KB | 9.08KB | ▼ 71.70% |
assets/admin/images/pro/buy-now-149.png | 32.50KB | 9.39KB | ▼ 71.10% |
assets/frontend/images/d.png | 3.01KB | 0.34KB | ▼ 88.85% |
assets/admin/images/chat.png | 1.34KB | 1.09KB | ▼ 19.17% |