72% pricing-table-free

Code Review | Pricing Table

WordPress plugin Pricing Table scored72%from 54 tests.

About plugin

  • Plugin page: pricing-table-free
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Nov 1, 2016
  • Latest release: Nov 19, 2017
  • Number of updates: 7
  • Update frequency: every 56.3 days
  • Top authors: themepoints (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,747 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.31MB] [CPU: ▼7.28ms] Passed 4 tests

A check of server-side resources used by Pricing Table
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5142.39 ▼0.63
Dashboard /wp-admin3.82 ▲0.5248.06 ▼2.01
Posts /wp-admin/edit.php3.87 ▲0.5247.50 ▲1.82
Add New Post /wp-admin/post-new.php5.65 ▼0.2368.50 ▼28.30
Media Library /wp-admin/upload.php3.68 ▲0.4642.18 ▲8.65
All Pricing Table /wp-admin/edit.php?post_type=ptwposttype3.7939.80
Add New /wp-admin/post-new.php?post_type=ptwposttype3.6637.31

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pricing Table
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲19614.14 ▼0.457.78 ▲5.6142.33 ▼9.02
Dashboard /wp-admin2,234 ▲425.86 ▲0.92104.54 ▼15.5942.56 ▼3.90
Posts /wp-admin/edit.php2,120 ▲312.07 ▲0.0641.25 ▲5.0134.77 ▲0.64
Add New Post /wp-admin/post-new.php1,568 ▲3418.68 ▼4.46641.36 ▼53.0134.38 ▼21.26
Media Library /wp-admin/upload.php1,419 ▲344.24 ▲0.0695.63 ▼7.5842.28 ▼3.04
All Pricing Table /wp-admin/edit.php?post_type=ptwposttype1,1012.3637.9526.69
Add New /wp-admin/post-new.php?post_type=ptwposttype2,6783.5894.4534.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=ptwposttype
    • > User deprecated in wp-includes/functions.php+5828
    Hook dbx_post_advanced is deprecated since version 3.7.0! Use add_meta_boxes instead.

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/pricing-table-free/pricing-table-wordpress.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pricing-table-free/metabox/example-functions.php:104
    • > PHP Warning
      Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pricing-table-free/metabox/custom-meta-boxes.php on line 46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-free/metabox/classes.fields.php:581
    • > PHP Warning
      Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pricing-table-free/metabox/custom-meta-boxes.php on line 46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-free/metabox/classes.fields.php:581

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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: The official readme.txt is a good inspiration

pricing-table-free/pricing-table-wordpress.php 92% from 13 tests

The primary PHP file in "Pricing Table" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("pricing-table-free.php" instead of "pricing-table-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin11,051 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
CSS173571504,969
JavaScript107134512,756
PHP89343992,729
SVG100565
PO File181032

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.38
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes14.55%
▷ Concrete classes2195.45%
▷ Final classes00.00%
Methods92
▷ Static methods22.17%
▷ Public methods8895.65%
▷ Protected methods11.09%
▷ Private methods33.26%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
17 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
metabox/css/vendor/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%
metabox/css/vendor/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%
metabox/css/vendor/jquery-ui/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
metabox/images/cmb-icon-remove.png1.00KB0.14KB▼ 85.64%
metabox/css/vendor/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%