Benchmarks
Plugin footprint 65% 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.53MB] [CPU: ▼3.08ms] Passed 4 tests
A check of server-side resources used by AI Moderator for BuddyPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 41.02 ▼0.85 |
Dashboard /wp-admin | 3.89 ▲0.59 | 48.78 ▼5.88 |
Posts /wp-admin/edit.php | 3.94 ▲0.59 | 50.96 ▲3.05 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 96.04 ▼8.63 |
Media Library /wp-admin/upload.php | 3.65 ▲0.43 | 39.49 ▲5.57 |
Freemius Debug [v.2.5.7] /wp-admin/admin.php?page=freemius | 4.00 | 37.55 |
Server storage [IO: ▲3.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 183 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
fs_active_plugins |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
fs_debug_mode |
db_upgraded |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by AI Moderator for BuddyPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲77 | 14.79 ▲0.49 | 1.75 ▼0.04 | 34.00 ▼7.05 |
Dashboard /wp-admin | 2,240 ▲61 | 5.83 ▼0.02 | 97.31 ▼4.23 | 40.22 ▼7.06 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.02 ▲0.03 | 39.47 ▼0.85 | 41.04 ▲7.14 |
Add New Post /wp-admin/post-new.php | 1,532 ▲18 | 17.75 ▲0.22 | 629.10 ▼4.62 | 58.61 ▲6.05 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.18 ▲0.07 | 94.95 ▼4.61 | 42.42 ▼1.75 |
Freemius Debug [v.2.5.7] /wp-admin/admin.php?page=freemius | 1,081 | 1.69 | 24.29 | 28.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/ai-moderator-for-buddypress-and-buddyboss/libs/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- fs_accounts
- widget_recent-comments
- fs_debug_mode
- widget_recent-posts
- widget_theysaidso_widget
- fs_active_plugins
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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 SRP test was a success
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2 in ai-moderator-for-buddypress-and-buddyboss/assets to your readme.txt
ai-moderator-for-buddypress-and-buddyboss/ai-moderator-for-bp.php 92% from 13 tests
"AI Moderator for BuddyPress" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ai-moderator-for-buddypress-and-buddyboss.php" instead of "ai-moderator-for-bp.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin33,377 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 7,989 | 17,177 | 33,170 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 93.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,259 | |
▷ Static methods | 197 | 15.65% |
▷ Public methods | 870 | 69.10% |
▷ Protected methods | 17 | 1.35% |
▷ Private methods | 372 | 29.55% |
Functions | 101 | |
▷ Named functions | 101 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
libs/assets/img/ai-moderator-for-bp-and-bb.png | 9.16KB | 5.26KB | ▼ 42.58% |
libs/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |