83% bp-check-in

Code Review | Wbcom Designs – Check-ins for BuddyPress Activity

WordPress plugin Wbcom Designs – Check-ins for BuddyPress Activity scored83%from 54 tests.

About plugin

  • Plugin page: bp-check-in
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2016
  • Latest release: Feb 23, 2023
  • Number of updates: 51
  • Update frequency: every 44.4 days
  • Top authors: wbcomdesigns (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active /17,846 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.56ms] Passed 4 tests

A check of server-side resources used by Wbcom Designs – Check-ins for BuddyPress Activity
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.06 ▼1.21
Dashboard /wp-admin3.31 ▼0.0445.94 ▼15.67
Posts /wp-admin/edit.php3.36 ▲0.0042.90 ▼6.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.68 ▼6.52
Media Library /wp-admin/upload.php3.23 ▲0.0036.43 ▼1.22

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 119 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Wbcom Designs – Check-ins for BuddyPress Activity
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.27 ▼0.081.72 ▼0.1738.08 ▼5.62
Dashboard /wp-admin2,189 ▲125.53 ▼0.0586.47 ▼6.2937.07 ▼4.85
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0238.44 ▼1.4731.06 ▼8.51
Add New Post /wp-admin/post-new.php1,526 ▼223.44 ▲0.53623.71 ▼6.8956.02 ▲2.75
Media Library /wp-admin/upload.php1,391 ▼94.22 ▼0.07100.34 ▼5.4741.31 ▼4.11

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-check-in/admin/wbcom/templates/wbcom-support-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bp-check-in/admin/class-bp-checkins-admin-feedback.php:318
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-check-in/admin/wbcom/templates/wbcom-license-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-check-in/admin/wbcom/templates/wbcom-plugins-page.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (screenshot-1 -), #2 (screenshot-2 -), #3 (screenshot-3 -)
Please take inspiration from this readme.txt

bp-check-in/bp-checkins.php 77% from 13 tests

The entry point to "Wbcom Designs – Check-ins for BuddyPress Activity" version 2.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-check-in.php" instead of "bp-checkins.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin21,095 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
JSON3009,303
PHP284091,1803,012
CSS84941572,761
PO File58379972,761
SVG2402,687
JavaScript56743564
XML1007

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity24.60
▷ Minimum class complexity1.00
▷ Maximum class complexity140.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods96
▷ Static methods1212.50%
▷ Public methods9194.79%
▷ Protected methods00.00%
▷ Private methods55.21%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
admin/wbcom/assets/imgs/wbcom-offer-notice.png67.64KB32.40KB▼ 52.11%
public/css/images/ui-bg_glass_100_f6f6f6_1x400.png0.26KB0.12KB▼ 53.44%
public/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png0.41KB0.15KB▼ 62.44%
public/css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%