84% simple-pricing-tables-vc-extension

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

WordPress plugin Simple Pricing Tables For WPBakery Page Builder(Formerly Visual Composer) scored84%from 54 tests.

About plugin

  • Plugin page: simple-pricing-ta...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Sep 14, 2017
  • Latest release: Jun 4, 2022
  • Number of updates: 14
  • Update frequency: every 123.3 days
  • Top authors: Labibahmed42 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,432 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.85ms] Passed 4 tests

A check of server-side resources used by Simple Pricing Tables For WPBakery Page Builder(Formerly Visual Composer)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.61 ▼4.83
Dashboard /wp-admin3.37 ▲0.0747.11 ▼3.43
Posts /wp-admin/edit.php3.42 ▲0.0650.54 ▲5.50
Add New Post /wp-admin/post-new.php5.95 ▲0.0695.93 ▼15.79
Media Library /wp-admin/upload.php3.29 ▲0.0638.75 ▲4.64

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Pricing Tables For WPBakery Page Builder(Formerly Visual Composer)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.591.82 ▼0.2440.40 ▼8.35
Dashboard /wp-admin2,203 ▲215.79 ▲0.9399.75 ▼19.6038.92 ▼4.29
Posts /wp-admin/edit.php2,092 ▲61.99 ▼0.0140.25 ▲0.3534.84 ▼1.34
Add New Post /wp-admin/post-new.php1,542 ▲1118.27 ▲0.15610.14 ▼52.9158.38 ▲5.28
Media Library /wp-admin/upload.php1,385 ▼34.17 ▼0.0198.92 ▼13.9341.07 ▼3.25

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-pricing-tables-vc-extension/plugin.class.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: pricing, responsive pricing tables, best pricing tables, team builder, css3 tables...

simple-pricing-tables-vc-extension/index.php 85% from 13 tests

Analyzing the main PHP file in "Simple Pricing Tables For WPBakery Page Builder(Formerly Visual Composer)" version 1.0
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-pricing-tables-vc-extension.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected12,689 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS83652029,386
SVG6152,812
PHP26824491

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity21.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected