78% bee-pricing-table

Code Review | Pricing Table

WordPress plugin Pricing Table scored78%from 54 tests.

About plugin

  • Plugin page: bee-pricing-table
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Dec 2, 2016
  • Latest release: Dec 2, 2016
  • Number of updates: 48
  • Update frequency: every 2.2 days
  • Top authors: aumsrini (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,856 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.44MB] [CPU: ▼0.22ms] Passed 4 tests

Server-side resources used by Pricing Table
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4436.05 ▼3.27
Dashboard /wp-admin3.79 ▲0.4950.14 ▲0.80
Posts /wp-admin/edit.php3.81 ▲0.4652.09 ▲5.76
Add New Post /wp-admin/post-new.php6.32 ▲0.4390.81 ▼4.15
Media Library /wp-admin/upload.php3.65 ▲0.4240.17 ▲5.90
All Pricing Tables /wp-admin/edit.php?post_type=bee_pricing_table3.7641.12
Add New /wp-admin/post-new.php?post_type=bee_pricing_table4.1445.97

Server storage [IO: ▲4.07MB] [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: 392 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Pricing Table
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲18714.05 ▼0.304.94 ▲2.7341.60 ▼0.80
Dashboard /wp-admin2,248 ▲605.88 ▲1.01100.84 ▼15.2438.46 ▼4.73
Posts /wp-admin/edit.php2,134 ▲452.06 ▲0.0340.69 ▲3.6335.11 ▲2.11
Add New Post /wp-admin/post-new.php1,551 ▲3717.79 ▼0.03597.36 ▼90.3557.47 ▲4.31
Media Library /wp-admin/upload.php1,430 ▲394.32 ▲0.1396.77 ▼2.6745.87 ▲1.43
All Pricing Tables /wp-admin/edit.php?post_type=bee_pricing_table1,1062.0334.3829.35
Add New /wp-admin/post-new.php?post_type=bee_pricing_table3,2353.45121.2631.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/bee-pricing-table/public/partials/bee-pricing-table-public-display.php
    • > /wp-content/plugins/bee-pricing-table/admin/partials/bee-pricing-table-admin-display.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Cmb2Grid\\Grid\\Cmb2Grid' not found in wp-content/plugins/bee-pricing-table/includes/framework/grid/Grid/Group/Cmb2GroupGrid.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bee-pricing-table/includes/framework/bee_pricing_config.php:72
    • > PHP Fatal error
      Uncaught Error: Class 'Cmb2Grid\\Grid\\Row' not found in wp-content/plugins/bee-pricing-table/includes/framework/grid/Grid/Group/GroupRow.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bee-pricing-table/includes/bee-pricing-table-front-view.php:207
    • > PHP Fatal error
      Uncaught Error: Class 'Cmb2Grid\\Grid\\Column' not found in wp-content/plugins/bee-pricing-table/includes/framework/grid/Grid/Group/GroupColumn.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Cmb2Grid\\trailingslashit() in wp-content/plugins/bee-pricing-table/includes/framework/grid/Cmb2GridPluginLoad.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Cmb2Grid\\trailingslashit() in wp-content/plugins/bee-pricing-table/includes/framework/grid/Cmb2GridPluginLoad.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bee-pricing-table/includes/bee-pricing-table-functions.php:56

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6, #7, #8 in bee-pricing-table/assets to your readme.txt
The official readme.txt might help

bee-pricing-table/bee-pricing-table.php Passed 13 tests

The primary PHP file in "Pricing Table" version 1.0.0 is used by WordPress to initiate all plugin functionality
50 characters long description:
Responsive pricing table builder very easy to use.

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
Good job! No executable or dangerous file extensions detected55,770 lines of code in 227 files:
LanguageFilesBlank linesComment linesLines of code
PO File11912,73116,33529,151
CSS142,0702,08611,747
PHP411,4383,0714,461
Sass25208573,699
SVG1002,671
JavaScript72852031,820
LESS1434441,758
Markdown31500415
YAML193328
XML14217
JSON1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity22.55
▷ Minimum class complexity1.00
▷ Maximum class complexity130.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes31
▷ Abstract classes13.23%
▷ Concrete classes3096.77%
▷ Final classes00.00%
Methods325
▷ Static methods278.31%
▷ Public methods29490.46%
▷ Protected methods206.15%
▷ Private methods113.38%
Functions33
▷ Named functions3193.94%
▷ Anonymous functions26.06%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.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
14 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/framework/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
includes/framework/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
includes/framework/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
includes/framework/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
includes/framework/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%