Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼4.37ms] Passed 4 tests
Server-side resources used by Membee Login
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 44.99 ▲1.77 |
Dashboard /wp-admin | 3.55 ▲0.20 | 51.21 ▼20.00 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 53.54 ▲9.52 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.24 | 98.12 ▼3.84 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 39.39 ▲4.61 |
Members Only /wp-admin/options-general.php?page=wpac-options | 3.54 | 40.95 |
Membee Login /wp-admin/options-general.php?page=membee_login | 3.41 | 32.62 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Membee Login
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.27 ▼1.39 | 5.05 ▲2.58 | 38.66 ▼8.47 |
Dashboard /wp-admin | 2,216 ▲31 | 4.85 ▼0.96 | 109.29 ▲7.09 | 43.88 ▲7.25 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.04 ▲0.02 | 42.04 ▲0.11 | 35.06 ▲0.02 |
Add New Post /wp-admin/post-new.php | 6,311 ▲4,792 | 21.57 ▼1.88 | 859.44 ▲223.73 | 51.93 ▼6.86 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.22 ▼0.00 | 98.12 ▼11.02 | 43.73 ▲1.83 |
Members Only /wp-admin/options-general.php?page=wpac-options | 1,528 | 1.68 | 23.41 | 34.83 |
Membee Login /wp-admin/options-general.php?page=membee_login | 790 | 2.05 | 25.44 | 24.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=membee_login
- > Notice in wp-content/plugins/membees-member-login-widget/mvc/v.php+35
Undefined index: message
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
Almost there! Just fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/membees-member-login-widget/lib/Walker.php:13
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/membees-member-login-widget/templates/options.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/membees-member-login-widget/lib/Walker.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/membees-member-login-widget/templates/options.php:15
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/membees-member-login-widget/lib/Walker.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/membees-member-login-widget/templates/meta_box.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/membees-member-login-widget/default-widgets.php:18
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: social, authentication, membership, members, login...
membees-member-login-widget/membee-login.php 92% from 13 tests
The main PHP file in "Membee Login" ver. 2.3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("membees-member-login-widget.php" instead of "membee-login.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,993 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 546 | 240 | 1,454 |
HTML | 1 | 91 | 0 | 320 |
CSS | 2 | 41 | 0 | 219 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 62.67 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 24 | 64.86% |
▷ Public methods | 35 | 94.59% |
▷ Protected methods | 2 | 5.41% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
documentation/assets/images/members_interface.png | 15.06KB | 6.29KB | ▼ 58.21% |
public/images/lock.png | 7.77KB | 3.80KB | ▼ 51.09% |
documentation/assets/images/white-grad.png | 0.21KB | 0.18KB | ▼ 12.38% |
documentation/assets/images/htmlstructure.png | 64.29KB | 17.65KB | ▼ 72.55% |
public/images/unlock.png | 7.86KB | 3.78KB | ▼ 51.86% |