77% amazing-wpbakery-page-builder-addons

Code Review | Amazing WPBakery Page Builder Addons

WordPress plugin Amazing WPBakery Page Builder Addons scored77%from 54 tests.

About plugin

  • Plugin page: amazing-wpbakery-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Aug 20, 2020
  • Latest release: Aug 20, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: noor-e-alam (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,532 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 gracefully, with no errors

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

A check of server-side resources used by Amazing WPBakery Page Builder Addons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.20 ▲2.36
Dashboard /wp-admin3.31 ▼0.0445.47 ▼15.97
Posts /wp-admin/edit.php3.36 ▲0.0040.93 ▼4.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.25 ▼15.10
Media Library /wp-admin/upload.php3.23 ▲0.0032.11 ▼4.74

Server storage [IO: ▲3.55MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 230 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Amazing WPBakery Page Builder Addons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.34 ▼0.051.77 ▼0.1444.66 ▲4.20
Dashboard /wp-admin2,198 ▲175.58 ▼0.1380.97 ▼15.6837.91 ▼5.51
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0133.22 ▼3.2834.05 ▼0.64
Add New Post /wp-admin/post-new.php1,526 ▼023.28 ▲0.25646.05 ▼5.0448.63 ▼4.89
Media Library /wp-admin/upload.php1,397 ▲34.24 ▲0.1195.50 ▲0.8242.34 ▼2.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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 | 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/amazing-wpbakery-page-builder-addons/inc/helper.php
    • > /wp-content/plugins/amazing-wpbakery-page-builder-addons/amazing-wpbakery-page-builder-addons.php
  • 38× 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/amazing-wpbakery-page-builder-addons/shortcodes/animate-text/animate-text.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazing-wpbakery-page-builder-addons/shortcodes/twitter_slider/twitter_slider.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazing-wpbakery-page-builder-addons/shortcodes/divider/divider.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazing-wpbakery-page-builder-addons/shortcodes/promo-block/promo-block.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazing-wpbakery-page-builder-addons/shortcodes/header-block/header-block.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazing-wpbakery-page-builder-addons/shortcodes/flip-box/flip-box.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazing-wpbakery-page-builder-addons/shortcodes/carousel/carousel.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazing-wpbakery-page-builder-addons/shortcodes/table/table.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazing-wpbakery-page-builder-addons/shortcodes/progressbar/progressbar.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazing-wpbakery-page-builder-addons/shortcodes/latest-posts-slider/latest-posts-slider.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (screenshot 1), #2 (screenshot 2), #3 (screenshot 3), #4 (screenshot 4), #5 (screenshot 5), #6 (screenshot 6), #7 (screenshot 7)
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can look at the official readme.txt

amazing-wpbakery-page-builder-addons/amazing-wpbakery-page-builder-addons.php 85% from 13 tests

The main PHP file in "Amazing WPBakery Page Builder Addons" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected44,758 lines of code in 164 files:
LanguageFilesBlank linesComment linesLines of code
CSS671,34465223,938
PHP551,5181,52317,320
JavaScript367174542,718
SVG100565
Markdown3780164
XML15027
JSON10026

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity19.92
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity98.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes17.69%
▷ Concrete classes1292.31%
▷ Final classes00.00%
Methods85
▷ Static methods44.71%
▷ Public methods5463.53%
▷ Protected methods67.06%
▷ Private methods2529.41%
Functions110
▷ Named functions110100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants214.29%
▷ Class constants1285.71%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
43 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/carousel_anything_icon.png1.28KB1.33KB0.00%
admin/img/button_set_icon.png2.54KB1.80KB▼ 28.92%
admin/img/beforeafter_icon.png1.36KB0.53KB▼ 61.42%
admin/img/profile_card_v2_icon.png1.56KB0.68KB▼ 56.60%
admin/img/dropcaps_icon.png3.97KB2.42KB▼ 39.17%