84% b-pricing-table

Code Review | Pricing Table block - Display product prices as a table.

WordPress plugin Pricing Table block - Display product prices as a table. scored84%from 54 tests.

About plugin

  • Plugin page: b-pricing-table
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 24, 2021
  • Latest release: Oct 3, 2023
  • Number of updates: 24
  • Update frequency: every 27.0 days
  • Top authors: charlescormier (83.33%)abuhayat (20.83%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /7,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.59ms] Passed 4 tests

An overview of server-side resources used by Pricing Table block - Display product prices as a table.
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0539.89 ▼4.45
Dashboard /wp-admin3.38 ▼0.0056.18 ▼14.34
Posts /wp-admin/edit.php3.44 ▲0.0451.92 ▲1.64
Add New Post /wp-admin/post-new.php5.97 ▲0.0490.61 ▼6.10
Media Library /wp-admin/upload.php3.31 ▲0.0435.00 ▼1.48

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Pricing Table block - Display product prices as a table.
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.64 ▼0.8011.42 ▲9.7042.03 ▼2.17
Dashboard /wp-admin2,195 ▲215.51 ▼0.1587.25 ▼7.0138.37 ▼13.53
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0036.34 ▼5.7733.78 ▼1.51
Add New Post /wp-admin/post-new.php6,203 ▲4,66718.96 ▼4.13911.30 ▲200.3239.61 ▼15.44
Media Library /wp-admin/upload.php1,403 ▲34.17 ▲0.0697.73 ▼19.0143.48 ▼4.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant BPTB_PLUGIN_VERSION - assumed 'BPTB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/b-pricing-table/dist/script.asset.php on line 4
    • > PHP Warning
      Use of undefined constant BPTB_PLUGIN_VERSION - assumed 'BPTB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/b-pricing-table/dist/editor.asset.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

b-pricing-table/index.php 92% from 13 tests

Analyzing the main PHP file in "Pricing Table block - Display product prices as a table." version 1.0.6
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("b-pricing-table.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 plugin352 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON200190
PO File14479109
PHP3121341
SVG1008
CSS2022
JavaScript2022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin