Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.74MB] [CPU: ▼357.20ms] Passed 4 tests
An overview of server-side resources used by QuickR Membership
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.33 ▲0.50 | 39.89 ▲8.75 |
Dashboard /wp-admin | 3.92 ▲0.87 | 46.96 ▲4.32 |
Posts /wp-admin/edit.php | 3.97 ▲0.87 | 37.52 ▼6.87 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.80 | 98.86 ▼1,424.84 |
Media Library /wp-admin/upload.php | 3.80 ▲0.80 | 39.36 ▼1.40 |
Extensions /wp-admin/admin.php?page=quickr_extensions | 3.78 | 38.00 |
Payments /wp-admin/admin.php?page=quickr_payments | 3.81 | 40.09 |
Membership Level /wp-admin/admin.php?page=quickr_membership_level | 3.82 | 36.57 |
Logs /wp-admin/edit.php?post_type=quickr_log | 3.91 | 39.87 |
Tags /wp-admin/edit-tags.php?taxonomy=quickr_log_type&post_type=quickr_log | 3.81 | 43.68 |
Member /wp-admin/admin.php?page=quickr_member | 3.82 | 43.17 |
Quickr Member /wp-admin/admin.php?page=quickr_membership | 3.79 | 39.49 |
Settings /wp-admin/admin.php?page=quickr_settings | 3.79 | 33.99 |
Server storage [IO: ▲0.78MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 242 new files
Database: 3 new tables, 1 new option
New tables |
---|
wp_quickr_membership_post_rels |
wp_quickr_member_membership_rels |
wp_quickr_transactions |
New WordPress options |
---|
quickr-settings |
Browser metrics Passed 4 tests
QuickR Membership: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,823 ▲227 | 15.91 ▲0.22 | 7.18 ▼3.25 | 49.71 ▲1.12 |
Dashboard /wp-admin | 3,110 ▲176 | 6.21 ▲0.28 | 128.29 ▼17.61 | 111.39 ▼8.76 |
Posts /wp-admin/edit.php | 2,878 ▲139 | 2.72 ▲0.03 | 72.43 ▲2.28 | 92.15 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,628 ▼48 | 18.34 ▼0.49 | 342.29 ▼26.11 | 111.70 ▲6.32 |
Media Library /wp-admin/upload.php | 1,944 ▲134 | 5.13 ▲0.13 | 153.73 ▲7.92 | 114.94 ▼6.83 |
Extensions /wp-admin/admin.php?page=quickr_extensions | 1,217 | 2.49 | 59.86 | 91.25 |
Payments /wp-admin/admin.php?page=quickr_payments | 1,448 | 2.50 | 63.32 | 83.90 |
Membership Level /wp-admin/admin.php?page=quickr_membership_level | 1,410 | 2.43 | 64.39 | 74.19 |
Logs /wp-admin/edit.php?post_type=quickr_log | 1,530 | 2.66 | 67.18 | 78.27 |
Tags /wp-admin/edit-tags.php?taxonomy=quickr_log_type&post_type=quickr_log | 2,147 | 2.66 | 62.55 | 98.03 |
Member /wp-admin/admin.php?page=quickr_member | 1,445 | 2.55 | 61.74 | 89.67 |
Quickr Member /wp-admin/admin.php?page=quickr_membership | 1,302 | 2.37 | 60.84 | 70.66 |
Settings /wp-admin/admin.php?page=quickr_settings | 1,388 | 2.49 | 62.81 | 92.78 |
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 3 tables in the database
- wp_quickr_membership_post_rels
- wp_quickr_transactions
- wp_quickr_member_membership_rels
- Zombie WordPress options detected upon uninstall: 1 option
- quickr-settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 18× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/quickr-membership/trunk/views/admin/extensions/tab.php
- > /wp-content/plugins/quickr-membership/views/admin/settings/tab.php
- > /wp-content/plugins/quickr-membership/trunk/views/admin/settings/tab.php
- > /wp-content/plugins/quickr-membership/trunk/views/admin/dashboard/pagelet/at_a_glance.php
- > /wp-content/plugins/quickr-membership/views/front/profile.php
- > /wp-content/plugins/quickr-membership/views/front/comment_replacement.php
- > /wp-content/plugins/quickr-membership/views/admin/members/tab.php
- > /wp-content/plugins/quickr-membership/views/admin/extensions/tab.php
- > /wp-content/plugins/quickr-membership/views/admin/memberships/tab.php
- > /wp-content/plugins/quickr-membership/views/admin/payments/tab.php
- 188× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Quickr_I18n' not found in wp-content/plugins/quickr-membership/views/admin/payments/payment_details.php:1
- > PHP Fatal error
Uncaught Error: Class 'Quickr_I18n' not found in wp-content/plugins/quickr-membership/trunk/views/admin/payments/paypal_subscription_button.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/quickr-membership/trunk/views/admin/settings/template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/quickr-membership/views/admin/dashboard/container.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/quickr-membership/trunk/views/admin/dashboard/container.php:5
- > PHP Warning
Use of undefined constant QUICKR_CLASSES - assumed 'QUICKR_CLASSES' (this will throw an Error in a future version of PHP) in wp-content/plugins/quickr-membership/trunk/classes/admin/settings-tab/class-quickr-payment-settings-tab.php on line 8
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/quickr-membership/views/admin/memberships/tab.php on line 2
- > PHP Notice
Undefined variable: return in wp-content/plugins/quickr-membership/trunk/views/front/paypal_subscription_button.php on line 44
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/quickr-membership/views/front/paypal_subscription_button.php:48
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/quickr-membership/views/admin/extensions/tab.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (22 tag instead of maximum 10)
quickr-membership/quickr-membership.php Passed 13 tests
The main PHP script in "QuickR Membership" version 1.0.0 is automatically included on every request by WordPress
41 characters long description:
An Extensible wordpress membership plugin
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
No dangerous file extensions were detected6,171 lines of code in 110 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 105 | 722 | 1,706 | 5,753 |
PO File | 2 | 164 | 243 | 375 |
CSS | 3 | 2 | 8 | 43 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 134 | |
▷ Abstract classes | 4 | 2.99% |
▷ Concrete classes | 130 | 97.01% |
▷ Final classes | 0 | 0.00% |
Methods | 918 | |
▷ Static methods | 142 | 15.47% |
▷ Public methods | 756 | 82.35% |
▷ Protected methods | 2 | 0.22% |
▷ Private methods | 160 | 17.43% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 98 | |
▷ Global constants | 10 | 10.20% |
▷ Class constants | 88 | 89.80% |
▷ Public constants | 88 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/images/success.png | 4.34KB | 1.51KB | ▼ 65.32% |
images/warning.png | 4.46KB | 1.51KB | ▼ 66.10% |
images/success.png | 4.34KB | 1.51KB | ▼ 65.32% |
images/error.png | 4.24KB | 1.48KB | ▼ 65.18% |
trunk/images/warning.png | 4.46KB | 1.51KB | ▼ 66.10% |