84% buddyslack

Code Review | BuddySlack

WordPress plugin BuddySlack scored84%from 54 tests.

About plugin

  • Plugin page: buddyslack
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-4.7
  • WordPress version: 6.3.1
  • First release: Jul 6, 2015
  • Latest release: Dec 8, 2016
  • Number of updates: 4
  • Update frequency: every 130.3 days
  • Top authors: dimensionmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,933 total downloads

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
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.83ms] Passed 4 tests

An overview of server-side resources used by BuddySlack
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.93 ▼7.14
Dashboard /wp-admin3.41 ▲0.0750.01 ▼18.23
Posts /wp-admin/edit.php3.52 ▲0.1757.10 ▲5.08
Add New Post /wp-admin/post-new.php6.01 ▲0.1391.39 ▼8.09
Media Library /wp-admin/upload.php3.33 ▲0.1139.73 ▲2.16

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddySlack
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲12113.43 ▼0.857.36 ▲5.2038.47 ▼4.40
Dashboard /wp-admin2,208 ▲315.61 ▼0.0488.27 ▼10.7439.69 ▼2.98
Posts /wp-admin/edit.php2,110 ▲102.02 ▲0.0240.23 ▼2.0736.52 ▼0.18
Add New Post /wp-admin/post-new.php1,536 ▲1023.29 ▼0.03696.83 ▲32.2152.29 ▼3.72
Media Library /wp-admin/upload.php1,407 ▲74.20 ▲0.0496.67 ▼10.1947.06 ▼2.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/buddyslack/admin/partials/buddyslack-admin-display.php
    • > /wp-content/plugins/buddyslack/public/partials/buddyslack-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === buddyslack === )
You can take inspiration from this readme.txt

buddyslack/buddyslack.php Passed 13 tests

"BuddySlack" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
98 characters long description:
Have BuddyPress activites posted to a Slack channel, private group, or user (via direct messages).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected597 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13280652591
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.88
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods45
▷ Static methods24.44%
▷ Public methods4088.89%
▷ Protected methods00.00%
▷ Private methods511.11%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin