68% stacks-mobile-app-builder

Code Review | Stacks Mobile App Builder - The most powerful Mobile Applications Drag and Drop builder

WordPress plugin Stacks Mobile App Builder - The most powerful Mobile Applications Drag and Drop builder scored 68% from 54 tests.

About plugin

  • Plugin page: stacks-mobile-app...
  • Plugin version: 5.2.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3
  • WordPress version: 6.3.1
  • First release: Jun 8, 2022
  • Latest release: Aug 27, 2023
  • Number of updates: 57
  • Update frequency: every 7.8 days
  • Top authors: stacks (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 3,564 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
Installer ran successfully

Server metrics [RAM: ▲0.85MB] [CPU: ▼0.11ms] Passed 4 tests

Server-side resources used by Stacks Mobile App Builder - The most powerful Mobile Applications Drag and Drop builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.16 ▲1.7074.20 ▲32.63
Dashboard /wp-admin4.86 ▲1.5657.60 ▲8.09
Posts /wp-admin/edit.php4.93 ▲1.5766.31 ▲19.84
Add New Post /wp-admin/post-new.php4.66 ▼1.2348.64 ▼40.74
Media Library /wp-admin/upload.php4.70 ▲1.4847.21 ▲12.37

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 172 new files
Database: 2 new tables, 7 new options
New tables
wp_stacks_builder_settings
wp_stacks_builder_views
New WordPress options
widget_recent-posts
stacks_builder_installed
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Stacks Mobile App Builder - The most powerful Mobile Applications Drag and Drop builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲20314.69 ▲0.031.69 ▼0.2039.63 ▲0.24
Dashboard /wp-admin2,351 ▲1606.45 ▲1.54132.90 ▼9.2885.14 ▲28.44
Posts /wp-admin/edit.php2,275 ▲1863.33 ▲1.3455.43 ▲15.2471.78 ▲38.65
Add New Post /wp-admin/post-new.php1,550 ▲3618.51 ▲0.91582.60 ▼82.3242.17 ▼13.46
Media Library /wp-admin/upload.php1,408 ▲204.10 ▼0.0783.69 ▼25.9876.16 ▲28.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie tables were found after uninstall: 2 tables
    • wp_stacks_builder_settings
    • wp_stacks_builder_views
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • stacks_builder_installed
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/stacks-mobile-app-builder/api/mobile/woocommerce/api/services/mailing-templates/footer.php
  • 99× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/stacks-mobile-app-builder/api/builder/connectivity.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Stacks_AbstractModel' not found in wp-content/plugins/stacks-mobile-app-builder/api/mobile/woocommerce/api/models/products-model.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Stacks_CartAbstractController' not found in wp-content/plugins/stacks-mobile-app-builder/api/mobile/woocommerce/api/v1/cart/cart-controller.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Stacks_PlatesFormatter' not found in wp-content/plugins/stacks-mobile-app-builder/api/mobile/woocommerce/api/formatting/addons-formatting.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Stacks_AbstractController' not found in wp-content/plugins/stacks-mobile-app-builder/api/mobile/woocommerce/api/v1/pages/home/home-page-controller.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Stacks_AbstractController' not found in wp-content/plugins/stacks-mobile-app-builder/api/mobile/woocommerce/api/v1/cart/supported-countries-controller.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Stacks_AbstractModel' not found in wp-content/plugins/stacks-mobile-app-builder/api/mobile/woocommerce/api/models/registration-model.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/stacks-mobile-app-builder/api/mobile/woocommerce/api/services/mailing-templates/header.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stacks-mobile-app-builder/api/mobile/woocommerce/class-stacks-api.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Stacks_AbstractOrderController' not found in wp-content/plugins/stacks-mobile-app-builder/api/mobile/woocommerce/api/v1/checkout/edit-order-controller.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

stacks-mobile-app-builder/index.php 92% from 13 tests

"Stacks Mobile App Builder - The most powerful Mobile Applications Drag and Drop builder" version 5.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("stacks-mobile-app-builder.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin14,254 lines of code in 167 files:
LanguageFilesBlank linesComment linesLines of code
PHP1613,4885,79813,366
CSS2260300
JavaScript15150251
Markdown1540235
JSON200102

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.30
Average class complexity9.68
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces3
Interfaces5
Traits3
Classes139
▷ Abstract classes128.63%
▷ Concrete classes12791.37%
▷ Final classes21.57%
Methods1,047
▷ Static methods17516.71%
▷ Public methods88584.53%
▷ Protected methods888.40%
▷ Private methods747.07%
Functions65
▷ Named functions2335.38%
▷ Anonymous functions4264.62%
Constants73
▷ Global constants45.48%
▷ Class constants6994.52%
▷ Public constants69100.00%

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
assets/images/favicon.png1.46KB1.45KB0.47%