Benchmarks
Plugin footprint 83% 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.11MB] [CPU: ▲154.08ms] Passed 4 tests
An overview of server-side resources used by MemberSpace - Membership Plugin and Paid Subscriptions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.69 ▲1.01 |
Dashboard /wp-admin | 3.47 ▲0.16 | 256.64 ▲204.67 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 271.99 ▲225.79 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 291.63 ▲196.56 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 247.78 ▲214.09 |
MemberSpace /wp-admin/options-general.php?page=memberspace | 3.36 | 227.57 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
memberspace_display_banner |
memberspace_extra_security |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for MemberSpace - Membership Plugin and Paid Subscriptions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲221 | 16.80 ▲2.67 | 167.17 ▲165.47 | 57.87 ▲14.88 |
Dashboard /wp-admin | 2,202 ▲25 | 5.63 ▲0.00 | 90.86 ▼0.51 | 40.46 ▼7.16 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.94 ▼0.05 | 37.51 ▼2.58 | 34.76 ▲2.32 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 25.14 ▲1.86 | 623.26 ▼45.62 | 67.86 ▲13.49 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.24 ▲0.01 | 106.98 ▼1.02 | 43.63 ▲0.98 |
MemberSpace /wp-admin/options-general.php?page=memberspace | 939 | 2.01 | 24.29 | 31.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/memberspace/public/extra-security-body.php
- > /wp-content/plugins/memberspace/admin/partials/settings/rules/list.php
- > /wp-content/plugins/memberspace/public/extra-security-head.php
- > /wp-content/plugins/memberspace/admin/partials/notification-bar.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/memberspace/includes/memberspace.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/memberspace/admin/partials/settings/configuration.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/memberspace/admin/partials/settings.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/memberspace/admin/partials/settings/account_create.php:1
- > PHP Notice
Undefined index: notification_type in wp-content/plugins/memberspace/admin/partials/notification-bar.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/memberspace/public/widget.js.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/memberspace/admin/partials/activation-banner.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/memberspace/admin/partials/settings/support.php:1
- > PHP Notice
Undefined index: notification in wp-content/plugins/memberspace/admin/partials/notification-bar.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/memberspace/admin/partials/settings/rules/list_row.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: membership, membership plugin, paid subscriptions, subscriptions, members
memberspace/memberspace.php 92% from 13 tests
The main file in "MemberSpace - Membership Plugin and Paid Subscriptions" v. 2.1.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,431 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 2 | 186 | 0 | 689 |
PHP | 22 | 140 | 120 | 603 |
CSS | 2 | 19 | 5 | 113 |
JavaScript | 1 | 7 | 6 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 26 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 23.53% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 11 | |
▷ Global constants | 3 | 27.27% |
▷ Class constants | 8 | 72.73% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/ms-icon-round-white.png | 33.06KB | 12.57KB | ▼ 61.99% |