77% b2app-no-code-mobile-app-builder

Code Review | B2App - Android & iOS native apps builder without using code

WordPress plugin B2App - Android & iOS native apps builder without using code scored77%from 54 tests.

About plugin

  • Plugin page: b2app-no-code-mob...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Mar 22, 2022
  • Latest release: Mar 22, 2022
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: accessible892 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /375 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by B2App - Android & iOS native apps builder without using code
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.63 ▲0.23
Dashboard /wp-admin3.31 ▲0.0150.04 ▼1.83
Posts /wp-admin/edit.php3.36 ▲0.0147.24 ▼1.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.26 ▼10.82
Media Library /wp-admin/upload.php3.23 ▲0.0033.27 ▼3.77

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

B2App - Android & iOS native apps builder without using code: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.37 ▼0.934.42 ▲2.6144.27 ▲3.58
Dashboard /wp-admin2,210 ▲224.86 ▼0.95112.70 ▼4.2644.65 ▲1.22
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0334.56 ▼2.8435.78 ▼0.67
Add New Post /wp-admin/post-new.php1,537 ▲1723.19 ▼0.18616.17 ▼66.1851.45 ▼4.21
Media Library /wp-admin/upload.php1,386 ▼54.20 ▼0.0195.22 ▼12.0444.07 ▼2.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/b2app-no-code-mobile-app-builder/admin/partials/b2app-app-builder-admin-display.php
    • > /wp-content/plugins/b2app-no-code-mobile-app-builder/public/partials/b2app-app-builder-public-display.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Admin_Settings' not found in wp-content/plugins/b2app-no-code-mobile-app-builder/admin/partials/b2app-app-builder-settings-app-created.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_remote_post() in wp-content/plugins/b2app-no-code-mobile-app-builder/admin/partials/b2app-app-builder-settings-app-info.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/b2app-no-code-mobile-app-builder/admin/partials/b2app-app-builder-settings-main.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
Please take inspiration from this readme.txt

b2app-no-code-mobile-app-builder/b2app-app-builder.php 77% from 13 tests

Analyzing the main PHP file in "B2App - Android & iOS native apps builder without using code" version 1.0.0
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("b2app-no-code-mobile-app-builder.php" instead of "b2app-app-builder.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 195 characters long)

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
Good job! No executable or dangerous file extensions detected2,003 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
SVG1001,204
PHP16232611632
CSS2218156
JavaScript255411

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.12
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 12.01MB with 3.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/partials/images/apptypes/jewelry.png1,604.72KB1,315.21KB▼ 18.04%
admin/partials/images/apptypes/shoes.png1,752.72KB1,210.17KB▼ 30.96%
admin/partials/images/apptypes/sport_wear.png1,667.67KB1,259.26KB▼ 24.49%
admin/partials/images/apptypes/empty.png91.58KB51.45KB▼ 43.82%
admin/partials/images/apptypes/beauty_salon.png2,021.11KB1,454.11KB▼ 28.05%