67% mantiq

Code Review | Mantiq - Visual Backend & Workflow Builder For WordPress

WordPress plugin Mantiq - Visual Backend & Workflow Builder For WordPress scored67%from 54 tests.

About plugin

  • Plugin page: mantiq
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 26, 2021
  • Latest release: Oct 22, 2022
  • Number of updates: 13
  • Update frequency: every 28.2 days
  • Top authors: mantiq (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,173 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲1.11MB] [CPU: ▲1.79ms] Passed 4 tests

This is a short check of server-side resources used by Mantiq - Visual Backend & Workflow Builder For WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.59 ▲1.1349.70 ▲9.25
Dashboard /wp-admin4.43 ▲1.1357.04 ▲9.35
Posts /wp-admin/edit.php4.48 ▲1.1253.21 ▼2.51
Add New Post /wp-admin/post-new.php7.05 ▲1.1692.85 ▼8.93
Media Library /wp-admin/upload.php4.29 ▲1.0650.59 ▲14.40

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 486 new files
Database: 2 new tables, 7 new options
New tables
wp_mantiq_log
wp_mantiq_workflows
New WordPress options
mantiq_database_version
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Mantiq - Visual Backend & Workflow Builder For WordPress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.73 ▲0.512.15 ▲0.0643.18 ▼2.25
Dashboard /wp-admin2,227 ▲394.84 ▼1.0195.42 ▼15.3240.74 ▼3.58
Posts /wp-admin/edit.php2,107 ▲182.01 ▲0.0338.20 ▼2.7635.74 ▼4.01
Add New Post /wp-admin/post-new.php1,547 ▲1423.18 ▲0.12717.16 ▲77.4859.40 ▲7.53
Media Library /wp-admin/upload.php1,407 ▲164.24 ▲0.01103.13 ▼0.3346.62 ▲3.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_mantiq_log
    • wp_mantiq_workflows
  • Zombie WordPress options were found after uninstall: 7 options
    • mantiq_database_version
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 13× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/mantiq/editor/views/actions/options/get-option.php
    • > /wp-content/plugins/mantiq/editor/views/actions/options/create-option.php
    • > /wp-content/plugins/mantiq/editor/views/actions/options/update-option.php
    • > /wp-content/plugins/mantiq/editor/views/partials/app.php
    • > /wp-content/plugins/mantiq/editor/views/index.php
    • > /wp-content/plugins/mantiq/editor/views/partials/workflow-editor-canvas.php
    • > /wp-content/plugins/mantiq/editor/views/partials/notifications-center.php
    • > /wp-content/plugins/mantiq/editor/views/partials/outputs-viewer.php
    • > /wp-content/plugins/mantiq/editor/views/partials/condition-branch-node.php
    • > /wp-content/plugins/mantiq/editor/views/partials/errors-viewer.php
  • 219× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'MantiqVendors\\Symfony\\Component\\ExpressionLanguage\ode\ode' not found in wp-content/plugins/mantiq/vendor/symfony/expression-language/Node/NameNode.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'MantiqVendors\\Symfony\\Component\\Cache\\Adapter\\AbstractAdapter' not found in wp-content/plugins/mantiq/vendor/symfony/cache/Adapter/DoctrineAdapter.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'MantiqVendors\\Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface' not found in wp-content/plugins/mantiq/vendor/symfony/cache/Marshaller/DefaultMarshaller.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'MantiqVendors\\Symfony\\Component\\ExpressionLanguage\ode\ode' not found in wp-content/plugins/mantiq/vendor/symfony/expression-language/Node/BinaryNode.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mantiq/editor/views/actions/metadata/get-metadata.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Mantiq\\Support\\RestRoute' not found in wp-content/plugins/mantiq/src/Http/Routes/CreateWorkflowRoute.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/mantiq/editor/views/partials/variable-finder.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Mantiq\\Models\\TriggerEvent' not found in wp-content/plugins/mantiq/src/Triggers/Events/Developers/PageHead.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Mantiq\\Models\\Model' not found in wp-content/plugins/mantiq/src/Models/Workflow.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mantiq/editor/views/actions/comments/get-comment.php:3

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 83% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: workflow, automation, process, visual backend, no-code

mantiq/plugin.php 62% from 13 tests

"Mantiq - Visual Backend & Workflow Builder For WordPress" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0.0" instead of "5.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("mantiq.php" instead of "plugin.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

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
There were no executable files found in this plugin35,278 lines of code in 372 files:
LanguageFilesBlank linesComment linesLines of code
PHP3394,0795,17721,220
CSS1143411,000
JavaScript29111,2671,541
JSON12001,196
Markdown161020304
HTML10116
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity9.61
▷ Minimum class complexity1.00
▷ Maximum class complexity177.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces60
Interfaces24
Traits12
Classes239
▷ Abstract classes104.18%
▷ Concrete classes22995.82%
▷ Final classes114.80%
Methods1,357
▷ Static methods20615.18%
▷ Public methods1,18086.96%
▷ Protected methods1158.47%
▷ Private methods624.57%
Functions113
▷ Named functions1513.27%
▷ Anonymous functions9886.73%
Constants85
▷ Global constants11.18%
▷ Class constants8498.82%
▷ Public constants6678.57%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin