10% ainsys-integrations-framework-connector

Code Review | AINSYS Integrations framework connector

WordPress plugin AINSYS Integrations framework connector scored10%from 54 tests.

About plugin

  • Plugin page: ainsys-integratio...
  • Plugin version: 4.3.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1
  • WordPress version: 6.3.1
  • First release: Jan 16, 2023
  • Latest release: Jan 18, 2023
  • Number of updates: 6
  • Update frequency: every 1.7 days
  • Top authors: ainsys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /422 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Error in wp-content/plugins/ainsys-integrations-framework-connector/plugin.php+47
    Uncaught Error: Class 'Ainsys\Connector\Master\Plugin' not found in wp-content/plugins/ainsys-integrations-framework-connector/plugin.php:47
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

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

Analyzing server-side resources used by AINSYS Integrations framework connector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.30 ▼5.05
Dashboard /wp-admin3.31 ▲0.0055.29 ▲7.51
Posts /wp-admin/edit.php3.36 ▲0.0047.47 ▼6.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.85 ▼14.97
Media Library /wp-admin/upload.php3.23 ▲0.0038.08 ▲2.80

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for AINSYS Integrations framework connector
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.071.87 ▲0.1143.89 ▲3.13
Dashboard /wp-admin2,195 ▲185.59 ▼0.0886.89 ▼5.9738.57 ▼2.94
Posts /wp-admin/edit.php2,097 ▼61.97 ▼0.0735.52 ▼5.2036.57 ▼4.96
Add New Post /wp-admin/post-new.php1,531 ▲323.21 ▲0.00628.50 ▼18.6460.49 ▲5.93
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0097.25 ▼9.4542.45 ▼3.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 47× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ainsys-integrations-framework-connector/includes/settings/templates/tabs/entities.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ainsys-integrations-framework-connector/includes/settings/templates/tabs/entities.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'Ainsys\\Connector\\Master\\Webhooks\\Handle' not found in wp-content/plugins/ainsys-integrations-framework-connector/includes/webhooks/class-handle-page.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Ainsys\\Connector\\Master\\WP\\Process' not found in wp-content/plugins/ainsys-integrations-framework-connector/includes/wp/class-process-pages.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Ainsys\\Connector\\Master\\WP\\Process' not found in wp-content/plugins/ainsys-integrations-framework-connector/includes/wp/class-process-users.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Ainsys\\Connector\\Master\\Hooked' not found in wp-content/plugins/ainsys-integrations-framework-connector/includes/settings/class-settings.php:15
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ainsys-integrations-framework-connector/includes/settings/templates/tabs/logs.php on line 14
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/ainsys-integrations-framework-connector/includes/settings/templates/tabs/tests.php on line 17
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ainsys-integrations-framework-connector/includes/settings/templates/tabs/general.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ainsys-integrations-framework-connector/includes/settings/templates/tabs/logs.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: data exchange, automation, service integration

ainsys-integrations-framework-connector/plugin.php 92% from 13 tests

The main PHP script in "AINSYS Integrations framework connector" version 4.3.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ainsys-integrations-framework-connector.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin6,130 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP411,4471,4374,610
CSS21928873
JavaScript28514395
PO File17280175
SVG40077

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity12.32
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces6
Interfaces2
Traits3
Classes29
▷ Abstract classes13.45%
▷ Concrete classes2896.55%
▷ Final classes00.00%
Methods231
▷ Static methods9541.13%
▷ Public methods18077.92%
▷ Protected methods3916.88%
▷ Private methods125.19%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin