78% app-template-blocks-for-wpbakery-page-builder

Code Review | App Landing Template Blocks for WPBakery (Visual Composer) Page Builder

WordPress plugin App Landing Template Blocks for WPBakery (Visual Composer) Page Builder scored 78% from 54 tests.

About plugin

  • Plugin page: app-template-bloc...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.8
  • WordPress version: 6.3.1
  • First release: May 21, 2019
  • Latest release: Jul 26, 2021
  • Number of updates: 15
  • Update frequency: every 53.1 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 4,495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by App Landing Template Blocks for WPBakery (Visual Composer) Page Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.78 ▼5.47
Dashboard /wp-admin3.31 ▲0.0046.15 ▼2.53
Posts /wp-admin/edit.php3.36 ▲0.0050.58 ▲4.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.76 ▼4.25
Media Library /wp-admin/upload.php3.23 ▲0.0036.89 ▲4.14

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by App Landing Template Blocks for WPBakery (Visual Composer) Page Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.291.52 ▼0.4942.24 ▼7.15
Dashboard /wp-admin2,206 ▲184.87 ▼1.01109.88 ▲6.6439.16 ▼6.08
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0437.27 ▲1.9233.75 ▼3.06
Add New Post /wp-admin/post-new.php1,539 ▲623.04 ▲0.02688.74 ▲42.2250.82 ▼4.42
Media Library /wp-admin/upload.php1,391 ▲34.28 ▲0.1199.77 ▼7.1544.08 ▼0.30

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/app-template-blocks-for-wpbakery-page-builder/app-template-wpbakery.php
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/app-template-blocks-for-wpbakery-page-builder/modules/video-play.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/app-template-blocks-for-wpbakery-page-builder/inc/templates/app.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/app-template-blocks-for-wpbakery-page-builder/modules/team-member.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/app-template-blocks-for-wpbakery-page-builder/modules/features.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/app-template-blocks-for-wpbakery-page-builder/modules/pricing-table.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/app-template-blocks-for-wpbakery-page-builder/modules/info-box.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/app-template-blocks-for-wpbakery-page-builder/modules/hero-section.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/app-template-blocks-for-wpbakery-page-builder/modules/heading.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/app-template-blocks-for-wpbakery-page-builder/modules/app-download-btn.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/app-template-blocks-for-wpbakery-page-builder/modules/counter.php:2

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

app-template-blocks-for-wpbakery-page-builder/app-template-wpbakery.php 85% from 13 tests

This is the main PHP file of "App Landing Template Blocks for WPBakery (Visual Composer) Page Builder" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • 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 ("app-template-blocks-for-wpbakery-page-builder.php" instead of "app-template-wpbakery.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin24,004 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
CSS102,1961719,837
SVG4139,503
PHP15253773,178
JavaScript73871941,477
HTML1009

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.27MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/14.png3.86KB2.49KB▼ 35.51%
assets/img/02.png47.29KB22.50KB▼ 52.43%
admin/img/hover_effects_icon.png2.06KB1.21KB▼ 41.43%
admin/img/atvc-icon.png2.34KB2.17KB▼ 7.31%
assets/img/header-bg.png89.94KB24.97KB▼ 72.24%