Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼140.08ms] Passed 4 tests
A check of server-side resources used by BuddyPress Social
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 39.96 ▲9.68 |
Dashboard /wp-admin | 3.08 ▲0.02 | 50.80 ▼8.18 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 49.80 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 98.13 ▼553.64 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 35.74 ▲1.16 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for BuddyPress Social
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,852 ▲256 | 17.36 ▲1.40 | 15.48 ▲2.99 | 45.24 ▲1.79 |
Dashboard /wp-admin | 3,007 ▲73 | 6.55 ▲0.57 | 149.57 ▼14.32 | 110.08 ▼6.17 |
Posts /wp-admin/edit.php | 2,776 ▲37 | 3.02 ▲0.32 | 80.02 ▲6.35 | 90.65 ▲5.78 |
Add New Post /wp-admin/post-new.php | 1,710 ▼1,840 | 18.45 ▲3.73 | 395.43 ▼113.64 | 109.55 ▼4.90 |
Media Library /wp-admin/upload.php | 1,844 ▲34 | 5.38 ▲0.36 | 150.62 ▼12.44 | 116.19 ▼3.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-social/includes/activity-sharing.php:31
- > PHP Notice
Undefined variable: twittercj_members_extension_check in wp-content/plugins/buddypress-social/buddypress-social.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-social/admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/buddypress-social/buddypress-social.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-social/loader.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
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
4 plugin tags: buddypress, activity, twitter, facebook
buddypress-social/loader.php 85% from 13 tests
The main PHP script in "BuddyPress Social" version 2.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("buddypress-social.php" instead of "loader.php")
- Description: The description should be shorter than 140 characters (currently 170 characters long)
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
No dangerous file extensions were detected608 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 83 | 6 | 306 |
PHP | 4 | 78 | 31 | 260 |
SVG | 2 | 0 | 0 | 30 |
JavaScript | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin