Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.17ms] Passed 4 tests
Analyzing server-side resources used by Membership Lock
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 34.43 ▼7.18 |
Dashboard /wp-admin | 3.43 ▲0.08 | 45.64 ▼11.87 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 50.92 ▲6.83 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 104.45 ▲5.83 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.01 ▲0.54 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
mlockdown_status |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Membership Lock
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲47 | 13.26 ▼1.12 | 1.65 ▼0.26 | 36.52 ▼5.46 |
Dashboard /wp-admin | 2,224 ▲33 | 5.83 ▲0.93 | 96.71 ▼3.40 | 41.17 ▼1.41 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 1.99 ▼0.05 | 40.79 ▲2.13 | 34.99 ▲1.93 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 18.28 ▼4.92 | 636.47 ▲25.05 | 54.92 ▲0.48 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.20 ▲0.01 | 94.55 ▼2.14 | 43.36 ▲0.78 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'MembershipLock\\LockItdown' not found in wp-content/plugins/membership-lock/src/Admin/pages/membeship-lockdown/membeship-lockdown.admin.php:42
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/membership-lock/src/WPAdminPage/pages/footer.admin.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/membership-lock/src/WPAdminPage/pages/header.admin.php:3
- > PHP Fatal error
Uncaught Error: Class 'MembershipLock\\WPAdminPage\\AdminPage' not found in wp-content/plugins/membership-lock/src/Admin/MembershipAdmin.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% 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
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif).), #2 (This is the second screen shot)
membership-lock/membership-lockdown.php 69% from 13 tests
The main PHP script in "Membership Lock" version 2.4.8 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("membership-lock.php" instead of "membership-lockdown.php")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,002 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 252 | 808 | 1,217 |
Markdown | 3 | 98 | 0 | 392 |
CSS | 3 | 21 | 2 | 269 |
JavaScript | 1 | 29 | 26 | 79 |
XML | 1 | 9 | 11 | 41 |
HTML | 3 | 0 | 0 | 3 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 13.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 3 | 42.86% |
Methods | 85 | |
▷ Static methods | 12 | 14.12% |
▷ Public methods | 82 | 96.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.53% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin