72% chamber-dashboard-member-manager

Code Review | Chamber Dashboard Member Manager

WordPress plugin Chamber Dashboard Member Manager scored72%from 54 tests.

About plugin

  • Plugin page: chamber-dashboard...
  • Plugin version: 2.5.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: Jan 20, 2015
  • Latest release: Apr 28, 2021
  • Number of updates: 157
  • Update frequency: every 14.6 days
  • Top authors: cguntur (62.42%)Gwendydd (38.22%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /23,077 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Chamber Dashboard Member Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.25 ▲0.41
Dashboard /wp-admin3.31 ▲0.0045.81 ▼7.56
Posts /wp-admin/edit.php3.36 ▲0.0046.13 ▲0.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.76 ▲4.46
Media Library /wp-admin/upload.php3.23 ▲0.0034.40 ▲0.19
Invoice Statuses /wp-admin/edit-tags.php?taxonomy=invoice_status&post_type=invoice3.0424.55
Add New /wp-admin/post-new.php?post_type=invoice3.0425.99
Payment Report /wp-admin/edit.php?post_type=invoice&page=payment-report3.0021.36
All Invoices /wp-admin/edit.php?post_type=invoice3.0426.25
Rank Membership Levels /wp-admin/edit.php?post_type=business&page=cdashmm_levels3.0022.04

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 119 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
widget_recent-posts
membership_status_children
invoice_status_children
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
cdashmm_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Chamber Dashboard Member Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.201.77 ▲0.1143.57 ▲2.50
Dashboard /wp-admin2,209 ▲184.80 ▼1.1099.03 ▼2.8639.53 ▼5.36
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.1038.76 ▲4.7835.12 ▲2.52
Add New Post /wp-admin/post-new.php1,514 ▼1417.43 ▼5.92634.31 ▼55.4854.38 ▼9.60
Media Library /wp-admin/upload.php1,391 ▼04.35 ▲0.1992.94 ▼11.2842.25 ▼3.18
Invoice Statuses /wp-admin/edit-tags.php?taxonomy=invoice_status&post_type=invoice280.440.083.46
Add New /wp-admin/post-new.php?post_type=invoice280.440.083.55
Payment Report /wp-admin/edit.php?post_type=invoice&page=payment-report280.440.093.70
All Invoices /wp-admin/edit.php?post_type=invoice280.440.103.64
Rank Membership Levels /wp-admin/edit.php?post_type=business&page=cdashmm_levels280.440.073.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • invoice_status_children
    • membership_status_children
    • theysaidso_admin_options
    • cdashmm_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/chamber-dashboard-member-manager/cdashmm-functions.php
  • 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: mb in wp-content/plugins/chamber-dashboard-member-manager/includes/membership_renewal.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/chamber-dashboard-member-manager/includes/invoice_notification.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/chamber-dashboard-member-manager/includes/aside.php:5
    • > PHP Fatal error
      Uncaught Error: Call to a member function the_field() on null in wp-content/plugins/chamber-dashboard-member-manager/includes/membership_renewal.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chamber-dashboard-member-manager/cdash-member-manager.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chamber-dashboard-member-manager/blocks/cd_pricing_table_block.php:108
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/chamber-dashboard-member-manager/require_pages.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chamber-dashboard-member-manager/payment-report.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chamber-dashboard-member-manager/blocks/cdashmm_login_form_block.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chamber-dashboard-member-manager/blocks/membership_form_block.php:40

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/edit-tags.php?taxonomy=invoice_status&post_type=invoice
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=invoice_status&post_type=invoice - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/post-new.php?post_type=invoice
    • > Network (severe)
    wp-admin/post-new.php?post_type=invoice - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit.php?post_type=invoice&page=payment-report
    • > Network (severe)
    wp-admin/edit.php?post_type=invoice&page=payment-report - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/edit.php?post_type=invoice
    • > Network (severe)
    wp-admin/edit.php?post_type=invoice - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit.php?post_type=business&page=cdashmm_levels
    • > Network (severe)
    wp-admin/edit.php?post_type=business&page=cdashmm_levels - 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

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: Add images for these screenshots: #1 (The membership form), #2 (Public invoice view), #3 (Entering an invoice in the dashboard), #4 (Payment report)
Please take inspiration from this readme.txt

chamber-dashboard-member-manager/cdash-member-manager.php 85% from 13 tests

The primary PHP file in "Chamber Dashboard Member Manager" version 2.5.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • 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: It is recommended to name the main PHP file as the plugin slug ("chamber-dashboard-member-manager.php" instead of "cdash-member-manager.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
Good job! No executable or dangerous file extensions detected28,837 lines of code in 104 files:
LanguageFilesBlank linesComment linesLines of code
JSON30015,840
PHP247836696,316
JavaScript573955903,989
PO File37177291,755
CSS968176779
XML700137
Markdown16021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions270
▷ Named functions270100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.50MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png179.52KB44.56KB▼ 75.18%
js/jquery-timepicker-addon/images/bg_fallback.png3.63KB0.30KB▼ 91.72%
js/jquery-timepicker-addon/images/icon_sprite.png3.14KB2.30KB▼ 26.70%
js/jquery-timepicker-addon/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
js/jquery-timepicker-addon/images/slider_handles.png1.90KB1.31KB▼ 30.90%