83% wp-tiger

Code Review | Vtiger CRM Integration for WordPress

WordPress plugin Vtiger CRM Integration for WordPress scored83%from 54 tests.

About plugin

  • Plugin page: wp-tiger
  • Plugin version: 4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Aug 31, 2012
  • Latest release: Oct 18, 2023
  • Number of updates: 82
  • Update frequency: every 49.8 days
  • Top authors: smackcoders (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

400+ active /23,271 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.68ms] Passed 4 tests

An overview of server-side resources used by Vtiger CRM Integration for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.34 ▼12.27
Dashboard /wp-admin3.35 ▼0.0045.58 ▼11.20
Posts /wp-admin/edit.php3.46 ▲0.1047.13 ▲2.71
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.67 ▼13.97
Media Library /wp-admin/upload.php3.27 ▲0.0436.16 ▲3.55

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
WpLeadBuilderProActivatedPlugin
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Vtiger CRM Integration for WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.46 ▲0.111.60 ▲0.0738.16 ▼0.50
Dashboard /wp-admin2,192 ▲125.53 ▼0.1284.39 ▼2.6941.29 ▲1.18
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0533.86 ▼1.5934.38 ▼0.30
Add New Post /wp-admin/post-new.php1,535 ▲918.51 ▼5.15603.94 ▼70.1772.46 ▲10.18
Media Library /wp-admin/upload.php1,400 ▼34.20 ▲0.0397.50 ▲2.9140.96 ▼6.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • WpLeadBuilderProActivatedPlugin
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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 take a closer look at the following
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      require_once(vtwsclib/third-party/Zend/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/wp-tiger/lib/vtwsclib/third-party/Zend/Json/Exception.php on line 25
    • > PHP Fatal error
      Uncaught Error: Class 'Curl_HTTP_Client' not found in wp-content/plugins/wp-tiger/lib/vtwsclib/Vtiger/Net/HTTP_Client.php:7
    • > PHP Fatal error
      require_once(): Failed opening required 'vtwsclib/third-party/Zend/Json/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-tiger/lib/vtwsclib/third-party/Zend/Json/Encoder.php on line 25
    • > PHP Warning
      include_once(SM_LB_VTIGER_DIRlib/vtwsclib/third-party/curl_http_client.php): failed to open stream: No such file or directory in wp-content/plugins/wp-tiger/lib/vtwsclib/Vtiger/Net/HTTP_Client.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'SM_LB_VTIGER_DIRlib/vtwsclib/Vtiger/WSVersion.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-tiger/lib/vtwsclib/Vtiger/WSClient.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'vtwsclib/third-party/Zend/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-tiger/lib/vtwsclib/third-party/Zend/Json/Exception.php on line 25
    • > PHP Warning
      include_once(SM_LB_VTIGER_DIRlib/vtwsclib/Vtiger/Net/HTTP_Client.php): failed to open stream: No such file or directory in wp-content/plugins/wp-tiger/lib/vtwsclib/Vtiger/WSClient.php on line 6
    • > PHP Warning
      Use of undefined constant SM_LB_VTIGER_DIR - assumed 'SM_LB_VTIGER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-tiger/lib/vtwsclib/Vtiger/Net/HTTP_Client.php on line 4
    • > PHP Warning
      Use of undefined constant SM_LB_VTIGER_DIR - assumed 'SM_LB_VTIGER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-tiger/lib/vtwsclib/Vtiger/Net/HTTP_Client.php on line 3
    • > PHP Warning
      include_once(SM_LB_VTIGER_DIRlib/vtwsclib/third-party/Zend/Json.php): failed to open stream: No such file or directory in wp-content/plugins/wp-tiger/lib/vtwsclib/Vtiger/Net/HTTP_Client.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (The screenshot-1.png shows the VtigerCRM settings configuration)
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
The official readme.txt might help

wp-tiger/index.php 92% from 13 tests

The main PHP script in "Vtiger CRM Integration for WordPress" version 4.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-tiger.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,305 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP122876111,305

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods99
▷ Static methods1010.10%
▷ Public methods8888.89%
▷ Protected methods77.07%
▷ Private methods44.04%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants1184.62%
▷ Class constants215.38%
▷ Public constants2100.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
2 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png107.65KB34.27KB▼ 68.17%
assets/wordpress-to-vtiger-crm-banner.png78.95KB25.44KB▼ 67.78%