Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼301.55ms] Passed 4 tests
This is a short check of server-side resources used by Activity Notifications for BuddyPress and HipChat
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.11 | 55.71 ▲6.53 |
Dashboard /wp-admin | 3.46 ▲0.06 | 31.22 ▼8.16 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 35.70 ▼3.45 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 88.89 ▼1,196.94 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 26.17 ▲2.35 |
BuddyPress and HipChat /wp-admin/options-general.php?page=anbph-settings-page | 3.33 | 21.74 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Activity Notifications for BuddyPress and HipChat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 15.87 ▼0.14 | 7.38 ▲1.35 | 2.31 ▼0.26 |
Dashboard /wp-admin | 2,897 ▲36 | 6.16 ▼0.01 | 115.83 ▼18.51 | 157.74 ▼7.19 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.24 ▲0.00 | 70.27 ▲7.10 | 145.66 ▲2.74 |
Add New Post /wp-admin/post-new.php | 1,763 ▲102 | 17.49 ▲0.33 | 414.21 ▲24.29 | 156.56 ▲0.07 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.52 ▲0.02 | 144.16 ▼2.04 | 180.00 ▼2.53 |
BuddyPress and HipChat /wp-admin/options-general.php?page=anbph-settings-page | 1,123 | 2.41 | 54.38 | 114.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/activity-notifications-for-buddypress-and-hipchat/inc/settings-page.php:3
- > 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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: hipchat, buddypress
activity-notifications-for-buddypress-and-hipchat/activity-notifications-buddypress-hipchat.php 85% from 13 tests
"Activity Notifications for BuddyPress and HipChat" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- 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
- Main file name: It is recommended to name the main PHP file as the plugin slug ("activity-notifications-for-buddypress-and-hipchat.php" instead of "activity-notifications-buddypress-hipchat.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected283 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 78 | 113 | 283 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 3 | 21.43% |
▷ Class constants | 11 | 78.57% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin