Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.45ms] Passed 4 tests
This is a short check of server-side resources used by BP Groups Suggestions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.48 ▲2.67 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.37 ▼15.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.49 ▼3.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.72 ▼19.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.90 ▲0.98 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BP Groups Suggestions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.36 ▼0.02 | 1.79 ▲0.20 | 43.35 ▲2.05 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▲0.01 | 90.39 ▲0.54 | 41.88 ▲0.90 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▼0.07 | 34.87 ▼6.74 | 36.07 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.15 ▼0.08 | 685.62 ▲27.35 | 75.58 ▲8.50 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.12 ▼0.12 | 111.02 ▲13.05 | 46.64 ▲1.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-groups-suggestions/groups/suggested-groups.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-groups-suggestions/loader.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (The "Suggested groups" tab on Groups Directory page.), #2 (Hide this Suggestion button on Group description (in case the group is on the suggested groups list).), #3 (Message on Group home page is the group, which is displayed in every visit after the group is removed from suggestion list.), #4 (Message on "Suggested groups" tab on Groups Directory page, in case none group is suggested), #5 (Widget settings)
bp-groups-suggestions/loader.php 92% from 13 tests
"BP Groups Suggestions" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-groups-suggestions.php" instead of "loader.php")
Code Analysis Passed 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
No dangerous file extensions were detected917 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 111 | 277 | 659 |
JavaScript | 1 | 19 | 6 | 132 |
PO File | 2 | 42 | 54 | 123 |
CSS | 1 | 0 | 7 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 11 | 52.38% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 17.90KB | 9.24KB | ▼ 48.38% |
screenshot-1.png | 38.14KB | 17.28KB | ▼ 54.68% |
screenshot-2.png | 50.68KB | 21.94KB | ▼ 56.71% |
images/icon-tool.png | 0.96KB | 0.78KB | ▼ 18.88% |
screenshot-5.png | 9.62KB | 5.16KB | ▼ 46.32% |