Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼145.79ms] Passed 4 tests
Server-side resources used by BuddyPress Registration Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.08 | 33.05 ▼2.47 |
Dashboard /wp-admin | 3.14 ▲0.09 | 48.12 ▼0.13 |
Posts /wp-admin/edit.php | 3.19 ▲0.09 | 36.37 ▼10.64 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 88.55 ▼569.90 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 32.78 ▲0.42 |
BuddyPress Registration Options /wp-admin/options-general.php?page=buddy-register-widget-options | 3.07 | 32.75 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_buddy_registration |
Browser metrics Passed 4 tests
Checking browser requirements for BuddyPress Registration Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.86 ▲0.28 | 8.86 ▼1.28 | 46.04 ▲2.24 |
Dashboard /wp-admin | 2,978 ▲47 | 5.93 ▼0.06 | 144.55 ▼4.46 | 109.69 ▼7.45 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.01 | 76.10 ▲8.41 | 84.95 ▼9.08 |
Add New Post /wp-admin/post-new.php | 1,501 ▼2,199 | 18.83 ▲0.16 | 391.59 ▼70.57 | 108.30 ▲4.04 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.02 ▲0.01 | 157.66 ▼0.37 | 121.55 ▲8.31 |
BuddyPress Registration Options /wp-admin/options-general.php?page=buddy-register-widget-options | 1,212 | 2.05 | 57.96 | 70.94 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_buddy_registration
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/buddy-registration-widget/buddyregistration.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Buddy_Registration' not found in wp-content/plugins/buddy-registration-widget/classes/class.buddy.profile.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/buddy-registration-widget/templates/settings/buddy-setting-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function buddypress() in wp-content/plugins/buddy-registration-widget/templates/shortcode-form-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function buddypress() in wp-content/plugins/buddy-registration-widget/templates/form-template.php:2
- > PHP Fatal error
Uncaught Error: Class 'Buddy_Registration' not found in wp-content/plugins/buddy-registration-widget/classes/class.buddy.profile.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Requires at least: Invalid version format
buddy-registration-widget/buddyregistration.php 85% from 13 tests
Analyzing the main PHP file in "BuddyPress Registration Widget" version 2.1.2
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: The principal plugin file should be the same as the plugin slug ("buddy-registration-widget.php" instead of "buddyregistration.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected483 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 149 | 155 | 396 |
JavaScript | 1 | 15 | 3 | 51 |
CSS | 1 | 2 | 0 | 36 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.67 |
▷ 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 | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG images were found in this plugin