77% bp-user-to-do-list

Code Review | Wbcom Designs BuddyPress Todo List

WordPress plugin Wbcom Designs BuddyPress Todo List scored77%from 54 tests.

About plugin

  • Plugin page: bp-user-to-do-list
  • Plugin version: 3.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2017
  • Latest release: Jan 9, 2023
  • Number of updates: 20
  • Update frequency: every 101.8 days
  • Top authors: wbcomdesigns (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /15,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Wbcom Designs BuddyPress Todo List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.50 ▼3.59
Dashboard /wp-admin3.31 ▼0.0452.29 ▼9.86
Posts /wp-admin/edit.php3.36 ▲0.0045.33 ▼3.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.96 ▼20.21
Media Library /wp-admin/upload.php3.23 ▲0.0036.97 ▲2.64
Our Themes /wp-admin/admin.php?page=wbcom-themes-page3.0022.54
Support /wp-admin/admin.php?page=wbcom-support-page3.0022.66
Our Plugins /wp-admin/admin.php?page=wbcom-plugins-page3.0021.36
BP User To-Do List /wp-admin/admin.php?page=user-todo-list-settings3.0024.31

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 125 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
widget_bp_todo_member_todo_widget
db_upgraded
user_todo_list_settings
theysaidso_admin_options
can_compress_scripts
todo_category_children
widget_recent-comments
widget_theysaidso_widget
group-todo-list-settings

Browser metrics Passed 4 tests

Wbcom Designs BuddyPress Todo List: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▲0.051.76 ▲0.2244.69 ▲1.20
Dashboard /wp-admin2,198 ▲245.63 ▼0.0583.50 ▼0.7638.58 ▼4.35
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0435.14 ▲0.0035.14 ▼2.23
Add New Post /wp-admin/post-new.php1,526 ▼023.20 ▼0.43681.67 ▼5.5158.05 ▲7.45
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0498.34 ▼1.5345.01 ▲1.48
Our Themes /wp-admin/admin.php?page=wbcom-themes-page280.420.194.17
Support /wp-admin/admin.php?page=wbcom-support-page280.420.074.27
Our Plugins /wp-admin/admin.php?page=wbcom-plugins-page280.420.113.57
BP User To-Do List /wp-admin/admin.php?page=user-todo-list-settings280.420.093.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 10 options
    • todo_category_children
    • group-todo-list-settings
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • user_todo_list_settings
    • widget_bp_todo_member_todo_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bp-user-to-do-list/inc/templates/single-bp-todo.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-user-to-do-list/admin/wbcom/templates/wbcom-support-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bp-user-to-do-list/inc/templates/archive-bp-todo.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bp-user-to-do-list/admin/class-bptodo-feedback.php:311
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-user-to-do-list/admin/wbcom/templates/wbcom-license-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-user-to-do-list/admin/wbcom/templates/wbcom-plugins-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-user-to-do-list/public/bptodo-plugin-genral-function.php:92

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=wbcom-themes-page
    • > Network (severe)
    wp-admin/admin.php?page=wbcom-themes-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wbcom-support-page
    • > Network (severe)
    wp-admin/admin.php?page=wbcom-support-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wbcom-plugins-page
    • > Network (severe)
    wp-admin/admin.php?page=wbcom-plugins-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=user-todo-list-settings
    • > Network (severe)
    wp-admin/admin.php?page=user-todo-list-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1 - is the screen which shows the plugin settings at admin panel.), #2 (screenshot-2 - is the screen that shows member's to-do list dashboard.), #3 (screenshot-3 - is the screen that shows member's all to-do list.), #4 (screenshot-4 - is the screen which shows form to create a to-do.)
The official readme.txt might help

bp-user-to-do-list/bp-user-todo-list.php 85% from 13 tests

This is the main PHP file of "Wbcom Designs BuddyPress Todo List" version 3.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-user-to-do-list.php" instead of "bp-user-todo-list.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin13,805 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP327391,6525,666
CSS44922573,614
SVG11002,681
PO File23886451,074
JavaScript56735740
JSON10022
XML1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.13
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods107
▷ Static methods87.48%
▷ Public methods9689.72%
▷ Protected methods00.00%
▷ Private methods1110.28%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
25 PNG files occupy 1.15MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/todo-list.png0.93KB1.03KB0.00%
assets/css/images/ui-icons_cc0000_256x240.png4.52KB4.18KB▼ 7.56%
admin/wbcom/assets/imgs/wbcom-offer-notice.png67.64KB32.40KB▼ 52.11%
assets/css/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%
assets/css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%