10% msstiger

Code Review | WP VTiger Synchronization

WordPress plugin WP VTiger Synchronization scored10%from 54 tests.

About plugin

  • Plugin page: msstiger
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 6.3.1
  • First release: Apr 22, 2015
  • Latest release: Oct 22, 2015
  • Number of updates: 52
  • Update frequency: every 3.5 days
  • Top authors: mastersoftwaresolutions (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /4,194 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_shortcode was called incorrectly. Invalid shortcode name: Vts-tiger-New-form name=. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)

Server metrics [RAM: ▼1.67MB] [CPU: ▼54.23ms] Passed 4 tests

Analyzing server-side resources used by WP VTiger Synchronization
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.33 ▼1.135.34 ▼32.74
Dashboard /wp-admin2.35 ▼1.006.88 ▼51.77
Posts /wp-admin/edit.php2.35 ▼1.017.78 ▼38.67
Add New Post /wp-admin/post-new.php2.35 ▼3.547.83 ▼93.74
Media Library /wp-admin/upload.php2.35 ▼0.887.51 ▼26.65

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 67 new files
Database: 2 new tables, 6 new options
New tables
create_shortcode
wp_captcha
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP VTiger Synchronization
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲4814.47 ▼0.281.57 ▼0.2737.19 ▼3.34
Dashboard /wp-admin2,228 ▲404.89 ▼0.0698.34 ▼5.5881.10 ▲41.35
Posts /wp-admin/edit.php2,111 ▲222.03 ▲0.0337.87 ▼0.0633.71 ▼3.70
Add New Post /wp-admin/post-new.php1,550 ▲2723.31 ▲0.11707.83 ▲40.5265.59 ▲13.06
Media Library /wp-admin/upload.php1,401 ▲134.18 ▼0.07127.14 ▲22.6683.50 ▲34.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function add_shortcode was called incorrectly. Invalid shortcode name: Vts-tiger-New-form name=. Do not use spaces or reserved characters: & / < > [ ] = Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
  • Zombie tables were found after uninstall: 2 tables
    • create_shortcode
    • wp_captcha
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/msstiger/test-vtiger-access.php
    • > /wp-content/plugins/msstiger/captcha.php
  • 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined index: Vts_host_username in wp-content/plugins/msstiger/test-vtiger-access.php on line 8
    • > PHP Warning
      require_once(vtwsclib/third-party/Zend/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/msstiger/vtwsclib/third-party/Zend/Json/Exception.php on line 25
    • > PHP Notice
      Trying to access array offset on value of type bool in wp-content/plugins/msstiger/vtwsclib/Vtiger/WSClient.php on line 86
    • > PHP Warning
      chdir(): No such file or directory (errno 2) in wp-content/plugins/msstiger/test-vtiger-access.php on line 5
    • > PHP Fatal error
      require_once(): Failed opening required 'vtwsclib/third-party/Zend/Json/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/msstiger/vtwsclib/third-party/Zend/Json/Encoder.php on line 25
    • > PHP Fatal error
      require_once(): Failed opening required 'vtwsclib/third-party/curl_http_client.php' (include_path='.:/usr/share/php') in wp-content/plugins/msstiger/vtwsclib/Vtiger/Net/HTTP_Client.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'vtwsclib/third-party/Zend/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/msstiger/vtwsclib/third-party/Zend/Json/Exception.php on line 25
    • > PHP Notice
      Undefined index: VTS_host_access_key in wp-content/plugins/msstiger/test-vtiger-access.php on line 9
    • > PHP Fatal error
      require_once(): Failed opening required 'vtwsclib/third-party/Zend/Json.php' (include_path='.:/usr/share/php') in wp-content/plugins/msstiger/vtwsclib/third-party/Zend/Json/Decoder.php on line 24
    • > PHP Warning
      require_once(vtwsclib/third-party/Zend/Json/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/msstiger/vtwsclib/third-party/Zend/Json/Encoder.php on line 25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
The official readme.txt is a good inspiration

msstiger/vtlc.php 85% from 13 tests

The main PHP file in "WP VTiger Synchronization" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("msstiger.php" instead of "vtlc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,992 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP187208553,298
JavaScript211519725
CSS115517707
Python12919262

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity41.45
▷ Minimum class complexity1.00
▷ Maximum class complexity196.00
Average method complexity6.63
▷ Minimum method complexity1.00
▷ Maximum method complexity83.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods79
▷ Static methods1518.99%
▷ Public methods6379.75%
▷ Protected methods1316.46%
▷ Private methods33.80%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.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
36 PNG files occupy 3.75MB with 2.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png12.48KB5.04KB▼ 59.57%
images/downarrow.png0.29KB0.19KB▼ 35.25%
images/icon.png0.96KB0.70KB▼ 26.43%
images/listshortcode.png18.99KB6.87KB▼ 63.83%
assets/screenshot-9.png166.15KB28.47KB▼ 82.86%