79% contact-manager-for-pipedrive

Code Review | Easily integrate Pipedrive CRM with your WordPress site

WordPress plugin Easily integrate Pipedrive CRM with your WordPress site scored79%from 54 tests.

About plugin

  • Plugin page: contact-manager-f...
  • Plugin version: 1.0
  • PHP compatiblity: 8.0.10+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 6.3.1
  • First release: Feb 15, 2022
  • Latest release: Feb 15, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: zebfross (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /352 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼1.71ms] Passed 4 tests

A check of server-side resources used by Easily integrate Pipedrive CRM with your WordPress site
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1342.21 ▲1.42
Dashboard /wp-admin3.44 ▲0.1350.24 ▼2.96
Posts /wp-admin/edit.php3.55 ▲0.1947.19 ▼4.14
Add New Post /wp-admin/post-new.php6.02 ▲0.1392.27 ▲3.91
Media Library /wp-admin/upload.php3.36 ▲0.1336.78 ▼1.15
Contacts for Pipedrive /wp-admin/options-general.php?page=contacts-for-pipedrive3.3331.81

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 371 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easily integrate Pipedrive CRM with your WordPress site
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.17 ▼1.201.98 ▲0.2343.10 ▼0.31
Dashboard /wp-admin2,210 ▲254.87 ▼1.03112.53 ▲10.0944.37 ▲5.30
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.1835.74 ▼0.3632.24 ▼3.32
Add New Post /wp-admin/post-new.php1,536 ▲322.97 ▼0.60651.83 ▼41.6455.10 ▼15.97
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.1696.24 ▼10.7946.83 ▲0.97
Contacts for Pipedrive /wp-admin/options-general.php?page=contacts-for-pipedrive7782.0223.5126.83

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/contact-manager-for-pipedrive/views/header.php
  • 84× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/contact-manager-for-pipedrive/vendor/pipedrive/pipedrive/tests/Controllers/ProductsControllerTest.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Pipedrive\\Controllers\\BaseController' not found in wp-content/plugins/contact-manager-for-pipedrive/vendor/pipedrive/pipedrive/src/Controllers/DealsController.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Pipedrive\\Controllers\\BaseController' not found in wp-content/plugins/contact-manager-for-pipedrive/vendor/pipedrive/pipedrive/src/Controllers/DealFieldsController.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/contact-manager-for-pipedrive/vendor/pipedrive/pipedrive/tests/Controllers/GoalsControllerTest.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Pipedrive\\Controllers\\BaseController' not found in wp-content/plugins/contact-manager-for-pipedrive/vendor/pipedrive/pipedrive/src/Controllers/RolesController.php:27
    • > PHP Warning
      require(wp-content/plugins/contact-manager-for-pipedrive/vendor/pipedrive/pipedrive/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/contact-manager-for-pipedrive/vendor/pipedrive/pipedrive/tests/bootstrap.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/contact-manager-for-pipedrive/vendor/pipedrive/pipedrive/tests/Controllers/ActivityFieldsControllerTest.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Pipedrive\\Http\\HttpCallBack' not found in wp-content/plugins/contact-manager-for-pipedrive/vendor/pipedrive/pipedrive/tests/HttpCallBackCatcher.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Pipedrive\\Controllers\\BaseController' not found in wp-content/plugins/contact-manager-for-pipedrive/vendor/pipedrive/pipedrive/src/Controllers/CurrenciesController.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Pipedrive\\APIException' not found in wp-content/plugins/contact-manager-for-pipedrive/vendor/pipedrive/pipedrive/src/Exceptions/FailResponseException.php:16

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: crm, wpforms, pipedrive

contact-manager-for-pipedrive/contact-manager-for-pipedrive.php Passed 13 tests

The main file in "Easily integrate Pipedrive CRM with your WordPress site" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
64 characters long description:
A plugin for automatically creating Pipedrive deals from WPForms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected26,615 lines of code in 355 files:
LanguageFilesBlank linesComment linesLines of code
PHP3386,54718,62520,544
Markdown23,66805,058
XML5346473
JSON700274
reStructuredText1155136217
YAML28049

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity4.69
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces19
Interfaces1
Traits0
Classes324
▷ Abstract classes00.00%
▷ Concrete classes324100.00%
▷ Final classes00.00%
Methods1,103
▷ Static methods16715.14%
▷ Public methods1,01091.57%
▷ Protected methods484.35%
▷ Private methods454.08%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
Constants240
▷ Global constants31.25%
▷ Class constants23798.75%
▷ Public constants237100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/pipedrive-square.png10.22KB3.81KB▼ 62.73%