94% advanced-pricing-addon-wpbakery

Code Review | Advanced Pricing Addon For Wp Bakery

WordPress plugin Advanced Pricing Addon For Wp Bakery scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-pricing-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 5.9.2
  • First release: Aug 1, 2021
  • Latest release: Feb 14, 2022
  • Number of updates: 5
  • Update frequency: every 39.8 days
  • Top authors: umairsaleem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 354 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Advanced Pricing Addon For Wp Bakery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0152.86 ▼1.97
Dashboard /wp-admin3.41 ▲0.0134.23 ▼2.60
Posts /wp-admin/edit.php3.65 ▲0.0137.69 ▼0.36
Add New Post /wp-admin/post-new.php6.89 ▼0.08104.79 ▼1,148.75
Media Library /wp-admin/upload.php3.30 ▼0.0022.87 ▼8.46

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Pricing Addon For Wp Bakery
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,804 ▲6015.98 ▼0.027.11 ▲0.292.73 ▲0.36
Dashboard /wp-admin2,892 ▲345.97 ▼0.22123.39 ▼7.54152.55 ▼13.20
Posts /wp-admin/edit.php2,688 ▼03.22 ▼0.0162.09 ▼3.12138.02 ▼2.20
Add New Post /wp-admin/post-new.php1,661 ▼5016.95 ▼3.77433.12 ▲2.33153.32 ▼2.80
Media Library /wp-admin/upload.php1,698 ▼35.52 ▼0.04147.19 ▲7.94195.88 ▲10.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/advanced-pricing-addon-wpbakery/advanced-pricing-addon-wpbakery.php
    • > /wp-content/plugins/advanced-pricing-addon-wpbakery/inc/advanced-pricing-vc-module.php

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)
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: addon, easysoftonic, pricing table, visual composer module, wp bakery...

advanced-pricing-addon-wpbakery/advanced-pricing-addon-wpbakery.php 92% from 13 tests

The main PHP script in "Advanced Pricing Addon For Wp Bakery" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin687 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity7.50
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/module-icon.png2.20KB1.13KB▼ 48.56%
assets/images/menuicon.png1.29KB0.67KB▼ 48.30%