77% chamber-dashboard-crm

Code Review | Chamber Dashboard CRM

WordPress plugin Chamber Dashboard CRM scored77%from 54 tests.

About plugin

  • Plugin page: chamber-dashboard...
  • Plugin version: 1.5.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: Sep 12, 2014
  • Latest release: Mar 31, 2021
  • Number of updates: 57
  • Update frequency: every 42.0 days
  • Top authors: cguntur (56.14%)Gwendydd (45.61%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /11,999 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: ▼2.53ms] Passed 4 tests

A check of server-side resources used by Chamber Dashboard CRM
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.70 ▼3.01
Dashboard /wp-admin3.31 ▲0.0049.48 ▲0.84
Posts /wp-admin/edit.php3.36 ▲0.0050.56 ▼0.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.22 ▼7.63
Media Library /wp-admin/upload.php3.23 ▲0.0041.30 ▲4.41
Activity Category /wp-admin/edit-tags.php?taxonomy=activity_category&post_type=activity3.0434.38
All Activities /wp-admin/edit.php?post_type=activity3.0424.94
People Category /wp-admin/edit-tags.php?taxonomy=people_category&post_type=person3.0423.86
Add New /wp-admin/post-new.php?post_type=activity3.0426.43
Add New /wp-admin/post-new.php?post_type=person3.0431.95
All People /wp-admin/edit.php?post_type=person3.0436.30

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Chamber Dashboard CRM
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.74 ▲0.391.74 ▼0.1343.99 ▼1.02
Dashboard /wp-admin2,195 ▲155.56 ▼0.0781.84 ▼9.5938.37 ▼1.98
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0340.38 ▲5.1636.81 ▼2.34
Add New Post /wp-admin/post-new.php1,534 ▲518.50 ▼4.60650.80 ▼30.6468.27 ▲12.86
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.00109.45 ▲5.2846.39 ▲3.18
Activity Category /wp-admin/edit-tags.php?taxonomy=activity_category&post_type=activity280.420.164.53
All Activities /wp-admin/edit.php?post_type=activity280.420.223.89
People Category /wp-admin/edit-tags.php?taxonomy=people_category&post_type=person280.420.083.65
Add New /wp-admin/post-new.php?post_type=activity280.420.083.75
Add New /wp-admin/post-new.php?post_type=person280.420.083.67
All People /wp-admin/edit.php?post_type=person280.420.073.72

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/chamber-dashboard-crm/wpalchemy/personcustom.php:3
    • > PHP Notice
      Undefined variable: mb in wp-content/plugins/chamber-dashboard-crm/wpalchemy/person.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chamber-dashboard-crm/cdash-crm.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chamber-dashboard-crm/wpalchemy/MetaBox.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chamber-dashboard-crm/options.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/chamber-dashboard-crm/required_files.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/chamber-dashboard-crm/includes/aside.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chamber-dashboard-crm/views.php:145
    • > PHP Fatal error
      Uncaught Error: Call to a member function the_field() on null in wp-content/plugins/chamber-dashboard-crm/wpalchemy/person.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/edit-tags.php?taxonomy=activity_category&post_type=activity
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=activity_category&post_type=activity - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit.php?post_type=activity
    • > Network (severe)
    wp-admin/edit.php?post_type=activity - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit-tags.php?taxonomy=people_category&post_type=person
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=people_category&post_type=person - 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=activity
    • > Network (severe)
    wp-admin/post-new.php?post_type=activity - 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=person
    • > Network (severe)
    wp-admin/post-new.php?post_type=person - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit.php?post_type=person
    • > Network (severe)
    wp-admin/edit.php?post_type=person - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Entering people record), #2 (Displaying board members/staff members on the front end)
You can take inspiration from this readme.txt

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

The main PHP script in "Chamber Dashboard CRM" version 1.5.6 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("chamber-dashboard-crm.php" instead of "cdash-crm.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin21,235 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JSON20017,564
PHP117121,1053,008
JavaScript4207335
PO File1106106268
CSS113060

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity98.67
▷ Minimum class complexity3.00
▷ Maximum class complexity272.00
Average method complexity4.02
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods97
▷ Static methods88.25%
▷ Public methods9698.97%
▷ Protected methods00.00%
▷ Private methods11.03%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.98MB with 0.59MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png147.98KB71.10KB▼ 51.95%
screenshot-2.png857.87KB265.13KB▼ 69.09%