78% wppricing-builder-lite-responsive-pricing-table-builder

Code Review | Responsive Pricing Table Builder - wpPricing Builder

WordPress plugin Responsive Pricing Table Builder - wpPricing Builder scored78%from 54 tests.

About plugin

  • Plugin page: wppricing-builder...
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.2
  • WordPress version: 6.3.1
  • First release: Aug 3, 2017
  • Latest release: May 17, 2019
  • Number of updates: 7
  • Update frequency: every 93.4 days
  • Top authors: swebdeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,492 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
Install script ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼3.73ms] Passed 4 tests

Analyzing server-side resources used by Responsive Pricing Table Builder - wpPricing Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3142.23 ▲2.12
Dashboard /wp-admin3.61 ▲0.2747.50 ▼12.05
Posts /wp-admin/edit.php3.73 ▲0.3744.76 ▼1.32
Add New Post /wp-admin/post-new.php6.22 ▲0.3382.17 ▼3.65
Media Library /wp-admin/upload.php3.54 ▲0.3140.69 ▲5.52
Add New /wp-admin/post-new.php?post_type=wbr-pricing-table3.7448.35
All Pricing Tables /wp-admin/edit.php?post_type=wbr-pricing-table3.5849.94

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Pricing Table Builder - wpPricing Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.36 ▼1.051.60 ▼0.1444.02 ▲3.33
Dashboard /wp-admin2,227 ▲364.93 ▲0.0597.85 ▼7.8177.05 ▲37.71
Posts /wp-admin/edit.php2,125 ▲392.03 ▲0.0134.97 ▼1.4533.48 ▼1.06
Add New Post /wp-admin/post-new.php1,710 ▲17722.32 ▼0.99704.13 ▲1.5131.69 ▼27.21
Media Library /wp-admin/upload.php1,421 ▲394.19 ▲0.0998.34 ▼4.1990.33 ▲44.31
Add New /wp-admin/post-new.php?post_type=wbr-pricing-table3,3174.6390.69171.71
All Pricing Tables /wp-admin/edit.php?post_type=wbr-pricing-table1,0941.9933.3640.82

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 15× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wppricing-builder-lite-responsive-pricing-table-builder/includes/color/style/crptExo.php
    • > /wp-content/plugins/wppricing-builder-lite-responsive-pricing-table-builder/includes/color/style/rainbowStyle5.php
    • > /wp-content/plugins/wppricing-builder-lite-responsive-pricing-table-builder/includes/color/style/crptAdvanced.php
    • > /wp-content/plugins/wppricing-builder-lite-responsive-pricing-table-builder/includes/color/style/smoozyStyle3.php
    • > /wp-content/plugins/wppricing-builder-lite-responsive-pricing-table-builder/includes/wbrptSettings.php
    • > /wp-content/plugins/wppricing-builder-lite-responsive-pricing-table-builder/includes/color/style/ribbonStyle4.php
    • > /wp-content/plugins/wppricing-builder-lite-responsive-pricing-table-builder/includes/color/style/smoozyStyle2.php
    • > /wp-content/plugins/wppricing-builder-lite-responsive-pricing-table-builder/includes/color/style/csmrptModern.php
    • > /wp-content/plugins/wppricing-builder-lite-responsive-pricing-table-builder/includes/color/style/radiusStyle5.php
    • > /wp-content/plugins/wppricing-builder-lite-responsive-pricing-table-builder/includes/color/style/ringsStyle4.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: ptDesign in wp-content/plugins/wppricing-builder-lite-responsive-pricing-table-builder/templates/design/parts/navigationTabs.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: pricing table, responsive pricing table, pricing tables, comparison table, builder

wppricing-builder-lite-responsive-pricing-table-builder/wppricing-builder-lite-responsive-pricing-table-builder.php Passed 13 tests

The main file in "Responsive Pricing Table Builder - wpPricing Builder" v. 1.5.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
40 characters long description:
Build your Pricing Tables in few minutes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin22,863 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
CSS8514411112,147
SVG5005,484
JavaScript84202232,921
PHP36105562,311

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods1100.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions37
▷ Named functions3286.49%
▷ Anonymous functions513.51%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
84 PNG files occupy 2.20MB with 1.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/design-preview/crpt-exo.png20.74KB8.98KB▼ 56.68%
assets/admin/images/design-preview/rings-style3.png33.10KB13.72KB▼ 58.54%
assets/admin/images/design-preview/smoozy-style5.png43.80KB14.58KB▼ 66.71%
assets/admin/images/design-preview/sketch-style6.png20.75KB9.05KB▼ 56.37%
assets/admin/images/design-preview/sketch-style4.png19.23KB8.27KB▼ 56.98%