78% crm-connector-analytics

Code Review | CRM Connector Analytics

WordPress plugin CRM Connector Analytics scored78%from 54 tests.

About plugin

  • Plugin page: crm-connector-ana...
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 15, 2020
  • Latest release: Jan 31, 2023
  • Number of updates: 8
  • Update frequency: every 109.0 days
  • Top authors: crmconnector (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by CRM Connector Analytics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.03 ▲1.95
Dashboard /wp-admin3.31 ▼0.0344.47 ▼15.50
Posts /wp-admin/edit.php3.37 ▲0.0142.37 ▼6.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.22 ▼13.42
Media Library /wp-admin/upload.php3.24 ▲0.0135.29 ▲0.68

Server storage [IO: ▲2.47MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
crm_connector_settings
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for CRM Connector Analytics
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.28 ▼0.011.76 ▲0.0943.40 ▲3.69
Dashboard /wp-admin2,219 ▲385.51 ▼0.2381.65 ▼16.5865.47 ▲23.96
Posts /wp-admin/edit.php2,121 ▲212.00 ▲0.0133.63 ▼3.3933.38 ▲0.85
Add New Post /wp-admin/post-new.php1,545 ▲1723.48 ▲0.37736.55 ▲90.4454.08 ▼3.29
Media Library /wp-admin/upload.php1,424 ▲334.22 ▲0.0293.28 ▼6.7574.38 ▲27.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/crm-connector-analytics/greenrope.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crm-connector-analytics/admin.inc.php:95

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: crm connector, ticketing system, surveys, wordpress crm, email marketing...

crm-connector-analytics/greenrope.php 92% from 13 tests

The principal PHP file in "CRM Connector Analytics" v. 1.5.6 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("crm-connector-analytics.php" instead of "greenrope.php")

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
Success! There were no dangerous files found in this plugin290 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36220173
CSS130117

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
7 PNG files occupy 2.46MB with 1.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png1,749.01KB16.29KB▼ 99.07%
assets/banner-772x250.png566.66KB5.81KB▼ 98.98%
icon.png0.60KB0.58KB▼ 3.27%
assets/icon-128x128.png64.32KB4.21KB▼ 93.45%
header-ori.png11.65KB7.45KB▼ 36.00%