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.00MB] [CPU: ▲10.58ms] Passed 4 tests
An overview of server-side resources used by UsersControl - Users Profile, Free or Paid Subscriptions, User Access Restriction & Members Directory
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.17 ▲1.70 | 51.57 ▲12.33 |
Dashboard /wp-admin | 5.40 ▲2.10 | 61.24 ▲8.33 |
Posts /wp-admin/edit.php | 5.45 ▲2.10 | 69.60 ▲25.46 |
Add New Post /wp-admin/post-new.php | 8.00 ▲2.11 | 97.02 ▼1.73 |
Media Library /wp-admin/upload.php | 5.33 ▲2.10 | 54.63 ▲23.40 |
User Pages /wp-admin/admin.php?page=userscontrol-pages | 5.31 | 52.55 |
Custom Forms /wp-admin/admin.php?page=userscontrol-forms | 5.24 | 42.21 |
Users Control /wp-admin/admin.php?page=userscontrol | 5.30 | 66.89 |
Settings /wp-admin/admin.php?page=userscontrol&tab=settings | 5.46 | 53.83 |
Notifications /wp-admin/admin.php?page=userscontrol&tab=mail | 5.35 | 54.59 |
Subscriptions /wp-admin/admin.php?page=userscontrol&tab=subscriptions | 5.28 | 57.49 |
Payment Gateways /wp-admin/admin.php?page=userscontrol&tab=gateway | 5.35 | 53.20 |
Custom Fields /wp-admin/admin.php?page=userscontrol&tab=fields | 5.29 | 44.93 |
More Functionality! /wp-admin/admin.php?page=userscontrol&tab=pro | 5.24 | 48.42 |
Licensing /wp-admin/admin.php?page=userscontrol&tab=licence | 5.23 | 46.13 |
Server storage [IO: ▲4.29MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 553 new files
Database: 5 new tables, 11 new options
New tables |
---|
wp_userscontrol_subscriptions |
wp_userscontrol_membership_post_rel |
wp_userscontrol_orders |
wp_userscontrol_membership_packages |
wp_userscontrol_role_post_rel |
New WordPress options |
---|
userscontrol_profile_nav |
userscontrol_options |
can_compress_scripts |
userscontrol_pro_active |
theysaidso_admin_options |
widget_recent-comments |
userscontrol_ini_setup |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for UsersControl - Users Profile, Free or Paid Subscriptions, User Access Restriction & Members Directory
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,136 ▲390 | 15.66 ▲1.31 | 13.89 ▲11.92 | 37.65 ▼8.63 |
Dashboard /wp-admin | 2,330 ▲145 | 6.29 ▲0.38 | 124.17 ▲21.17 | 92.10 ▲54.60 |
Posts /wp-admin/edit.php | 2,232 ▲143 | 3.04 ▲1.00 | 48.20 ▲7.89 | 61.55 ▲26.43 |
Add New Post /wp-admin/post-new.php | 1,628 ▲95 | 18.43 ▼4.69 | 663.02 ▲45.64 | 119.47 ▲60.14 |
Media Library /wp-admin/upload.php | 1,532 ▲147 | 5.26 ▲1.06 | 94.26 ▼39.50 | 97.83 ▲47.13 |
User Pages /wp-admin/admin.php?page=userscontrol-pages | 1,137 | 2.84 | 43.57 | 41.59 |
Custom Forms /wp-admin/admin.php?page=userscontrol-forms | 990 | 2.83 | 42.05 | 49.61 |
Users Control /wp-admin/admin.php?page=userscontrol | 1,838 | 6.66 | 57.65 | 155.07 |
Settings /wp-admin/admin.php?page=userscontrol&tab=settings | 1,829 | 3.16 | 43.52 | 75.26 |
Notifications /wp-admin/admin.php?page=userscontrol&tab=mail | 3,477 | 11.33 | 273.02 | 81.28 |
Subscriptions /wp-admin/admin.php?page=userscontrol&tab=subscriptions | 1,379 | 2.83 | 38.05 | 70.35 |
Payment Gateways /wp-admin/admin.php?page=userscontrol&tab=gateway | 1,365 | 2.86 | 37.55 | 52.76 |
Custom Fields /wp-admin/admin.php?page=userscontrol&tab=fields | 3,050 | 3.32 | 46.75 | 63.42 |
More Functionality! /wp-admin/admin.php?page=userscontrol&tab=pro | 1,116 | 2.87 | 39.70 | 72.37 |
Licensing /wp-admin/admin.php?page=userscontrol&tab=licence | 1,043 | 2.80 | 36.91 | 65.30 |
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
Please fix the following items
- The plugin did not uninstall successfully, leaving 5 tables in the database
- wp_userscontrol_orders
- wp_userscontrol_membership_packages
- wp_userscontrol_membership_post_rel
- wp_userscontrol_role_post_rel
- wp_userscontrol_subscriptions
- The uninstall procedure has failed, leaving 11 options in the database
- widget_theysaidso_widget
- userscontrol_ini_setup
- can_compress_scripts
- userscontrol_pro_active
- userscontrol_profile_nav
- theysaidso_admin_options
- userscontrol_options
- widget_recent-posts
- db_upgraded
- userscontrol_profile_fields
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=userscontrol&tab=fields
- > Warning in wp-content/plugins/users-control/admin/tabs/fields.php+45
Invalid argument supplied for foreach()
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/users-control/templates/basic/directory_cards.php
- > /wp-content/plugins/users-control/templates/basic/directory_2.php
- > /wp-content/plugins/users-control/templates/basic/directory_default.php
- 36× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/users-control/addons/pages/admin/admin.php on line 12
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/users-control/templates/basic/directory_cards.php on line 11
- > PHP Notice
Trying to get property 'profile' of non-object in wp-content/plugins/users-control/templates/basic/user_profile_v1.php on line 4
- > PHP Notice
Undefined variable: display_total_found in wp-content/plugins/users-control/templates/basic/directory_2.php on line 9
- > PHP Fatal error
Uncaught Error: Call to a member function get_all() on null in wp-content/plugins/users-control/admin/tabs/fields.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function has_profile_bg() on null in wp-content/plugins/users-control/templates/basic/user_profile_v1.php:4
- > PHP Fatal error
Uncaught Error: Class 'UserscontrolCommon' not found in wp-content/plugins/users-control/classes/usercontrol.messaging.php:2
- > PHP Notice
Undefined variable: users_list in wp-content/plugins/users-control/templates/basic/directory_cards.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'UserscontrolCommon' not found in wp-content/plugins/users-control/classes/usercontrol.admin.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/users-control/classes/usercontrol.order.php:34
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (DASHBOARD), #2 (ADMIN - SUBSCRIPTIONS), #3 (ADMIN - SUBSCRIPTIONS - DETAILS), #4 (ADMIN - SUBSCRIPTIONS - EDIT), #5 (ADMIN - ORDERS), #6 (MEMBER - DASHBOARD), #7 (MEMBER - MEMBERSHIP DETAILS), #8 (MEMBER - CUSTOM AVATAR), #9 (MEMBER - WOOCOMMERCE ORDERS), #10 (MEMBER - SUBSCRIPTION PLANS PURCHASE)
users-control/index.php 92% from 13 tests
The main PHP script in "UsersControl - Users Profile, Free or Paid Subscriptions, User Access Restriction & Members Directory" version 1.0.16 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("users-control.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin38,240 lines of code in 168 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 60 | 7,503 | 929 | 15,136 |
JavaScript | 44 | 1,357 | 1,121 | 7,520 |
CSS | 15 | 1,801 | 238 | 7,142 |
SVG | 3 | 0 | 0 | 3,158 |
Sass | 23 | 50 | 48 | 2,649 |
LESS | 23 | 50 | 64 | 2,635 |
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.30 |
Average class complexity | 124.38 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 457.00 |
Average method complexity | 4.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 408 | |
▷ Static methods | 6 | 1.47% |
▷ Public methods | 404 | 99.02% |
▷ Protected methods | 3 | 0.74% |
▷ Private methods | 1 | 0.25% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.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
346 PNG files occupy 0.99MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/flags/24/GB.png | 0.61KB | 0.50KB | ▼ 18.05% |
libs/flags/24/AD.png | 0.39KB | 0.40KB | 0.00% |
libs/flags/24/_nato.png | 0.36KB | 0.38KB | 0.00% |
admin/img/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
libs/flags/24/BD.png | 0.24KB | 0.26KB | 0.00% |