68% memberful-wp

Code Review | Memberful WP

WordPress plugin Memberful WP scored68%from 54 tests.

About plugin

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /151,391 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.7045.92 ▲2.47
Dashboard /wp-admin4.05 ▲0.7052.17 ▼11.50
Posts /wp-admin/edit.php4.10 ▲0.7460.02 ▲15.58
Add New Post /wp-admin/post-new.php6.59 ▲0.7087.43 ▼17.33
Media Library /wp-admin/upload.php3.91 ▲0.6845.26 ▲10.59
Memberful /wp-admin/options-general.php?page=memberful_options3.8735.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.70 ▼0.981.71 ▲0.0036.24 ▼7.53
Dashboard /wp-admin2,216 ▲315.86 ▲0.0193.60 ▼11.2137.90 ▼4.34
Posts /wp-admin/edit.php2,105 ▲132.05 ▲0.0839.88 ▼1.3534.33 ▼2.95
Add New Post /wp-admin/post-new.php1,526 ▼623.19 ▲0.12661.39 ▲49.5453.77 ▲3.41
Media Library /wp-admin/upload.php1,398 ▲164.26 ▲0.0094.97 ▼2.0340.83 ▲0.43
Memberful /wp-admin/options-general.php?page=memberful_options7981.6925.5026.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

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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP741,1887954,172
JavaScript3746347
CSS21327234

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 code0.31
Average class complexity6.23
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes25
▷ Abstract classes14.00%
▷ Concrete classes2496.00%
▷ Final classes00.00%
Methods132
▷ Static methods1813.64%
▷ Public methods9773.48%
▷ Protected methods1914.39%
▷ Private methods1612.12%
Functions241
▷ Named functions24099.59%
▷ Anonymous functions10.41%
Constants18
▷ Global constants1477.78%
▷ Class constants422.22%
▷ Public constants4100.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