Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.69MB] [CPU: ▼3.94ms] Passed 4 tests
An overview of server-side resources used by Memberful WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 45.92 ▲2.47 |
Dashboard /wp-admin | 4.05 ▲0.70 | 52.17 ▼11.50 |
Posts /wp-admin/edit.php | 4.10 ▲0.74 | 60.02 ▲15.58 |
Add New Post /wp-admin/post-new.php | 6.59 ▲0.70 | 87.43 ▼17.33 |
Media Library /wp-admin/upload.php | 3.91 ▲0.68 | 45.26 ▲10.59 |
Memberful /wp-admin/options-general.php?page=memberful_options | 3.87 | 35.82 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 81 new files
Database: 1 new table, 30 new options
New tables |
---|
wp_memberful_mapping |
New WordPress options |
---|
can_compress_scripts |
widget_memberful_wp_profile_widget |
db_upgraded |
memberful_client_secret |
memberful_api_key |
memberful_subscriptions |
memberful_global_marketing_content |
memberful_filter_account_menu_items |
widget_theysaidso_widget |
memberful_products |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Memberful WP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.70 ▼0.98 | 1.71 ▲0.00 | 36.24 ▼7.53 |
Dashboard /wp-admin | 2,216 ▲31 | 5.86 ▲0.01 | 93.60 ▼11.21 | 37.90 ▼4.34 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.05 ▲0.08 | 39.88 ▼1.35 | 34.33 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,526 ▼6 | 23.19 ▲0.12 | 661.39 ▲49.54 | 53.77 ▲3.41 |
Media Library /wp-admin/upload.php | 1,398 ▲16 | 4.26 ▲0.00 | 94.97 ▼2.03 | 40.83 ▲0.43 |
Memberful /wp-admin/options-general.php?page=memberful_options | 798 | 1.69 | 25.50 | 26.80 |
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
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_memberful_mapping
- Zombie WordPress options detected upon uninstall: 30 options
- memberful_role_inactive_customer
- memberful_use_global_snippets
- memberful_embed_enabled
- db_upgraded
- memberful_posts_available_to_any_registered_user
- memberful_filter_account_menu_items
- memberful_global_marketing_content
- memberful_auto_sync_display_names
- widget_theysaidso_widget
- memberful_client_id
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/memberful-wp/views/curl_required.php
- > /wp-content/plugins/memberful-wp/views/js_vars.php
- > /wp-content/plugins/memberful-wp/views/acl_selection.php
- 76× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(MEMBERFUL_DIR/src/acl/helpers.php): failed to open stream: No such file or directory in wp-content/plugins/memberful-wp/src/acl.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function memberful_wp_render() in wp-content/plugins/memberful-wp/views/protect_bbpress.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/memberful-wp/src/comments_protection.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/memberful-wp/src/private_user_feed.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/memberful-wp/src/logout_hooks.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function memberful_wp_render() in wp-content/plugins/memberful-wp/views/global_marketing.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function memberful_wp_render() in wp-content/plugins/memberful-wp/views/bulk_protect.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/memberful-wp/src/contrib/wp-ultimate-recipe-premium.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/memberful-wp/src/metabox.php:3
- > PHP Warning
Use of undefined constant MEMBERFUL_DIR - assumed 'MEMBERFUL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/memberful-wp/src/endpoints.php on line 7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
memberful-wp/memberful-wp.php Passed 13 tests
The main file in "Memberful WP" v. 1.73.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
Sell memberships and restrict access to content with WordPress and Memberful.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin4,753 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 74 | 1,188 | 795 | 4,172 |
JavaScript | 3 | 74 | 6 | 347 |
CSS | 2 | 13 | 27 | 234 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 1 | 4.00% |
▷ Concrete classes | 24 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 132 | |
▷ Static methods | 18 | 13.64% |
▷ Public methods | 97 | 73.48% |
▷ Protected methods | 19 | 14.39% |
▷ Private methods | 16 | 12.12% |
Functions | 241 | |
▷ Named functions | 240 | 99.59% |
▷ Anonymous functions | 1 | 0.41% |
Constants | 18 | |
▷ Global constants | 14 | 77.78% |
▷ Class constants | 4 | 22.22% |
▷ Public constants | 4 | 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
PNG images were not found in this plugin