74% wp-crm-system

Code Review | WordPress CRM Plugin - WP-CRM System

WordPress plugin WordPress CRM Plugin - WP-CRM System scored74%from 54 tests.

About plugin

  • Plugin page: wp-crm-system
  • Plugin version: 3.2.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 3, 2015
  • Latest release: Aug 24, 2023
  • Number of updates: 321
  • Update frequency: every 8.8 days
  • Top authors: scott.deluzio (89.41%)devrix (7.79%)pwps (3.43%)

Code review

54 tests

User reviews

14 reviews

Install metrics

1,000+ active /67,279 total downloads

Benchmarks

Plugin footprint 65% 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.41MB] [CPU: ▲6.18ms] Passed 4 tests

A check of server-side resources used by WordPress CRM Plugin - WP-CRM System
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3343.42 ▼1.66
Dashboard /wp-admin3.73 ▲0.4366.03 ▲13.95
Posts /wp-admin/edit.php3.81 ▲0.4659.85 ▲8.40
Add New Post /wp-admin/post-new.php6.34 ▲0.45111.28 ▲4.02
Media Library /wp-admin/upload.php3.64 ▲0.4153.57 ▲15.26
WP-CRM System /wp-admin/admin.php?page=wpcrm3.6989.05
Dashboard /wp-admin/admin.php?page=wpcrm-settings3.9690.67
Reports /wp-admin/admin.php?page=wpcrm-reports3.6648.19
Email /wp-admin/admin.php?page=wpcrm-email3.7049.75
Welcome /wp-admin/index.php?page=wpcrm-system-plugin-welcome3.6546.46
Extensions /wp-admin/admin.php?page=wpcrm-extensions3.6947.27

Server storage [IO: ▲3.15MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 294 new files
Database: 1 new table, 27 new options
New tables
wp_wpcrm_system_recurring_entries
New WordPress options
wpcrm_system_settings_initial
db_upgraded
_wpcrm_enable_html_email
wpcrm_system_date_format
widget_theysaidso_widget
wpcrm_system_gdpr_page_id
wpcrm_system_gmap_api
widget_recent-comments
wpcrm_system_version
wpcrm_system_report_currency_decimal_point
...

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress CRM Plugin - WP-CRM System
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲18414.37 ▲0.001.67 ▼0.0346.28 ▲7.98
Dashboard /wp-admin2,330 ▲1495.00 ▼0.6998.31 ▼9.3243.16 ▲0.54
Posts /wp-admin/edit.php2,242 ▲1422.05 ▲0.0936.07 ▼1.4632.32 ▼3.19
Add New Post /wp-admin/post-new.php1,649 ▲11223.69 ▲5.24660.52 ▲30.5437.36 ▼40.31
Media Library /wp-admin/upload.php1,541 ▲1384.55 ▲0.25103.13 ▲1.6043.91 ▼3.88
WP-CRM System /wp-admin/admin.php?page=wpcrm1,6192.0431.2136.87
Dashboard /wp-admin/admin.php?page=wpcrm-settings4,00410.42191.8962.72
Reports /wp-admin/admin.php?page=wpcrm-reports9892.0629.4227.92
Email /wp-admin/admin.php?page=wpcrm-email1,5556.28117.2254.44
Welcome /wp-admin/index.php?page=wpcrm-system-plugin-welcome1,0992.1827.2653.21
Extensions /wp-admin/admin.php?page=wpcrm-extensions1,1342.1627.3332.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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 tables detected upon uninstall: 1 table
    • wp_wpcrm_system_recurring_entries
  • Zombie WordPress options detected upon uninstall: 9 options
    • theysaidso_admin_options
    • widget_recent-comments
    • wpcrm_updated_last_run_version
    • widget_theysaidso_widget
    • widget_recent-posts
    • wpcrm_system_version
    • can_compress_scripts
    • db_upgraded
    • wpcrm_system_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 31× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wp-crm-system/includes/wcs-restrict-others.php
    • > /wp-content/plugins/wp-crm-system/includes/upsells/invoicing.php
    • > /wp-content/plugins/wp-crm-system/includes/wcs-recurring-entries.php
    • > /wp-content/plugins/wp-crm-system/includes/wcs-meta-columns-opportunity.php
    • > /wp-content/plugins/wp-crm-system/includes/wcs-fields-opportunity.php
    • > /wp-content/plugins/wp-crm-system/includes/wcs-recurring-entries-add-new.php
    • > /wp-content/plugins/wp-crm-system/includes/wcs-recurring-entries-create.php
    • > /wp-content/plugins/wp-crm-system/includes/wcs-fields-campaign.php
    • > /wp-content/plugins/wp-crm-system/includes/wcs-meta-columns-project.php
    • > /wp-content/plugins/wp-crm-system/includes/legacy/gdpr-shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in wp-crm-system/assets to your readme.txt
The official readme.txt is a good inspiration

wp-crm-system/wp-crm-system.php Passed 13 tests

The main file in "WordPress CRM Plugin - WP-CRM System" v. 3.2.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
28 characters long description:
A complete CRM for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected32,058 lines of code in 197 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131,6122,42519,795
JavaScript513021893,567
HTML36503,200
PO File31,2491,5272,976
CSS13142821,506
Sass12937920
JSON20094

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity34.17
▷ Minimum class complexity4.00
▷ Maximum class complexity119.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods108
▷ Static methods2119.44%
▷ Public methods108100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions273
▷ Named functions27199.27%
▷ Anonymous functions20.73%
Constants11
▷ Global constants11100.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
49 PNG files occupy 0.53MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/src/images/ui-icons_454545_256x240.png4.89KB4.18KB▼ 14.43%
assets/dist/images/ui-bg_flat_0_aaaaaa_40x100.png0.08KB0.08KB0.00%
assets/src/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.31KB0.18KB▼ 42.95%
includes/images/welcome-screen-reports.png47.70KB19.46KB▼ 59.21%
assets/dist/images/ui-icons_cd0a0a_256x240.png4.17KB4.18KB0.00%