82% ibtana-visual-editor

Code Review | Ibtana - WordPress Website Builder

WordPress plugin Ibtana - WordPress Website Builder scored82%from 54 tests.

About plugin

  • Plugin page: ibtana-visual-editor
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4.1
  • WordPress version: 6.3.1
  • First release: May 6, 2019
  • Latest release: Nov 24, 2023
  • Number of updates: 161
  • Update frequency: every 10.4 days
  • Top authors: vowelweb (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

20,000+ active /928,304 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲3.74MB] [CPU: ▲31.12ms] 75% from 4 tests

An overview of server-side resources used by Ibtana - WordPress Website Builder
Please have a look at the following items
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,061.53ms on /wp-admin/admin.php?page=ibtana-visual-editor-license)
PageMemory (MB)CPU Time (ms)
Home /7.19 ▲3.7384.74 ▲41.69
Dashboard /wp-admin7.11 ▲3.7682.47 ▲16.07
Posts /wp-admin/edit.php7.14 ▲3.7883.85 ▲28.06
Add New Post /wp-admin/post-new.php9.94 ▲4.05133.87 ▲38.65
Media Library /wp-admin/upload.php6.94 ▲3.7180.91 ▲46.35
Settings /wp-admin/admin.php?page=ibtana-visual-editor-general-settings6.9159.20
License /wp-admin/admin.php?page=ibtana-visual-editor-license7.001,061.53
Templates /wp-admin/admin.php?page=ibtana-visual-editor-templates6.9162.00
Settings /wp-admin/admin.php?page=ibtana-visual-editor&page=wnm_fund_set6.9168.20
Saved Templates /wp-admin/admin.php?page=ibtana-visual-editor-saved-templates6.9761.81
Add New /wp-admin/post-new.php?post_type=ive_custom_fields7.0173.15
Getting Started /wp-admin/admin.php?page=ibtana-visual-editor6.9461.93
IVE Custom Fields /wp-admin/edit.php?post_type=ive_custom_fields6.9962.44
Addons /wp-admin/admin.php?page=ibtana-visual-editor-addons6.9257.69
Woocommerce Templates /wp-admin/admin.php?page=ibtana-visual-editor-woocommerce-templates6.9158.32

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 110 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
ive_default_settings
theysaidso_admin_options
widget_recent-comments
ive_active_vw_theme_text_domain
can_compress_scripts
wp_calendar_block_has_published_posts

Browser metrics Passed 4 tests

A check of browser resources used by Ibtana - WordPress Website Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,218 ▲47113.48 ▼0.868.39 ▲6.7547.47 ▲5.07
Dashboard /wp-admin2,311 ▲1335.86 ▲0.14103.78 ▼9.8570.79 ▲21.57
Posts /wp-admin/edit.php2,732 ▲6292.34 ▲0.3345.52 ▲7.0140.15 ▲6.56
Add New Post /wp-admin/post-new.php2,293 ▲75731.13 ▲7.98795.56 ▲210.0346.44 ▼7.81
Media Library /wp-admin/upload.php1,502 ▲1024.42 ▲0.12124.49 ▲29.5584.46 ▲43.45
Settings /wp-admin/admin.php?page=ibtana-visual-editor-general-settings1,2922.7470.1295.16
License /wp-admin/admin.php?page=ibtana-visual-editor-license1,0262.5946.4146.88
Templates /wp-admin/admin.php?page=ibtana-visual-editor-templates2,2112.7359.1275.21
Settings /wp-admin/admin.php?page=ibtana-visual-editor&page=wnm_fund_set9651.9338.5036.01
Saved Templates /wp-admin/admin.php?page=ibtana-visual-editor-saved-templates1,1222.4041.2144.17
Add New /wp-admin/post-new.php?post_type=ive_custom_fields1,8212.9472.5471.36
Getting Started /wp-admin/admin.php?page=ibtana-visual-editor1,5362.1152.0371.32
IVE Custom Fields /wp-admin/edit.php?post_type=ive_custom_fields1,2612.3344.3756.08
Addons /wp-admin/admin.php?page=ibtana-visual-editor-addons1,1312.4548.5643.81
Woocommerce Templates /wp-admin/admin.php?page=ibtana-visual-editor-woocommerce-templates2,1862.8771.0672.65

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 did not uninstall successfully, leaving 9 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • ive_active_vw_theme_text_domain
    • can_compress_scripts
    • ive_default_settings
    • wp_calendar_block_has_published_posts
    • db_upgraded

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ibtana-visual-editor/admin/settings.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ibtana-visual-editor/ive-countdown.php:321
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ibtana-visual-editor/dist/post/pagination-css.php on line 3
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/ibtana-visual-editor/classes/ive-saved-templates.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ibtana-visual-editor/ive-custom-fields/custom-post-select.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ibtana-visual-editor/ive-custom-fields/fields/is-text.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/ibtana-visual-editor/admin-menu.php:16
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/ibtana-visual-editor/dist/post/pagination-css.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ibtana-visual-editor/activation/activation.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ibtana-visual-editor/ive-custom-fields/custom-fields.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
Please fix the following attributes: You can look at the official readme.txt

ibtana-visual-editor/plugin.php 77% from 13 tests

"Ibtana - WordPress Website Builder" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ibtana-visual-editor.php" instead of "plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 563 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected43,359 lines of code in 89 files:
LanguageFilesBlank linesComment linesLines of code
PHP432,4181,52918,402
CSS142,77425915,496
JavaScript241,9821,7309,328
JSON100116
SVG70417

PHP code 0% from 2 tests

An overview of cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,438)
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 209)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity84.58
▷ Minimum class complexity3.00
▷ Maximum class complexity1,438.00
Average method complexity11.75
▷ Minimum method complexity1.00
▷ Maximum method complexity209.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes31
▷ Abstract classes00.00%
▷ Concrete classes31100.00%
▷ Final classes39.68%
Methods243
▷ Static methods6727.57%
▷ Public methods24299.59%
▷ Protected methods00.00%
▷ Private methods10.41%
Functions30
▷ Named functions2686.67%
▷ Anonymous functions413.33%
Constants18
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.43MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
whizzie/assets/images/Customize-Icon.png28.40KB16.13KB▼ 43.19%
whizzie/assets/Gutenberg-Icon.png50.22KB19.69KB▼ 60.79%
dist/images/placeholder.png321.84KB187.03KB▼ 41.89%
whizzie/assets/images/Elementor-Icon.png9.34KB4.22KB▼ 54.84%
whizzie/assets/Customize-Icon.png28.40KB16.13KB▼ 43.19%