78% pricing-tables-for-visual-composer

Code Review | Pricing Tables For WPBakery Page Builder (formerly Visual Composer)

WordPress plugin Pricing Tables For WPBakery Page Builder (formerly Visual Composer) scored78%from 54 tests.

About plugin

  • Plugin page: pricing-tables-fo...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Nov 18, 2016
  • Latest release: Sep 20, 2022
  • Number of updates: 26
  • Update frequency: every 81.8 days
  • Top authors: Labibahmed42 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /24,811 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.74ms] Passed 4 tests

An overview of server-side resources used by Pricing Tables For WPBakery Page Builder (formerly Visual Composer)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.89 ▲0.43
Dashboard /wp-admin3.34 ▲0.0449.01 ▲1.59
Posts /wp-admin/edit.php3.39 ▲0.0445.50 ▼1.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0495.85 ▲4.22
Media Library /wp-admin/upload.php3.26 ▲0.0433.41 ▲2.55

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Pricing Tables For WPBakery Page Builder (formerly Visual Composer)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.14 ▼1.261.90 ▲0.2044.25 ▲0.47
Dashboard /wp-admin2,206 ▲184.89 ▼0.01111.48 ▼2.4442.81 ▲0.54
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0241.57 ▲2.7137.16 ▼0.67
Add New Post /wp-admin/post-new.php1,538 ▲1023.08 ▲4.97665.37 ▲61.7949.40 ▲0.21
Media Library /wp-admin/upload.php1,388 ▼34.16 ▼0.0794.92 ▼7.3642.66 ▼1.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/pricing-tables-for-visual-composer/templates/style3.php
    • > /wp-content/plugins/pricing-tables-for-visual-composer/templates/style2.php
    • > /wp-content/plugins/pricing-tables-for-visual-composer/templates/style1.php
    • > /wp-content/plugins/pricing-tables-for-visual-composer/templates/style4.php
    • > /wp-content/plugins/pricing-tables-for-visual-composer/templates/style5.php
  • 38× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: table_title in wp-content/plugins/pricing-tables-for-visual-composer/templates/style4.php on line 9
    • > PHP Notice
      Undefined variable: active in wp-content/plugins/pricing-tables-for-visual-composer/templates/style4.php on line 10
    • > PHP Notice
      Undefined variable: table_show_button in wp-content/plugins/pricing-tables-for-visual-composer/templates/style1.php on line 18
    • > PHP Notice
      Undefined variable: table_price in wp-content/plugins/pricing-tables-for-visual-composer/templates/style2.php on line 11
    • > PHP Notice
      Undefined variable: table_price_period in wp-content/plugins/pricing-tables-for-visual-composer/templates/style4.php on line 14
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/pricing-tables-for-visual-composer/templates/style4.php on line 18
    • > PHP Notice
      Undefined variable: active in wp-content/plugins/pricing-tables-for-visual-composer/templates/style4.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-tables-for-visual-composer/plugin.class.php:14
    • > PHP Notice
      Undefined variable: table_price in wp-content/plugins/pricing-tables-for-visual-composer/templates/style5.php on line 16
    • > PHP Notice
      Undefined variable: active in wp-content/plugins/pricing-tables-for-visual-composer/templates/style5.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

pricing-tables-for-visual-composer/index.php 85% from 13 tests

The entry point to "Pricing Tables For WPBakery Page Builder (formerly Visual Composer)" version 1.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pricing-tables-for-visual-composer.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,656 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
SVG100685
CSS3195587
PHP76330380
JavaScript1004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity1.67
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ 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
PNG images were not found in this plugin