Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.41MB] [CPU: ▲10.58ms] Passed 4 tests
This is a short check of server-side resources used by Simple Membership
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.93 ▲2.46 | 53.91 ▲13.37 |
Dashboard /wp-admin | 5.72 ▲2.41 | 60.75 ▲13.96 |
Posts /wp-admin/edit.php | 5.77 ▲2.41 | 58.10 ▲13.79 |
Add New Post /wp-admin/post-new.php | 8.30 ▲2.41 | 97.99 ▲1.30 |
Media Library /wp-admin/upload.php | 5.64 ▲2.41 | 49.70 ▲13.84 |
Members /wp-admin/admin.php?page=simple_wp_membership | 5.84 | 47.78 |
Payments /wp-admin/admin.php?page=simple_wp_membership_payments | 5.67 | 46.66 |
Membership Levels /wp-admin/admin.php?page=simple_wp_membership_levels | 5.62 | 44.98 |
Settings /wp-admin/admin.php?page=simple_wp_membership_settings | 5.61 | 45.64 |
Add-ons /wp-admin/admin.php?page=simple_wp_membership_addons | 5.66 | 45.36 |
Server storage [IO: ▲7.02MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 628 new files
Database: 4 new tables, 10 new options
New tables |
---|
wp_swpm_membership_tbl |
wp_swpm_payments_tbl |
wp_swpm_members_tbl |
wp_swpm_membership_meta_tbl |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
swpm_private_key_one |
swpm-settings |
widget_recent-posts |
widget_recent-comments |
swpm_plugin_user_feedback_notice |
swpm_db_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Membership
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲150 | 13.34 ▼0.98 | 8.57 ▲6.73 | 38.54 ▼9.14 |
Dashboard /wp-admin | 2,236 ▲59 | 5.67 ▲0.15 | 86.37 ▼14.64 | 39.40 ▼4.56 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 2.00 ▼0.02 | 36.05 ▲0.24 | 35.45 ▲1.15 |
Add New Post /wp-admin/post-new.php | 6,266 ▲4,740 | 18.72 ▼4.36 | 893.00 ▲206.59 | 54.42 ▼0.68 |
Media Library /wp-admin/upload.php | 1,441 ▲44 | 4.19 ▲0.03 | 95.30 ▼10.48 | 43.44 ▲0.13 |
Members /wp-admin/admin.php?page=simple_wp_membership | 1,342 | 8.51 | 91.78 | 33.57 |
Payments /wp-admin/admin.php?page=simple_wp_membership_payments | 1,121 | 2.00 | 22.85 | 28.99 |
Membership Levels /wp-admin/admin.php?page=simple_wp_membership_levels | 1,049 | 8.52 | 81.01 | 28.49 |
Settings /wp-admin/admin.php?page=simple_wp_membership_settings | 1,148 | 2.00 | 22.85 | 32.24 |
Add-ons /wp-admin/admin.php?page=simple_wp_membership_addons | 1,178 | 1.99 | 23.52 | 76.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
- Zombie tables detected upon uninstall: 4 tables
- wp_swpm_membership_tbl
- wp_swpm_membership_meta_tbl
- wp_swpm_members_tbl
- wp_swpm_payments_tbl
- Zombie WordPress options detected upon uninstall: 10 options
- db_upgraded
- widget_theysaidso_widget
- swpm-settings
- swpm_plugin_user_feedback_notice
- can_compress_scripts
- swpm_private_key_one
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- swpm_db_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-membership/views/admin_member_form_common_js.php
- > /wp-content/plugins/simple-membership/lib/stripe-gateway/update_certs.php
- > /wp-content/plugins/simple-membership/simple-wp-membership.php
- > /wp-content/plugins/simple-membership/lib/stripe-gateway/build.php
- 362× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/simple-membership/lib/stripe-gateway/lib/Exception/OAuth/ExceptionInterface.php:8
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\OAuth\\OAuthErrorException' not found in wp-content/plugins/simple-membership/lib/stripe-gateway/lib/Exception/OAuth/InvalidGrantException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/simple-membership/lib/stripe-gateway/lib/OrderReturn.php:24
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Exception' not found in wp-content/plugins/simple-membership/lib/braintree/lib/Braintree/Exception/Connection.php:13
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/simple-membership/lib/stripe-gateway/lib/ExternalAccount.php:10
- > PHP Warning
Use of undefined constant SIMPLE_WP_MEMBERSHIP_PATH - assumed 'SIMPLE_WP_MEMBERSHIP_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-membership/lib/paypal/class-swpm-paypal-main.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/simple-membership/lib/stripe-gateway/lib/SubscriptionSchedule.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-membership/views/payments/payment-gateway/admin_paypal_smart_checkout_button.php:228
- > PHP Warning
Use of undefined constant SIMPLE_WP_MEMBERSHIP_PATH - assumed 'SIMPLE_WP_MEMBERSHIP_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-membership/lib/paypal/class-swpm-paypal-main.php on line 18
- > PHP Warning
include_once(): Failed opening 'SIMPLE_WP_MEMBERSHIP_PATHlib/paypal/onboarding-related/class-swpm-paypal-onboarding.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/simple-membership/lib/paypal/class-swpm-paypal-main.php on line 17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (24 tag instead of maximum 10)
simple-membership/simple-wp-membership.php 92% from 13 tests
The main file in "Simple Membership" v. 4.3.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-membership.php" instead of "simple-wp-membership.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/simple-membership/lib/braintree/lib/ssl/api_braintreegateway_com.ca.crt
- ☣ wp-content/plugins/simple-membership/lib/stripe-gateway/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 37 | 14,842 | 19,261 | 37,749 |
PHP | 461 | 6,765 | 12,425 | 36,955 |
JavaScript | 8 | 218 | 821 | 9,171 |
Markdown | 3 | 608 | 0 | 891 |
CSS | 4 | 47 | 15 | 410 |
JSON | 1 | 0 | 0 | 48 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 9 | 0 | 27 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 7 | |
Traits | 7 | |
Classes | 415 | |
▷ Abstract classes | 15 | 3.61% |
▷ Concrete classes | 400 | 96.39% |
▷ Final classes | 0 | 0.00% |
Methods | 2,132 | |
▷ Static methods | 795 | 37.29% |
▷ Public methods | 1,815 | 85.13% |
▷ Protected methods | 126 | 5.91% |
▷ Private methods | 191 | 8.96% |
Functions | 73 | |
▷ Named functions | 64 | 87.67% |
▷ Anonymous functions | 9 | 12.33% |
Constants | 1,463 | |
▷ Global constants | 17 | 1.16% |
▷ Class constants | 1,446 | 98.84% |
▷ Public constants | 1,446 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
41 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/addons/google-first-click-free-addon.png | 2.33KB | 1.33KB | ▼ 43.02% |
images/addons/swpm-woocommerce-addon.png | 2.99KB | 2.06KB | ▼ 31.14% |
images/button-images/paypal-button-sample-image.png | 6.20KB | 2.53KB | ▼ 59.15% |
images/addons/wp-user-import.png | 2.46KB | 1.43KB | ▼ 41.84% |
css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |