72% clinicsoftware-com-crm

Code Review | ClinicSoftware.com CRM

WordPress plugin ClinicSoftware.com CRM scored72%from 54 tests.

About plugin

  • Plugin page: clinicsoftware-co...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 21, 2022
  • Latest release: May 23, 2023
  • Number of updates: 21
  • Update frequency: every 20.7 days
  • Top authors: clinicsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,023 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.27ms] Passed 4 tests

This is a short check of server-side resources used by ClinicSoftware.com CRM
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1338.05 ▼1.40
Dashboard /wp-admin3.48 ▲0.0949.22 ▼17.88
Posts /wp-admin/edit.php3.59 ▲0.1955.41 ▲4.93
Add New Post /wp-admin/post-new.php6.08 ▲0.1597.07 ▼1.07
Media Library /wp-admin/upload.php3.40 ▲0.1333.85 ▼4.74
FAQ /wp-admin/admin.php?page=clinicsoftwarecom-faq3.3835.44
Settings /wp-admin/admin.php?page=clinicsoftwarecom-admin3.3733.90
Status /wp-admin/admin.php?page=clinicsoftwarecom-status3.3731.29
Fields /wp-admin/admin.php?page=clinicsoftwarecom-fields3.3735.51
Mapping /wp-admin/admin.php?page=clinicsoftwarecom-mapping3.3534.26

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for ClinicSoftware.com CRM
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8614.10 ▼0.251.65 ▲0.2242.54 ▲2.21
Dashboard /wp-admin2,238 ▲605.65 ▼0.0090.21 ▼13.6639.92 ▲0.48
Posts /wp-admin/edit.php2,143 ▲462.02 ▼0.0139.54 ▲0.1636.19 ▼0.72
Add New Post /wp-admin/post-new.php1,561 ▲2423.28 ▼1.57646.97 ▼7.7950.65 ▼17.32
Media Library /wp-admin/upload.php1,446 ▲494.12 ▼0.04102.47 ▼10.9244.32 ▼6.84
FAQ /wp-admin/admin.php?page=clinicsoftwarecom-faq9822.0426.3528.93
Settings /wp-admin/admin.php?page=clinicsoftwarecom-admin8812.0023.5026.08
Status /wp-admin/admin.php?page=clinicsoftwarecom-status8172.0323.9023.23
Fields /wp-admin/admin.php?page=clinicsoftwarecom-fields1,3322.0022.4329.38
Mapping /wp-admin/admin.php?page=clinicsoftwarecom-mapping8142.1524.9530.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=clinicsoftwarecom-mapping
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP 0% 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
The following issues need your attention
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/clinicsoftware-com-crm/admin/partials/mapping_page.php
    • > /wp-content/plugins/clinicsoftware-com-crm/admin/partials/permission_denied.php
    • > /wp-content/plugins/clinicsoftware-com-crm/admin/partials/status_page.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/clinicsoftware-com-crm/admin/partials/settings_page.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/clinicsoftware-com-crm/admin/partials/fields_page.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/clinicsoftware-com-crm/admin/partials/faq_page.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
  • Plugin Name: You should set the name of your plugin on the first line ( === clinicsoftware-com-crm === )
The official readme.txt is a good inspiration

clinicsoftware-com-crm/clinicsoftwarecom_crm.php 85% from 13 tests

"ClinicSoftware.com CRM" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("clinicsoftware-com-crm.php" instead of "clinicsoftwarecom_crm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,034 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP172356401,031
JavaScript12273
CSS1040

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.88
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods55
▷ Static methods23.64%
▷ Public methods4378.18%
▷ Protected methods59.09%
▷ Private methods712.73%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.36MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png40.19KB19.38KB▼ 51.79%
assets/faq/connection_failed.png9.89KB4.84KB▼ 51.07%
assets/screenshot-3.png42.84KB21.61KB▼ 49.56%
assets/faq/salon_example.png55.14KB19.85KB▼ 64.00%
assets/faq/crm_api_clients.png49.49KB22.24KB▼ 55.05%