Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.45MB] [CPU: ▼13.15ms] Passed 4 tests
This is a short check of server-side resources used by BuddyKit - Additional features for BuddyPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 41.78 ▲4.25 |
Dashboard /wp-admin | 3.52 ▲0.22 | 48.47 ▼4.48 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 45.13 ▲1.92 |
Add New Post /wp-admin/post-new.php | 3.40 ▼2.49 | 37.91 ▼52.05 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 35.46 ▲2.01 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 55 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_buddykit_user_files |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
buddykit_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BuddyKit - Additional features for BuddyPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,987 ▲241 | 15.09 ▲0.78 | 49.76 ▲48.11 | 41.59 ▼2.37 |
Dashboard /wp-admin | 2,213 ▲25 | 4.83 ▼0.03 | 105.00 ▼7.24 | 43.48 ▼3.40 |
Posts /wp-admin/edit.php | 2,093 ▲22 | 1.99 ▼0.03 | 32.54 ▼3.04 | 33.65 ▼2.24 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.36 ▲5.85 | 636.18 ▼52.67 | 50.80 ▼6.98 |
Media Library /wp-admin/upload.php | 1,395 ▲16 | 4.28 ▲0.08 | 99.21 ▼7.67 | 43.01 ▼0.56 |
Buddykit /wp-admin/buddykit-settings.php | 26 | 0.44 | 0.07 | 13.52 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_buddykit_user_files
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- buddykit_db_version
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
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 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
Almost there! Just fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/buddykit/src/includes/real-time-notifications/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/buddykit/src/includes/real-time-notifications/vendor/pusher/pusher-php-server/src/Pusher.php:10
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/buddykit/src/includes/real-time-notifications/vendor/psr/log/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/buddykit/src/includes/real-time-notifications/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function BuddyKit\\Media\\add_action() in wp-content/plugins/buddykit/src/includes/media/profile-tabs/profile-tabs.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/buddykit-settings.php
- > Network (severe)
wp-admin/buddykit-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: activity streams, buddypress, social networking, community
buddykit/buddykit.php 92% from 13 tests
The main file in "BuddyKit - Additional features for BuddyPress" v. 0.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/src/languages" does not exist
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .xap - Silverlight Application Package in Microsoft Silverlight
- ☣ wp-content/plugins/buddykit/src/public/js/vendor/Moxie.xap
- .xap - Silverlight Application Package in Microsoft Silverlight
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 2,200 | 2,978 | 7,073 |
PHP | 28 | 703 | 1,150 | 2,451 |
CSS | 3 | 53 | 20 | 649 |
JSON | 4 | 0 | 0 | 169 |
Markdown | 3 | 77 | 0 | 121 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 7 | 6.48% |
▷ Public methods | 97 | 89.81% |
▷ Protected methods | 1 | 0.93% |
▷ Private methods | 10 | 9.26% |
Functions | 45 | |
▷ Named functions | 42 | 93.33% |
▷ Anonymous functions | 3 | 6.67% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 100.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
There were not PNG files found in your plugin