78% price-table-for-wpbakery-page-builder

Code Review | Pricing Table For WPBakery Page Builder

WordPress plugin Pricing Table For WPBakery Page Builder scored78%from 54 tests.

About plugin

  • Plugin page: price-table-for-w...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0.2
  • WordPress version: 6.3.1
  • First release: Jan 10, 2018
  • Latest release: Nov 1, 2022
  • Number of updates: 23
  • Update frequency: every 76.4 days
  • Top authors: nasir179125 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /12,336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Pricing Table For WPBakery Page Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.77 ▼7.62
Dashboard /wp-admin3.31 ▲0.0143.82 ▼7.29
Posts /wp-admin/edit.php3.37 ▲0.0143.06 ▼2.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.86 ▼18.36
Media Library /wp-admin/upload.php3.24 ▲0.0136.73 ▲3.62

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Pricing Table For WPBakery Page Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.17 ▼1.221.78 ▲0.0444.99 ▼0.26
Dashboard /wp-admin2,226 ▲385.88 ▼0.1599.40 ▼20.0339.73 ▼4.62
Posts /wp-admin/edit.php2,106 ▲202.03 ▲0.0438.09 ▼0.2231.97 ▼0.14
Add New Post /wp-admin/post-new.php1,534 ▲122.90 ▼0.40652.59 ▲3.5856.08 ▼0.33
Media Library /wp-admin/upload.php1,408 ▲264.25 ▲0.0796.31 ▼2.7943.27 ▲1.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
The following issues need your attention
  • 8× PHP files output text when accessed directly:
    • > /wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price2.php
    • > /wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price4.php
    • > /wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price8.php
    • > /wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price1.php
    • > /wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price6.php
    • > /wp-content/plugins/price-table-for-wpbakery-page-builder/render/price.php
    • > /wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price7.php
    • > /wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price5.php
  • 90× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: btn_text in wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price1.php on line 24
    • > PHP Notice
      Undefined variable: btn_url in wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price2.php on line 15
    • > PHP Notice
      Undefined variable: offer_bg in wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price1.php on line 4
    • > PHP Notice
      Undefined variable: price_amount in wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price4.php on line 8
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price2.php on line 12
    • > PHP Notice
      Undefined variable: top_bg in wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price7.php on line 18
    • > PHP Notice
      Undefined variable: btn_text in wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price5.php on line 15
    • > PHP Notice
      Undefined variable: top_bg in wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price1.php on line 2
    • > PHP Notice
      Undefined variable: btn_url in wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price6.php on line 15
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/price-table-for-wpbakery-page-builder/render/includes/price8.php on line 12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

price-table-for-wpbakery-page-builder/index.php 92% from 13 tests

The main PHP script in "Pricing Table For WPBakery Page Builder" version 2.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("price-table-for-wpbakery-page-builder.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,137 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG2002,690
CSS254451,069
PHP103627378

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity5.50
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods116.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icons/price.png3.97KB0.85KB▼ 78.65%