78% birthday-widget-for-buddypress

Code Review | Wbcom Designs - Birthday Widget for BuddyPress

WordPress plugin Wbcom Designs - Birthday Widget for BuddyPress scored78%from 54 tests.

About plugin

  • Plugin page: birthday-widget-f...
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Nov 26, 2021
  • Latest release: Feb 23, 2023
  • Number of updates: 4
  • Update frequency: every 113.5 days
  • Top authors: wbcomdesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /3,952 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.76ms] Passed 4 tests

Server-side resources used by Wbcom Designs - Birthday Widget for BuddyPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.77 ▼1.63
Dashboard /wp-admin3.31 ▲0.0048.16 ▼4.52
Posts /wp-admin/edit.php3.36 ▲0.0048.27 ▼9.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.35 ▼2.95
Media Library /wp-admin/upload.php3.23 ▲0.0039.19 ▲2.55

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
widget_buddypress_birthdays
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Wbcom Designs - Birthday Widget for BuddyPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.28 ▲0.012.01 ▼0.0443.35 ▲2.76
Dashboard /wp-admin2,195 ▲185.61 ▼0.0492.29 ▲5.3239.65 ▲0.18
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0040.07 ▼1.7136.61 ▲0.57
Add New Post /wp-admin/post-new.php1,526 ▼1123.10 ▲4.78625.42 ▼92.4248.84 ▼21.00
Media Library /wp-admin/upload.php1,400 ▼04.28 ▲0.0596.76 ▼3.1944.23 ▼4.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_buddypress_birthdays
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/birthday-widget-for-buddypress/assets/inc/bbirthdays-widget.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/birthday-widget-for-buddypress/buddypress-birthdays.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: buddypress

birthday-widget-for-buddypress/buddypress-birthdays.php 85% from 13 tests

The entry point to "Wbcom Designs - Birthday Widget for BuddyPress" version 2.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("birthday-widget-for-buddypress.php" instead of "buddypress-birthdays.php")

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
Everything looks great! No dangerous files found in this plugin9,010 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON2008,231
PHP690193490
CSS14449216
JavaScript242273

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity77.00
▷ Minimum class complexity77.00
▷ Maximum class complexity77.00
Average method complexity9.44
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin