Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.92MB] [CPU: ▼56.60ms] Passed 4 tests
An overview of server-side resources used by User Referral ( Free ) - Points, Rewards, Loyalty, Leader Board & Referrals Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 4.85 ▼47.25 |
Dashboard /wp-admin | 2.11 ▼1.24 | 6.15 ▼55.76 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 9.87 ▼38.55 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.42 ▼84.83 |
Media Library /wp-admin/upload.php | 2.11 ▼1.13 | 6.07 ▼29.93 |
Security /wp-admin/admin.php?page=user-referral-free-security | 2.11 | 6.83 |
Help /wp-admin/admin.php?page=user-referral-free-help | 2.11 | 5.87 |
Adjust /wp-admin/admin.php?page=user-referral-free-adjust | 2.11 | 6.64 |
Docs /wp-admin/admin.php?page=user-referral-free-docs | 2.11 | 5.56 |
Referral /wp-admin/admin.php?page=user-referral-free-settings | 2.11 | 5.83 |
History /wp-admin/admin.php?page=user-referral-free-history | 2.11 | 6.20 |
Backup /wp-admin/admin.php?page=user-referral-free-backup | 2.11 | 7.70 |
Server storage [IO: ▲1.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 60 new files
Database: 1 new table, 43 new options
New tables |
---|
wp_referral_history |
New WordPress options |
---|
top_users_count |
translate_approved_comment |
translate_points_give |
fixed_points_for_woocommerce_order_completed |
custom_post_types |
translate_daily_login |
minimum_woocommerce_order_amount_required |
custom_post_types_point |
translate_woocommerce_order |
visitor_referral_points |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User Referral ( Free ) - Points, Rewards, Loyalty, Leader Board & Referrals Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲140 | 14.48 ▲0.14 | 1.67 ▼0.01 | 42.41 ▼6.02 |
Dashboard /wp-admin | 2,295 ▲115 | 6.19 ▲0.55 | 139.24 ▲50.83 | 39.77 ▼2.51 |
Posts /wp-admin/edit.php | 2,146 ▲49 | 2.01 ▲0.01 | 39.27 ▲2.54 | 34.63 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,565 ▲39 | 23.30 ▼0.18 | 637.35 ▼28.32 | 54.21 ▼5.25 |
Media Library /wp-admin/upload.php | 1,452 ▲49 | 4.28 ▲0.04 | 96.34 ▼4.03 | 41.41 ▼2.53 |
Security /wp-admin/admin.php?page=user-referral-free-security | 952 | 2.13 | 24.03 | 38.01 |
Help /wp-admin/admin.php?page=user-referral-free-help | 831 | 2.00 | 24.03 | 26.27 |
Adjust /wp-admin/admin.php?page=user-referral-free-adjust | 1,033 | 2.04 | 26.41 | 29.80 |
Docs /wp-admin/admin.php?page=user-referral-free-docs | 1,176 | 1.99 | 22.45 | 36.69 |
Referral /wp-admin/admin.php?page=user-referral-free-settings | 3,369 | 1.67 | 28.00 | 37.56 |
History /wp-admin/admin.php?page=user-referral-free-history | 876 | 2.01 | 23.62 | 27.36 |
Backup /wp-admin/admin.php?page=user-referral-free-backup | 875 | 2.01 | 25.10 | 27.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the scurf-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie tables detected upon uninstall: 1 table
- wp_referral_history
- This plugin does not fully uninstall, leaving 43 options in the database
- custom_post_types
- points_for_comment_approved
- translate_points_transferred
- points_limit_for_daily_post
- theysaidso_admin_options
- translate_refer_signup
- points_for_commission
- translate_points_removed
- translate_approved_comment
- scurf_timezone
- ...
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
Smoke test failed, please fix the following
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=user-referral-free-backup
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the scurf-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/admin.php?page=user-referral-free-adjust
- > Notice in wp-content/plugins/user-referral-free/inc/referral-adjust.php+39
Undefined variable: get_user_id
- > GET request to /wp-admin/admin.php?page=user-referral-free-adjust
- > Notice in wp-content/plugins/user-referral-free/inc/referral-adjust.php+46
Undefined variable: readonly
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=user-referral-free-adjust
- > Notice in wp-content/plugins/user-referral-free/inc/referral-adjust.php+99
Undefined variable: get_points
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=user-referral-free-adjust
- > Notice in wp-content/plugins/user-referral-free/inc/referral-adjust.php+115
Undefined variable: get_reason
- > GET request to /wp-admin/admin.php?page=user-referral-free-settings
- > Notice in wp-content/plugins/user-referral-free/inc/referral-settings.php+84
Undefined variable: message
- > GET request to /wp-admin/admin.php?page=user-referral-free-settings
- > Notice in wp-content/plugins/user-referral-free/inc/referral-settings.php+702
Undefined variable: scurf_timezone
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=user-referral-free-history
- > Notice in wp-content/plugins/user-referral-free/inc/referral-history.php+101
Undefined variable: search_term
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 fix the following items
- 36× 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 add_action() in wp-content/plugins/user-referral-free/inc/referral-field.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-referral-free/inc/referral-security.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-referral-free/inc/referral-help.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-referral-free/user-timezone.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/user-referral-free/inc/referral-translator.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/user-referral-free/core/referral-premium.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-referral-free/inc/referral-visitor.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-referral-free/inc/referral-history.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/user-referral-free/inc/referral-generate.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/user-referral-free/user-referral-free.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Contributors: Plugin contributors not specified
user-referral-free/user-referral-free.php 85% from 13 tests
"User Referral ( Free ) - Points, Rewards, Loyalty, Leader Board & Referrals Plugin" version 3.0'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:
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 82 characters long)
- Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
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
Success! There were no dangerous files found in this plugin2,731 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 466 | 391 | 2,702 |
JavaScript | 2 | 2 | 18 | 28 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 76 | |
▷ Named functions | 76 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 1.26MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/screenshot-07.png | 18.57KB | 7.43KB | ▼ 59.99% |
img/icon-128x128.png | 1.80KB | 0.84KB | ▼ 53.35% |
img/screenshot-01.png | 193.38KB | 58.42KB | ▼ 69.79% |
img/screenshot-05.png | 13.83KB | 6.94KB | ▼ 49.79% |
img/icon-256x256.png | 3.61KB | 1.70KB | ▼ 53.01% |