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.04MB] [CPU: ▼5.95ms] Passed 4 tests
Server-side resources used by BuddyPress Simple Events
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 37.37 ▼2.31 |
Dashboard /wp-admin | 3.36 ▲0.02 | 49.37 ▼12.48 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 47.76 ▼0.83 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 93.63 ▼8.02 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.82 ▼1.00 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BuddyPress Simple Events
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.31 ▼1.24 | 1.71 ▲0.10 | 38.68 ▼5.81 |
Dashboard /wp-admin | 2,215 ▲30 | 5.83 ▼0.03 | 94.54 ▼3.18 | 41.68 ▲2.68 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 1.97 ▼0.08 | 40.98 ▲1.21 | 37.22 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,523 ▲4 | 17.79 ▼5.47 | 678.91 ▲31.60 | 64.99 ▲12.60 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.19 ▼0.03 | 97.38 ▼2.54 | 44.52 ▼1.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_displayed_user_id() in wp-content/plugins/buddypress-simple-events/templates/members/single/profile-events-archive.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/buddypress-simple-events/templates/events-loop.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/buddypress-simple-events/templates/events-single.php:14
- > PHP Fatal error
Uncaught Error: Class 'PP_Simple_Events_Create' not found in wp-content/plugins/buddypress-simple-events/templates/members/single/profile-events-create.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_displayed_user_id() in wp-content/plugins/buddypress-simple-events/templates/members/single/profile-events-loop.php:13
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
4 plugin tags: events, buddypress, buddyboss, event
buddypress-simple-events/loader.php 85% from 13 tests
The primary PHP file in "BuddyPress Simple Events" version 6.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-simple-events.php" instead of "loader.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,823 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 850 | 129 | 1,741 |
CSS | 1 | 10 | 0 | 57 |
JavaScript | 3 | 9 | 3 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 1 | 1.92% |
▷ Public methods | 38 | 73.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 26.92% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected