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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.04ms] Passed 4 tests
A check of server-side resources used by BP Group Sites
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.79 ▼0.53 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.25 ▲2.04 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.81 ▼5.75 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 81.79 ▼3.90 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.88 ▲3.68 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
BP Group Sites: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.28 ▼1.37 | 1.81 ▼0.00 | 43.79 ▲0.79 |
Dashboard /wp-admin | 2,206 ▲24 | 4.86 ▼0.99 | 113.54 ▲10.66 | 42.69 ▲3.10 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.03 | 35.25 ▼1.59 | 30.88 ▼2.90 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.62 ▲0.07 | 688.88 ▲92.20 | 58.79 ▲8.01 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.23 ▲0.03 | 104.16 ▲5.00 | 47.32 ▲1.52 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
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
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bp-group-sites/assets/templates/twentysixteen/index.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bp-group-sites/assets/templates/bpgsites/index.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bp-group-sites/bp-group-sites.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bp-group-sites/assets/templates/twentysixteen/bpgsites-loop.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bp-group-sites/assets/templates/bpgsites/bpgsites-loop.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: reading groups, buddypress, sites, groups
bp-group-sites/bp-group-sites.php Passed 13 tests
Analyzing the main PHP file in "BP Group Sites" version 0.3.1
81 characters long description:
Creates many-to-many relationships between BuddyPress Groups and WordPress Sites.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,397 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 2,058 | 3,038 | 2,990 |
JavaScript | 3 | 304 | 415 | 308 |
CSS | 2 | 37 | 44 | 99 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 38.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 174.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 89 | 97.80% |
▷ Protected methods | 2 | 2.20% |
▷ Private methods | 0 | 0.00% |
Functions | 86 | |
▷ Named functions | 86 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin