10% easy-wp-members

Code Review | Easy WP Members A Membership & Subscriptions Plugin - Posts, Pages and Partial Content Protection.

WordPress plugin Easy WP Members A Membership & Subscriptions Plugin - Posts, Pages and Partial Content Protection. scored10%from 54 tests.

About plugin

  • Plugin page: easy-wp-members
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Mar 5, 2018
  • Latest release: Oct 2, 2021
  • Number of updates: 30
  • Update frequency: every 43.8 days
  • Top authors: UsersUltra (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /3,801 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/easy-wp-members/functions/functions.php+98
    Function get_magic_quotes_gpc() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼52.56ms] Passed 4 tests

An overview of server-side resources used by Easy WP Members A Membership & Subscriptions Plugin - Posts, Pages and Partial Content Protection.
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.404.24 ▼38.32
Dashboard /wp-admin2.09 ▼1.225.82 ▼41.37
Posts /wp-admin/edit.php2.09 ▼1.278.85 ▼35.47
Add New Post /wp-admin/post-new.php2.09 ▼3.805.27 ▼95.07
Media Library /wp-admin/upload.php2.09 ▼1.145.10 ▼31.68
More Functionality! /wp-admin/admin.php?page=easywpmembers&tab=pro2.096.36
User Pages /wp-admin/admin.php?page=easywpm-pages2.095.30
Easy WP Members /wp-admin/admin.php?page=easywpmembers2.096.05

Server storage [IO: ▲4.21MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 276 new files
Database: 5 new tables, 10 new options
New tables
wp_easywpm_membership_packages
wp_easywpm_role_post_rel
wp_easywpm_subscriptions
wp_easywpm_membership_post_rel
wp_easywpm_orders
New WordPress options
easywpm_options
can_compress_scripts
theysaidso_admin_options
easywpm_ini_setup
easywpm_pro_active
easywpm_profile_fields
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy WP Members A Membership & Subscriptions Plugin - Posts, Pages and Partial Content Protection.
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,080 ▲29415.61 ▲1.3914.16 ▲11.9836.61 ▼6.88
Dashboard /wp-admin2,285 ▲1086.12 ▲0.4997.47 ▲2.9970.68 ▲28.79
Posts /wp-admin/edit.php2,203 ▲1033.16 ▲1.1548.08 ▲12.8260.02 ▲25.97
Add New Post /wp-admin/post-new.php1,611 ▲8523.62 ▲0.54583.72 ▼54.6282.58 ▲17.67
Media Library /wp-admin/upload.php1,495 ▲955.28 ▲1.0699.87 ▲2.5495.70 ▲50.97
More Functionality! /wp-admin/admin.php?page=easywpmembers&tab=pro1,1112.8941.3872.60
User Pages /wp-admin/admin.php?page=easywpm-pages1,0832.9038.8186.74
Easy WP Members /wp-admin/admin.php?page=easywpmembers1,8096.6761.92143.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/easy-wp-members/functions/functions.php+98
    Function get_magic_quotes_gpc() is deprecated
  • Zombie tables were found after uninstall: 5 tables
    • wp_easywpm_membership_packages
    • wp_easywpm_subscriptions
    • wp_easywpm_membership_post_rel
    • wp_easywpm_role_post_rel
    • wp_easywpm_orders
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • easywpm_ini_setup
    • widget_recent-posts
    • easywpm_pro_active
    • theysaidso_admin_options
    • easywpm_options
    • widget_recent-comments
    • easywpm_profile_fields
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easywpmembers
    • > Deprecated in wp-content/plugins/easy-wp-members/functions/functions.php+98
    Function get_magic_quotes_gpc() is deprecated
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easywpmembers
    • > Notice in wp-content/plugins/easy-wp-members/classes/easywpm.admin.php+423
    Undefined variable: pending_count
  • 18 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easywpmembers
    • > Notice in wp-content/plugins/easy-wp-members/classes/easywpm.admin.php+486
    Undefined variable: custom_badge
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easywpmembers
    • > Notice in wp-content/plugins/easy-wp-members/classes/easywpm.order.php+615
    Undefined variable: vals
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easywpmembers
    • > Notice in wp-content/plugins/easy-wp-members/classes/easywpm.order.php+609
    Undefined variable: day

SRP 50% 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
Please fix the following
  • 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-wp-members/classes/easywpm.user.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/easy-wp-members/index.php:17
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-wp-members/addons/pages/admin/admin.php on line 14
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-wp-members/classes/easywpm.cropimage.php:123
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/easy-wp-members/classes/easywpm.membership.php on line 29
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-wp-members/classes/easywpm.role.php:104
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-wp-members/classes/easywpm.postprotection.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-wp-members/classes/easywpm.profile.php:11
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/easy-wp-members/classes/easywpm.order.php on line 20
    • > PHP Fatal error
      Uncaught Error: Class 'EasyWPMembersCommon' not found in wp-content/plugins/easy-wp-members/classes/easywpm.messaging.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (DASHBOARD), #2 (ADMIN - SUBSCRIPTIONS), #3 (ADMIN - SUBSCRIPTIONS - DETAILS), #4 (ADMIN - SUBSCRIPTIONS - EDIT), #5 (ADMIN - ORDERS), #6 (MEMBER - DASHBOARD), #7 (MEMBER - MEMBERSHIP DETAILS), #8 (MEMBER - CUSTOM AVATAR), #9 (MEMBER - WOOCOMMERCE ORDERS), #10 (MEMBER - SUBSCRIPTION PLANS PURCHASE)
Please take inspiration from this readme.txt

easy-wp-members/index.php 92% from 13 tests

"Easy WP Members A Membership & Subscriptions Plugin - Posts, Pages and Partial Content Protection." version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-wp-members.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin37,344 lines of code in 154 files:
LanguageFilesBlank linesComment linesLines of code
PHP487,08584912,331
JavaScript432,3031,1508,639
CSS131,2801856,107
SVG3003,158
Sass2350482,649
LESS2350642,635
PO File18001,0111,825

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity86.92
▷ Minimum class complexity10.00
▷ Maximum class complexity283.00
Average method complexity4.35
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods333
▷ Static methods10.30%
▷ Public methods33099.10%
▷ Protected methods30.90%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
86 PNG files occupy 0.98MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/icon_delete.png0.70KB0.72KB0.00%
admin/images/iconos-panel/recurring-payments-add-ons.png6.78KB3.21KB▼ 52.61%
admin/images/small_logo_16x16.png14.89KB0.56KB▼ 96.22%
admin/images/edit.png0.83KB0.80KB▼ 3.55%
admin/images/iconos-panel/multiple-subscriptions.png1.84KB0.58KB▼ 68.66%