72% pricing-table-extended

Code Review | Pricing Table Extended

WordPress plugin Pricing Table Extended scored72%from 54 tests.

About plugin

  • Plugin page: pricing-table-ext...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-3.5.2
  • WordPress version: 6.3.1
  • First release: Sep 13, 2013
  • Latest release: Mar 30, 2014
  • Number of updates: 20
  • Update frequency: every 10.0 days
  • Top authors: phantasmacode (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

20+ active /6,113 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
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.98ms] Passed 4 tests

Server-side resources used by Pricing Table Extended
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1335.62 ▼1.18
Dashboard /wp-admin3.43 ▲0.0855.71 ▲1.40
Posts /wp-admin/edit.php3.48 ▲0.1244.17 ▼5.22
Add New Post /wp-admin/post-new.php6.03 ▲0.1485.00 ▼22.91
Media Library /wp-admin/upload.php3.35 ▲0.1237.00 ▲5.12
Pricing Tables /wp-admin/edit.php?post_type=pricing-tables3.3936.68
Documentation /wp-admin/edit.php?post_type=pricing-tables&page=pricing_tables_documentation3.2931.11
Add New Pricing Table /wp-admin/post-new.php?post_type=pricing-tables3.4142.49

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

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

Browser metrics Passed 4 tests

Pricing Table Extended: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7814.36 ▲0.011.67 ▼0.4040.13 ▼1.96
Dashboard /wp-admin2,224 ▲435.69 ▼0.0282.31 ▼13.9576.25 ▲34.35
Posts /wp-admin/edit.php2,151 ▲511.99 ▲0.0134.22 ▼8.1033.48 ▼2.99
Add New Post /wp-admin/post-new.php6,419 ▲4,89328.25 ▲5.32979.92 ▲361.6935.28 ▼17.25
Media Library /wp-admin/upload.php1,435 ▲384.20 ▲0.0292.42 ▼4.1071.31 ▲27.27
Pricing Tables /wp-admin/edit.php?post_type=pricing-tables1,1191.9029.0631.26
Documentation /wp-admin/edit.php?post_type=pricing-tables&page=pricing_tables_documentation1,1551.9334.0434.73
Add New Pricing Table /wp-admin/post-new.php?post_type=pricing-tables1,6632.8160.0739.21

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

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=pricing-tables&page=pricing_tables_documentation
    • > Warning in wp-content/plugins/pricing-table-extended/inc/pages/documentation.php+36
    Use of undefined constant PHC_CAMERA_IMAGES_BANNER - assumed 'PHC_CAMERA_IMAGES_BANNER' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/edit.php?post_type=pricing-tables&page=pricing_tables_documentation
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/edit.php?post_type=pricing-tables&page=pricing_tables_documentation
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=pricing-tables
    • > Notice in wp-content/plugins/pricing-table-extended/inc/meta_boxes.php+294
    Undefined variable: theme

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-extended/inc/pages/documentation.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/pricing-table-extended/phc-pricing-table.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-extended/inc/meta_boxes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-extended/inc/post_type.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-extended/inc/admin_scripts.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pricing-table-extended/inc/shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pricing-table-extended/inc/manage_columns.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-extended/inc/backend_ajax.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/pricing-table-extended/inc/theme.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=pricing-tables&page=pricing_tables_documentation
    • > Network (severe)
    wp-admin/PHC_CAMERA_IMAGES_BANNERbanner_or.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=pricing-tables
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-accordion&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/pricing-table-extended/js/admin.js?ver=6.3.1:94:21)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-accordion&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-accordion&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=pricing-tables
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-accordion&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: pricing table theme, price table, pricing table, pricing table with more themes, pricing tables

pricing-table-extended/phc-pricing-table.php 92% from 13 tests

The main file in "Pricing Table Extended" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pricing-table-extended.php" instead of "phc-pricing-table.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,073 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP94829845
JavaScript5100113557
CSS803474
PO File1523178
Markdown16019

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 PNG files occupy 0.21MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/documentation/how-to-use/step7.png7.50KB4.51KB▼ 39.88%
img/branches.png3.99KB1.40KB▼ 64.94%
img/documentation/how-to-use/step6.png2.08KB1.38KB▼ 33.93%
img/documentation/how-to-use/step1.png2.62KB1.82KB▼ 30.57%
img/documentation/how-to-use/step8.png5.67KB3.45KB▼ 39.17%