Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.66ms] Passed 4 tests
Analyzing server-side resources used by Registration Options for BuddyPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.63 ▼1.73 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.46 ▼2.79 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.89 ▼1.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.86 ▼7.87 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.17 ▼2.24 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Registration Options for BuddyPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.14 | 1.75 ▼0.04 | 42.41 ▲4.12 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▲0.92 | 99.65 ▼2.46 | 43.72 ▲0.98 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 34.30 ▼6.98 | 33.54 ▼2.24 |
Add New Post /wp-admin/post-new.php | 1,519 ▼23 | 23.03 ▲4.93 | 609.23 ▼38.53 | 55.28 ▼2.53 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.01 | 92.06 ▼20.84 | 45.30 ▼1.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-registration-options/includes/compatibility.php:176
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-registration-options/loader.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bp-registration-options/includes/core.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-registration-options/includes/admin.php:333
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: admin, plugin, blogs, new members, buddypress spam...
bp-registration-options/loader.php 85% from 13 tests
Analyzing the main PHP file in "Registration Options for BuddyPress" version 4.4.5
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 637 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("bp-registration-options.php" instead of "loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,826 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 478 | 701 | 1,419 |
PHP | 6 | 396 | 772 | 1,394 |
CSS | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 64 | |
▷ Named functions | 63 | 98.44% |
▷ Anonymous functions | 1 | 1.56% |
Constants | 1 | |
▷ Global constants | 1 | 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
PNG images were not found in this plugin