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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 4.24 ▼38.32 |
Dashboard /wp-admin | 2.09 ▼1.22 | 5.82 ▼41.37 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 8.85 ▼35.47 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.27 ▼95.07 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.10 ▼31.68 |
More Functionality! /wp-admin/admin.php?page=easywpmembers&tab=pro | 2.09 | 6.36 |
User Pages /wp-admin/admin.php?page=easywpm-pages | 2.09 | 5.30 |
Easy WP Members /wp-admin/admin.php?page=easywpmembers | 2.09 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,080 ▲294 | 15.61 ▲1.39 | 14.16 ▲11.98 | 36.61 ▼6.88 |
Dashboard /wp-admin | 2,285 ▲108 | 6.12 ▲0.49 | 97.47 ▲2.99 | 70.68 ▲28.79 |
Posts /wp-admin/edit.php | 2,203 ▲103 | 3.16 ▲1.15 | 48.08 ▲12.82 | 60.02 ▲25.97 |
Add New Post /wp-admin/post-new.php | 1,611 ▲85 | 23.62 ▲0.54 | 583.72 ▼54.62 | 82.58 ▲17.67 |
Media Library /wp-admin/upload.php | 1,495 ▲95 | 5.28 ▲1.06 | 99.87 ▲2.54 | 95.70 ▲50.97 |
More Functionality! /wp-admin/admin.php?page=easywpmembers&tab=pro | 1,111 | 2.89 | 41.38 | 72.60 |
User Pages /wp-admin/admin.php?page=easywpm-pages | 1,083 | 2.90 | 38.81 | 86.74 |
Easy WP Members /wp-admin/admin.php?page=easywpmembers | 1,809 | 6.67 | 61.92 | 143.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
- > PHP Fatal error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 7,085 | 849 | 12,331 |
JavaScript | 43 | 2,303 | 1,150 | 8,639 |
CSS | 13 | 1,280 | 185 | 6,107 |
SVG | 3 | 0 | 0 | 3,158 |
Sass | 23 | 50 | 48 | 2,649 |
LESS | 23 | 50 | 64 | 2,635 |
PO File | 1 | 800 | 1,011 | 1,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 code | 0.28 |
Average class complexity | 86.92 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 283.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 333 | |
▷ Static methods | 1 | 0.30% |
▷ Public methods | 330 | 99.10% |
▷ Protected methods | 3 | 0.90% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icon_delete.png | 0.70KB | 0.72KB | 0.00% |
admin/images/iconos-panel/recurring-payments-add-ons.png | 6.78KB | 3.21KB | ▼ 52.61% |
admin/images/small_logo_16x16.png | 14.89KB | 0.56KB | ▼ 96.22% |
admin/images/edit.png | 0.83KB | 0.80KB | ▼ 3.55% |
admin/images/iconos-panel/multiple-subscriptions.png | 1.84KB | 0.58KB | ▼ 68.66% |