Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▼0.59ms] Passed 4 tests
An overview of server-side resources used by Explara Membership
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.48 | 45.22 ▲5.73 |
Dashboard /wp-admin | 3.87 ▲0.52 | 60.32 ▼4.41 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 60.11 ▲6.57 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 92.48 ▼9.96 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 41.38 ▲6.26 |
Settings /wp-admin/admin.php?page=explara-membership-settings | 3.72 | 43.11 |
Membership /wp-admin/admin.php?page=explara-membership | 3.71 | 44.44 |
Server storage [IO: ▲3.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 118 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_explara_members |
wp_explara_groups |
New WordPress options |
---|
widget_recent-comments |
explara_membership_account_page |
db_upgraded |
explara_membership_payment_page |
widget_recent-posts |
explara_membership_version |
explara_membership_page |
can_compress_scripts |
explara_membership_portal_page |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Explara Membership
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,128 ▲367 | 16.78 ▲2.43 | 20.55 ▲18.69 | 43.77 ▲3.52 |
Dashboard /wp-admin | 2,368 ▲191 | 6.13 ▲0.48 | 122.72 ▲30.17 | 44.55 ▼2.95 |
Posts /wp-admin/edit.php | 2,297 ▲194 | 3.34 ▲1.31 | 46.38 ▲4.11 | 37.00 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.64 ▲0.36 | 637.63 ▼51.64 | 37.74 ▼18.29 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.15 ▼0.03 | 84.88 ▼26.27 | 52.87 ▲2.94 |
Settings /wp-admin/admin.php?page=explara-membership-settings | 1,301 | 3.14 | 39.64 | 35.91 |
Membership /wp-admin/admin.php?page=explara-membership | 1,258 | 3.02 | 39.36 | 28.25 |
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
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/explara-membership/includes/install/explara-membership-install.php+25
Non-static method ExplaraMembership_Install::deleteOptionEntries() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
The following issues need your attention
- 22× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/explara-membership/pages/member/groups/group-renew.php
- > /wp-content/plugins/explara-membership/pages/member/groups/group-close.php
- > /wp-content/plugins/explara-membership/pages/member/groups/single/bkmodals.php
- > /wp-content/plugins/explara-membership/pages/member/groups/includes/checkout-pricing.php
- > /wp-content/plugins/explara-membership/pages/member/groups/includes/checkout-o-steps.php
- > /wp-content/plugins/explara-membership/pages/member/account/forgotpassword.php
- > /wp-content/plugins/explara-membership/pages/member/groups/single/discussion.php
- > /wp-content/plugins/explara-membership/pages/member/groups/single/members.php
- > /wp-content/plugins/explara-membership/pages/member/groups/single/media.php
- > /wp-content/plugins/explara-membership/pages/member/groups/includes/checkout-c-steps.php
- 140× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: group in wp-content/plugins/explara-membership/pages/member/groups/includes/checkout-o-steps.php on line 100
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/explara-membership/pages/member/groups/single/home.php on line 62
- > PHP Notice
Undefined variable: currency in wp-content/plugins/explara-membership/pages/member/groups/includes/checkout-o-steps.php on line 45
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/explara-membership/pages/member/groups/group-renew.php on line 16
- > PHP Notice
Undefined variable: currency in wp-content/plugins/explara-membership/pages/member/groups/includes/checkout-c-steps.php on line 135
- > PHP Notice
Undefined variable: currency in wp-content/plugins/explara-membership/pages/member/groups/includes/checkout-o-steps.php on line 134
- > PHP Notice
Undefined variable: group in wp-content/plugins/explara-membership/pages/member/groups/includes/checkout-top.php on line 5
- > PHP Notice
Trying to get property 'plans' of non-object in wp-content/plugins/explara-membership/pages/member/groups/includes/checkout-c-steps.php on line 53
- > PHP Notice
Undefined variable: sub_total in wp-content/plugins/explara-membership/pages/member/groups/includes/checkout-c-steps.php on line 121
- > PHP Notice
Trying to get property 'details' of non-object in wp-content/plugins/explara-membership/pages/member/groups/single/home.php on line 95
- > PHP Notice
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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: group, membership
explara-membership/explara-membership.php Passed 13 tests
The main PHP file in "Explara Membership" ver. 0.0.7 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Plugin enables user to create and manage group(s) and grow membership.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin58,176 lines of code in 106 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 10,067 | 3,687 | 30,591 |
CSS | 2 | 3,365 | 318 | 11,592 |
Sass | 21 | 1,121 | 54 | 7,901 |
PHP | 59 | 1,118 | 92 | 4,836 |
SVG | 7 | 43 | 7 | 3,256 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 12.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 116 | 78.38% |
▷ Public methods | 123 | 83.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 25 | 16.89% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/default-skin.png | 0.53KB | 0.72KB | 0.00% |