Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.96ms] Passed 4 tests
Server-side resources used by BP Events Calendar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 43.49 ▲0.47 |
Dashboard /wp-admin | 3.32 ▲0.01 | 54.48 ▼2.39 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.44 ▼4.21 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.92 ▼18.32 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.84 ▼6.91 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 31 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_bpec_events_members |
wp_bpec_groups_events |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
BP Events Calendar: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.26 ▼1.49 | 1.75 ▼0.07 | 42.35 ▼5.31 |
Dashboard /wp-admin | 2,216 ▲37 | 4.84 ▼0.04 | 112.30 ▼14.89 | 42.39 ▼10.67 |
Posts /wp-admin/edit.php | 2,101 ▲9 | 2.02 ▲0.00 | 38.44 ▼6.92 | 32.68 ▼6.19 |
Add New Post /wp-admin/post-new.php | 1,529 ▼9 | 22.99 ▲1.80 | 643.16 ▼81.79 | 53.85 ▼1.83 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.23 ▲0.00 | 101.78 ▼16.69 | 44.42 ▼6.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_bpec_events_members
- wp_bpec_groups_events
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 take a closer look at the following
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bp-events-calendar/templates/bpec-event-orders.php
- > /wp-content/plugins/bp-events-calendar/templates/bpec-event-attendees.php
- > /wp-content/plugins/bp-events-calendar/templates/bpec-event-form.php
- > /wp-content/plugins/bp-events-calendar/templates/bpec-event-list.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_is_active() in wp-content/plugins/bp-events-calendar/includes/bpec-groups-extension.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_has_members() in wp-content/plugins/bp-events-calendar/templates/bpec-event-guests.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: events, events-calendar, community-events, calendar, buddypress
bp-events-calendar/bp-events-calendar.php 92% from 13 tests
"BP Events Calendar" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "4.4")
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
There were no executable files found in this plugin4,322 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 909 | 1,090 | 3,281 |
CSS | 2 | 71 | 22 | 814 |
JavaScript | 5 | 45 | 43 | 168 |
Markdown | 1 | 25 | 0 | 42 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 28.80 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 45 | |
▷ Static methods | 10 | 22.22% |
▷ Public methods | 39 | 86.67% |
▷ Protected methods | 6 | 13.33% |
▷ Private methods | 0 | 0.00% |
Functions | 78 | |
▷ Named functions | 78 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/placeholder.png | 2.75KB | 2.92KB | 0.00% |
assets/images/publish.png | 0.63KB | 0.58KB | ▼ 7.47% |
assets/images/draft.png | 0.40KB | 0.38KB | ▼ 3.69% |
assets/images/pending.png | 0.81KB | 0.80KB | ▼ 1.93% |