Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.06ms] Passed 4 tests
Server-side resources used by BuddyPress Restrict Group Creation
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.50 ▼3.53 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.38 ▲2.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.76 ▼2.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 108.24 ▲12.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.94 ▲3.62 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for BuddyPress Restrict Group Creation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.20 ▼1.39 | 4.64 ▲2.93 | 38.05 ▼4.42 |
Dashboard /wp-admin | 2,206 ▲14 | 4.88 ▼0.04 | 107.29 ▼4.01 | 43.00 ▲2.24 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.05 ▲0.01 | 39.48 ▼1.05 | 33.51 ▼1.42 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.41 ▼4.77 | 617.73 ▼63.03 | 63.69 ▲10.87 |
Media Library /wp-admin/upload.php | 1,388 ▲9 | 4.19 ▼0.01 | 94.15 ▼5.37 | 41.54 ▼2.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-restrict-group-creation/bp-restrict-group-creation-loader.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 75% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Requires at least: Invalid version format
- Plugin Name: You should set the name of your plugin on the first line (
=== buddypress-restrict-group-creation ===
) - Screenshots: Add a description for screenshot #1 in buddypress-restrict-group-creation/assets to your readme.txt
- Donate link: Invalid url: "paypal.me/GeorgeChaplin"
buddypress-restrict-group-creation/bp-restrict-group-creation-loader.php 85% from 13 tests
Analyzing the main PHP file in "BuddyPress Restrict Group Creation" version 1.1.2
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-restrict-group-creation.php" instead of "bp-restrict-group-creation-loader.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin534 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 174 | 64 | 455 |
PO File | 1 | 30 | 38 | 79 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.84 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin