Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.37ms] Passed 4 tests
An overview of server-side resources used by Activity Log for MemberPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 40.14 ▲1.80 |
Dashboard /wp-admin | 3.41 ▲0.07 | 55.78 ▼4.97 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.81 ▲1.32 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.12 | 91.73 ▲0.92 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.21 ▲1.25 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Activity Log for MemberPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 13.19 ▼1.09 | 1.70 ▲0.09 | 43.33 ▲2.45 |
Dashboard /wp-admin | 2,228 ▲40 | 5.86 ▼0.00 | 100.22 ▼4.23 | 39.89 ▼3.20 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.04 ▼0.01 | 41.12 ▲7.91 | 36.13 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 23.06 ▲0.09 | 645.95 ▲43.68 | 55.72 ▲3.22 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.21 ▲0.01 | 94.15 ▼1.48 | 44.76 ▲0.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/activity-log-memberpress/includes/wsal-functions.php:11
- > PHP Fatal error
Uncaught Error: Class 'WSAL_AbstractSensor' not found in wp-content/plugins/activity-log-memberpress/wp-security-audit-log/custom-sensors/WSAL_Sensors_MemberPress.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/activity-log-memberpress/wp-security-audit-log/custom-alerts.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/activity-log-memberpress/wsal-memberpress.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: activity log for memberpress, activity logs, wp activity log extension
activity-log-memberpress/wsal-memberpress.php 85% from 13 tests
Analyzing the main PHP file in "Activity Log for MemberPress" version 1.1.0
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("activity-log-memberpress.php" instead of "wsal-memberpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,786 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 347 | 790 | 2,714 |
JavaScript | 1 | 3 | 2 | 72 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 62.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 28 | 39.44% |
▷ Public methods | 67 | 94.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.63% |
Functions | 10 | |
▷ Named functions | 4 | 40.00% |
▷ Anonymous functions | 6 | 60.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin