78% integration-cds

Code Review | Dataverse Integration

WordPress plugin Dataverse Integration scored78%from 54 tests.

About plugin

  • Plugin page: integration-cds
  • Plugin version: 2.55
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2.2
  • WordPress version: 6.3.1
  • First release: May 16, 2019
  • Latest release: Dec 1, 2023
  • Number of updates: 106
  • Update frequency: every 15.7 days
  • Top authors: alexacrm (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /8,284 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.73ms] Passed 4 tests

Server-side resources used by Dataverse Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.92 ▼7.62
Dashboard /wp-admin3.31 ▼0.0447.47 ▼14.60
Posts /wp-admin/edit.php3.36 ▲0.0048.26 ▼5.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.83 ▼19.56
Media Library /wp-admin/upload.php3.24 ▲0.0034.81 ▼0.82

Server storage [IO: ▲31.81MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • Total filesystem usage should be limited to 25MB (currently using 31.81MB)
Filesystem: 2,343 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
icds_version
widget_recent-posts
icds_cachePools
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Dataverse Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲6914.54 ▲0.141.60 ▼0.2037.67 ▼9.06
Dashboard /wp-admin2,195 ▲215.62 ▲0.00108.70 ▲13.3445.73 ▲1.08
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0539.89 ▼0.6435.83 ▲1.61
Add New Post /wp-admin/post-new.php1,526 ▼923.33 ▲0.16685.42 ▲47.4653.43 ▲3.34
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0596.11 ▼4.0342.48 ▲0.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • icds_version
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • icds_cachePools

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 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/integration-cds/vendor/symfony/intl/Resources/bin/update-data.php
  • 570× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AlexaCRM\\Xrm\\Metadata\\ConstantsBase' not found in wp-content/plugins/integration-cds/vendor/alexacrm/dynamics-webapi-toolkit/src/Xrm/Metadata/StringFormatName.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Cache\\Adapter\\AbstractAdapter' not found in wp-content/plugins/integration-cds/vendor/symfony/cache/Adapter/FilesystemAdapter.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/integration-cds/vendor/twig/twig/src/Node/AutoEscapeNode.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'AlexaCRM\extgen\\API\\AdministrativeEndpoint' not found in wp-content/plugins/integration-cds/src/API/Endpoints/DeleteCache.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'AlexaCRM\\Enum\\ChoiceEnum' not found in wp-content/plugins/integration-cds/vendor/alexacrm/dynamics-webapi-toolkit/src/Xrm/Metadata/AssociatedMenuBehavior.php:32
    • > PHP Fatal error
      Trait 'Symfony\\Component\\Cache\\Traits\\ProxyTrait' not found in wp-content/plugins/integration-cds/vendor/symfony/cache/Traits/PhpArrayTrait.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Intl\\Data\\Generator\\AbstractDataGenerator' not found in wp-content/plugins/integration-cds/vendor/symfony/intl/Data/Generator/TimezoneDataGenerator.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/integration-cds/vendor/monolog/monolog/src/Monolog/Handler/RavenHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'AlexaCRM\\Xrm\\Metadata\\ConstantsBase' not found in wp-content/plugins/integration-cds/vendor/alexacrm/dynamics-webapi-toolkit/src/Xrm/Metadata/DateTimeBehavior.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/integration-cds/vendor/guzzlehttp/psr7/src/Uri.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: power platform, microsoft crm, dynamics crm, common data service, dynamics 365...

integration-cds/integration-cds.php Passed 13 tests

"Dataverse Integration" version 2.55's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
59 characters long description:
Integrate Microsoft Dataverse organizations with WordPress.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected416,457 lines of code in 2,191 files:
LanguageFilesBlank linesComment linesLines of code
JSON1,12400334,197
PHP95915,21539,99380,457
JavaScript952093911,623
XSD112068
SVG20132
XML17030
CSS61519
Markdown12019
Bourne Again Shell12011
HTML1001

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 309)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity9.58
▷ Minimum class complexity1.00
▷ Maximum class complexity355.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity309.00
Code structure
Namespaces127
Interfaces73
Traits25
Classes813
▷ Abstract classes617.50%
▷ Concrete classes75292.50%
▷ Final classes9312.37%
Methods4,326
▷ Static methods49411.42%
▷ Public methods3,45379.82%
▷ Protected methods4269.85%
▷ Private methods44710.33%
Functions498
▷ Named functions22645.38%
▷ Anonymous functions27254.62%
Constants901
▷ Global constants545.99%
▷ Class constants84794.01%
▷ Public constants81796.46%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
front/admin/dataverse-icon-20.png0.89KB1.20KB0.00%