Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲6.50MB] [CPU: ▲44.49ms] 50% from 4 tests
Analyzing server-side resources used by BuddyPress WooCommerce My Account Integration. Create WooCommerce Member Pages
Please take the time to fix the following items
- RAM: Try to keep total memory usage under 10MB (currently 10.51MB on /wp-admin/admin.php?page=wc4bp-install-plugins)
- Extra RAM: Extra memory usage should kept under 5MB (currently 6.50MB on /wp-admin/admin.php?page=wc4bp-install-plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.49 ▲7.03 | 77.68 ▲36.36 |
Dashboard /wp-admin | 10.51 ▲7.21 | 92.91 ▲43.79 |
Posts /wp-admin/edit.php | 10.51 ▲7.16 | 88.64 ▲41.15 |
Add New Post /wp-admin/post-new.php | 10.51 ▲4.63 | 140.24 ▲56.64 |
Media Library /wp-admin/upload.php | 10.51 ▲7.28 | 88.68 ▲57.58 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 10.51 | 74.25 |
Install Plugins /wp-admin/admin.php?page=wc4bp-install-plugins | 10.51 | 74.45 |
Server storage [IO: ▲3.92MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 310 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
fs_accounts |
widget_theysaidso_widget |
fs_active_plugins |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
fs_debug_mode |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by BuddyPress WooCommerce My Account Integration. Create WooCommerce Member Pages
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲116 | 14.34 ▲0.00 | 1.80 ▲0.01 | 28.24 ▼15.55 |
Dashboard /wp-admin | 2,261 ▲86 | 5.60 ▼0.12 | 95.46 ▼13.31 | 47.94 ▲2.86 |
Posts /wp-admin/edit.php | 2,175 ▲75 | 2.15 ▲0.21 | 41.81 ▲3.53 | 44.46 ▲9.87 |
Add New Post /wp-admin/post-new.php | 1,578 ▲52 | 23.80 ▲0.76 | 746.53 ▲45.51 | 52.56 ▲1.07 |
Media Library /wp-admin/upload.php | 1,468 ▲74 | 4.23 ▲0.08 | 109.97 ▲10.78 | 57.28 ▲13.75 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,109 | 1.84 | 28.02 | 30.97 |
Install Plugins /wp-admin/admin.php?page=wc4bp-install-plugins | 1,054 | 2.19 | 23.64 | 32.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wc4bp/class/includes/freemius/includes/class-freemius.php+8549
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-posts
- db_upgraded
- fs_active_plugins
- can_compress_scripts
- fs_debug_mode
- fs_accounts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wc4bp/admin/admin-gopro-screen.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce my account, woocommerce buddypress, woocommerce member pages, buddyboss, woocommerce profile
wc4bp/wc4bp-basic-integration.php 85% from 13 tests
The principal PHP file in "BuddyPress WooCommerce My Account Integration. Create WooCommerce Member Pages" v. 3.4.18 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc4bp.php" instead of "wc4bp-basic-integration.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "3.3.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin44,764 lines of code in 238 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 197 | 9,766 | 20,761 | 41,362 |
PO File | 7 | 1,139 | 1,153 | 2,523 |
JavaScript | 12 | 64 | 59 | 440 |
CSS | 21 | 55 | 4 | 412 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 57.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 97 | |
▷ Abstract classes | 2 | 2.06% |
▷ Concrete classes | 95 | 97.94% |
▷ Final classes | 0 | 0.00% |
Methods | 1,614 | |
▷ Static methods | 251 | 15.55% |
▷ Public methods | 1,181 | 73.17% |
▷ Protected methods | 42 | 2.60% |
▷ Private methods | 391 | 24.23% |
Functions | 159 | |
▷ Named functions | 153 | 96.23% |
▷ Anonymous functions | 6 | 3.77% |
Constants | 164 | |
▷ Global constants | 110 | 67.07% |
▷ Class constants | 54 | 32.93% |
▷ Public constants | 54 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
class/includes/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
class/includes/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |