Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/twg-members/index.php+95
Undefined index: auth
Server metrics [RAM: ▼1.96MB] [CPU: ▼49.31ms] Passed 4 tests
An overview of server-side resources used by TheWebGears Members Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.11 ▼36.75 |
Dashboard /wp-admin | 2.05 ▼1.26 | 7.82 ▼41.37 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.25 ▼36.33 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.13 ▼82.78 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.50 ▼26.58 |
TWG Members /wp-admin/options-general.php?page=twg-members | 2.05 | 5.87 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_twg_member_fields |
wp_twg_members |
wp_twg_memberfield_values |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
twg_memberopts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TheWebGears Members Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.21 ▼1.04 | 1.64 ▼0.21 | 39.59 ▼3.62 |
Dashboard /wp-admin | 2,214 ▲23 | 5.91 ▲0.04 | 107.84 ▼0.12 | 38.10 ▼5.38 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.01 ▲0.01 | 41.07 ▲5.98 | 32.50 ▲0.98 |
Add New Post /wp-admin/post-new.php | 1,522 ▼21 | 23.21 ▲4.99 | 631.05 ▲27.90 | 57.13 ▲8.31 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.20 ▼0.14 | 97.97 ▲1.09 | 42.96 ▲0.88 |
TWG Members /wp-admin/options-general.php?page=twg-members | 1,288 | 2.07 | 25.64 | 40.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/twg-members/index.php+95
Undefined index: auth
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+95
Undefined index: auth
- > GET request to /wp-admin/options-general.php?page=twg-members
- > User notice in wp-includes/functions.php+5905
Function wp_register_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 twg-member-print-styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: preserve_regvalues
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: label_user
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: label_pass
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: custom_loginform
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: uloggedin_msg
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: error_nouserpass
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: error_wronguser
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: error_wrongpass
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: label_user_reg
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: label_pass_reg
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: regex_for_uname
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: regex_for_passwd
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: error_useralreadyexists
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+497
Undefined index: success_registered
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Notice in wp-content/plugins/twg-members/index.php+472
Undefined index: page_on_tab
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/twg-members/index.php:50
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=twg-members
- > Javascript (severe) in unknown
/wp-content/plugins/twg-members/scripts.js?ver=6.3.1 8:39 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Registration fields configuration view), #2 (Login errors configuration view), #3 (Registration fields customization looks like this)
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
twg-members/index.php 92% from 13 tests
The main file in "TheWebGears Members Plugin" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("twg-members.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,579 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 144 | 7 | 871 |
CSS | 2 | 78 | 0 | 477 |
JavaScript | 1 | 28 | 0 | 231 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 134.00 |
▷ Minimum class complexity | 134.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 6.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 69.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 30.77% |
Functions | 14 | |
▷ Named functions | 14 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/minus.png | 0.71KB | 0.55KB | ▼ 22.01% |
images/edit.png | 0.69KB | 0.62KB | ▼ 9.54% |
images/delete.png | 3.21KB | 0.54KB | ▼ 83.17% |
images/plus.png | 0.45KB | 0.60KB | 0.00% |
images/delete_disabled.png | 3.84KB | 0.33KB | ▼ 91.30% |