78% wp-pricing

Code Review | Pricing Table Builder - The Best Price Table Builder Plugin

WordPress plugin Pricing Table Builder - The Best Price Table Builder Plugin scored78%from 54 tests.

About plugin

  • Plugin page: wp-pricing
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 12, 2018
  • Latest release: Jul 12, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: techjewel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,415 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼14.25ms] Passed 4 tests

This is a short check of server-side resources used by Pricing Table Builder - The Best Price Table Builder Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2741.34 ▲0.33
Dashboard /wp-admin3.57 ▲0.2251.56 ▼15.47
Posts /wp-admin/edit.php3.68 ▲0.3348.11 ▼9.24
Add New Post /wp-admin/post-new.php6.15 ▲0.2786.03 ▼32.60
Media Library /wp-admin/upload.php3.49 ▲0.2646.98 ▲17.23

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pricing Table Builder - The Best Price Table Builder Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲6814.26 ▼0.371.81 ▼0.2743.64 ▲0.41
Dashboard /wp-admin2,245 ▲715.51 ▼0.14101.97 ▲10.0342.93 ▼0.95
Posts /wp-admin/edit.php2,151 ▲482.03 ▼0.0136.70 ▼4.4933.34 ▼3.98
Add New Post /wp-admin/post-new.php1,538 ▲1223.06 ▼0.04682.10 ▲68.5657.97 ▲7.04
Media Library /wp-admin/upload.php1,450 ▲504.23 ▲0.04106.09 ▼2.2543.04 ▼0.10

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

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

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
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following items
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-pricing/views/table/footer.php
    • > /wp-content/plugins/wp-pricing/views/table/features.php
    • > /wp-content/plugins/wp-pricing/views/table/_css.php
    • > /wp-content/plugins/wp-pricing/views/table/header.php
    • > /wp-content/plugins/wp-pricing/views/table/price.php
    • > /wp-content/plugins/wp-pricing/views/admin_view.php
  • 42× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: prefix in wp-content/plugins/wp-pricing/views/table/_css.php on line 36
    • > PHP Notice
      Undefined variable: header in wp-content/plugins/wp-pricing/views/table/header.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-pricing/views/table/price.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-pricing/views/table/price.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-pricing/views/table/footer.php on line 3
    • > PHP Notice
      Undefined variable: prefix in wp-content/plugins/wp-pricing/views/table/_css.php on line 42
    • > PHP Notice
      Undefined variable: footer in wp-content/plugins/wp-pricing/views/table/footer.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-pricing/views/table/footer.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-pricing/views/table/footer.php on line 5
    • > PHP Notice
      Undefined variable: prefix in wp-content/plugins/wp-pricing/views/table/_css.php on line 77

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Requires php: Version format is invalid
  • Screenshots: Add a description for screenshot #8 in wp-pricing/assets to your readme.txt
The official readme.txt might help

wp-pricing/wp-pricing.php 92% from 13 tests

The entry point to "Pricing Table Builder - The Best Price Table Builder Plugin" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains

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 detected1,393 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP181681031,353
SVG11030
JSON1006
CSS2002
JavaScript2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.78
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods54
▷ Static methods3361.11%
▷ Public methods4787.04%
▷ Protected methods00.00%
▷ Private methods712.96%
Functions9
▷ Named functions00.00%
▷ Anonymous functions9100.00%
Constants4
▷ Global constants4100.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
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/table.png0.94KB0.58KB▼ 37.67%
public/img/support.png3.11KB3.19KB0.00%
public/img/icon_white.png2.63KB1.16KB▼ 55.72%
public/img/grid.png2.93KB1.07KB▼ 63.45%
public/img/skin3.png2.21KB0.90KB▼ 59.33%