84% vc-templates-import-export

Code Review | Export & Import WPBakery Page Builder

WordPress plugin Export & Import WPBakery Page Builder scored84%from 54 tests.

About plugin

  • Plugin page: vc-templates-impo...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 25, 2017
  • Latest release: Nov 7, 2023
  • Number of updates: 69
  • Update frequency: every 32.4 days
  • Top authors: tomiup (55.07%)Khoapq (46.38%)

Code review

54 tests

User reviews

11 reviews

Install metrics

10,000+ active /86,745 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Export & Import WPBakery Page Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.41 ▼1.63
Dashboard /wp-admin3.31 ▲0.0146.27 ▼3.07
Posts /wp-admin/edit.php3.36 ▲0.0152.03 ▼0.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.90 ▼9.08
Media Library /wp-admin/upload.php3.24 ▲0.0134.03 ▲0.09
Templates Import & Export /wp-admin/admin.php?page=vc-templates-import-export3.2033.25

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Export & Import WPBakery Page Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4214.31 ▼0.031.58 ▼0.1338.22 ▼6.29
Dashboard /wp-admin2,206 ▲295.49 ▼0.1088.92 ▼10.2637.88 ▼3.20
Posts /wp-admin/edit.php2,114 ▲141.97 ▲0.0340.23 ▼0.6938.44 ▲1.68
Add New Post /wp-admin/post-new.php1,540 ▲1423.29 ▲0.29661.71 ▼18.3662.55 ▲7.63
Media Library /wp-admin/upload.php1,414 ▲174.17 ▼0.0295.86 ▼3.3542.86 ▲1.36
Templates Import & Export /wp-admin/admin.php?page=vc-templates-import-export8901.9925.1530.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vc-templates-import-export/vc-templates-import-export.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: wpbakery page builder, wpbakery page builder addon, wpbakery, wpb

vc-templates-import-export/vc-templates-import-export.php 85% from 13 tests

The entry point to "Export & Import WPBakery Page Builder" version 1.0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.1.1" instead of "4.4")
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected301 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14843227
CSS114074

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin