58% buddykit

Code Review | BuddyKit - Additional features for BuddyPress

WordPress plugin BuddyKit - Additional features for BuddyPress scored58%from 54 tests.

About plugin

  • Plugin page: buddykit
  • Plugin version: 0.0.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 4, 2018
  • Latest release: Sep 8, 2019
  • Number of updates: 6
  • Update frequency: every 76.8 days
  • Top authors: dunhakdis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /11,748 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2341.78 ▲4.25
Dashboard /wp-admin3.52 ▲0.2248.47 ▼4.48
Posts /wp-admin/edit.php3.64 ▲0.2845.13 ▲1.92
Add New Post /wp-admin/post-new.php3.40 ▼2.4937.91 ▼52.05
Media Library /wp-admin/upload.php3.45 ▲0.2235.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,987 ▲24115.09 ▲0.7849.76 ▲48.1141.59 ▼2.37
Dashboard /wp-admin2,213 ▲254.83 ▼0.03105.00 ▼7.2443.48 ▼3.40
Posts /wp-admin/edit.php2,093 ▲221.99 ▼0.0332.54 ▼3.0433.65 ▼2.24
Add New Post /wp-admin/post-new.php1,536 ▲2223.36 ▲5.85636.18 ▼52.6750.80 ▼6.98
Media Library /wp-admin/upload.php1,395 ▲164.28 ▲0.0899.21 ▼7.6743.01 ▼0.56
Buddykit /wp-admin/buddykit-settings.php260.440.0713.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

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
10,463 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript82,2002,9787,073
PHP287031,1502,451
CSS35320649
JSON400169
Markdown3770121

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 code0.31
Average class complexity9.89
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces2
Traits2
Classes15
▷ Abstract classes213.33%
▷ Concrete classes1386.67%
▷ Final classes00.00%
Methods108
▷ Static methods76.48%
▷ Public methods9789.81%
▷ Protected methods10.93%
▷ Private methods109.26%
Functions45
▷ Named functions4293.33%
▷ Anonymous functions36.67%
Constants10
▷ Global constants220.00%
▷ Class constants880.00%
▷ Public constants8100.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