83% classic-addons-wpbakery-page-builder-addons

Code Review | Classic Addons - WPBakery Page Builder

WordPress plugin Classic Addons - WPBakery Page Builder scored 83% from 54 tests.

About plugin

  • Plugin page: classic-addons-wp...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Dec 8, 2021
  • Latest release: Apr 23, 2023
  • Number of updates: 6
  • Update frequency: every 88.3 days
  • Top authors: webcodingplace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 3,012 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.38ms] Passed 4 tests

This is a short check of server-side resources used by Classic Addons - WPBakery Page Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.89 ▲3.39
Dashboard /wp-admin3.33 ▲0.0248.16 ▼0.01
Posts /wp-admin/edit.php3.38 ▲0.0243.28 ▼4.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.52 ▼11.42
Media Library /wp-admin/upload.php3.25 ▲0.0233.06 ▼1.91

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 139 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
db_upgraded
caw_settings
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
caw_settings_update_status

Browser metrics Passed 4 tests

An overview of browser requirements for Classic Addons - WPBakery Page Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲6513.56 ▼0.841.78 ▼0.3542.95 ▲1.24
Dashboard /wp-admin2,245 ▲574.84 ▼0.05109.13 ▲2.5943.16 ▲0.66
Posts /wp-admin/edit.php2,124 ▲352.06 ▲0.0536.04 ▼5.8634.14 ▼3.09
Add New Post /wp-admin/post-new.php1,561 ▲3323.47 ▲5.29683.19 ▲36.3755.13 ▲2.87
Media Library /wp-admin/upload.php1,415 ▲274.22 ▼0.15100.28 ▼1.9245.19 ▲1.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • caw_settings
    • caw_settings_update_status
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/classic-addons-wpbakery-page-builder-addons/addons/info-table/settings.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WPBakeryShortCode' not found in wp-content/plugins/classic-addons-wpbakery-page-builder-addons/addons/testimonial-slider-item/testimonial-slider-item.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/classic-addons-wpbakery-page-builder-addons/addons/interactive-banner/settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/classic-addons-wpbakery-page-builder-addons/templates/component/icon.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/classic-addons-wpbakery-page-builder-addons/addons/info-box/settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/classic-addons-wpbakery-page-builder-addons/classic-addons-wpbakery-page-builder.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: builder, elements, addons, wpbakery, bakery...

classic-addons-wpbakery-page-builder-addons/classic-addons-wpbakery-page-builder.php 77% from 13 tests

The main PHP script in "Classic Addons - WPBakery Page Builder" version 2.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("classic-addons-wpbakery-page-builder-addons.php" instead of "classic-addons-wpbakery-page-builder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected20,654 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
CSS2449134411,208
PHP686134414,777
JavaScript191,3111584,656
SVG11013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.95
▷ Minimum class complexity2.00
▷ Maximum class complexity31.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods43
▷ Static methods00.00%
▷ Public methods2660.47%
▷ Protected methods1739.53%
▷ Private methods00.00%
Functions20
▷ Named functions20100.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
20 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
addons/info-table/info-table.png3.40KB1.74KB▼ 48.79%
addons/testimonial-slider-item/testimonial-slider-item.png6.73KB2.90KB▼ 56.90%
addons/logo-carousel/logo-carousel.png3.75KB1.81KB▼ 51.73%
addons/flip-book/images/arrow_prev.png5.40KB3.38KB▼ 37.39%
addons/flip-box/flip-box.png4.00KB2.06KB▼ 48.33%