Benchmarks
Plugin footprint 83% from 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.01MB] [CPU: ▼0.64ms] Passed 4 tests
A check of server-side resources used by Activity Notifications for BuddyPress and HipChat
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.84 ▲1.90 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.59 ▲0.71 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.79 ▼1.66 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.70 ▼3.49 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.95 ▲2.99 |
BuddyPress and HipChat /wp-admin/options-general.php?page=anbph-settings-page | 3.27 | 30.95 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Activity Notifications for BuddyPress and HipChat
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 13.35 ▼1.03 | 1.82 ▼0.11 | 40.15 ▲0.22 |
Dashboard /wp-admin | 2,213 ▲30 | 5.88 ▲0.97 | 98.74 ▼25.74 | 42.53 ▼1.09 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.08 | 38.22 ▲0.09 | 35.00 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.32 ▼4.82 | 604.71 ▼77.72 | 68.52 ▲13.29 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.24 ▲0.03 | 99.07 ▼0.56 | 44.28 ▼0.22 |
BuddyPress and HipChat /wp-admin/options-general.php?page=anbph-settings-page | 874 | 2.02 | 21.79 | 25.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > 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 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: hipchat, buddypress
activity-notifications-for-buddypress-and-hipchat/activity-notifications-buddypress-hipchat.php 85% from 13 tests
Analyzing the main PHP file in "Activity Notifications for BuddyPress and HipChat" version 1.0
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same 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 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin283 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
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected