67% kento-pricing-table-free

Code Review | Pricing Tables Free

WordPress plugin Pricing Tables Free scored67%from 54 tests.

About plugin

  • Plugin page: kento-pricing-tab...
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Jan 29, 2014
  • Latest release: Nov 20, 2017
  • Number of updates: 66
  • Update frequency: every 21.1 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

300+ active /28,173 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.13MB] [CPU: ▼3.95ms] Passed 4 tests

Server-side resources used by Pricing Tables Free
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1444.10 ▲1.37
Dashboard /wp-admin3.44 ▲0.1447.39 ▼0.48
Posts /wp-admin/edit.php3.49 ▲0.1349.99 ▲2.26
Add New Post /wp-admin/post-new.php6.03 ▲0.1489.15 ▼16.20
Media Library /wp-admin/upload.php3.36 ▲0.1337.49 ▼0.48
Add New /wp-admin/post-new.php?post_type=wpt3.3741.36
KPT Free /wp-admin/edit.php?post_type=wpt3.4136.10
Help & Support /wp-admin/edit.php?post_type=wpt&page=wpt_settings3.3331.29

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pricing Tables Free
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲23113.99 ▼0.325.55 ▲3.6645.87 ▲3.09
Dashboard /wp-admin2,242 ▲545.13 ▼0.75110.05 ▲8.9380.54 ▲43.75
Posts /wp-admin/edit.php2,139 ▲472.30 ▲0.2841.70 ▼1.2535.24 ▼2.79
Add New Post /wp-admin/post-new.php1,553 ▲2523.07 ▲4.80633.16 ▲12.6834.58 ▼30.28
Media Library /wp-admin/upload.php1,439 ▲544.47 ▲0.27102.27 ▼5.2175.48 ▲30.02
Add New /wp-admin/post-new.php?post_type=wpt1,9353.0053.1376.78
KPT Free /wp-admin/edit.php?post_type=wpt1,1032.2633.2532.74
Help & Support /wp-admin/edit.php?post_type=wpt&page=wpt_settings1,3939.29277.1372.74

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

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 33 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wpt
    • > Warning in wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php+242
    Cannot assign an empty string to a string offset
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wpt
    • > Notice in wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php+244
    Uninitialized string offset: 1
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wpt
    • > Notice in wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php+244
    Uninitialized string offset: 2
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wpt
    • > Notice in wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php+244
    Uninitialized string offset: 3
    • > GET request to /wp-admin/post-new.php?post_type=wpt
    • > Notice in wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php+249
    Uninitialized string offset: 13
    • > GET request to /wp-admin/post-new.php?post_type=wpt
    • > Notice in wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php+249
    Uninitialized string offset: 23
    • > GET request to /wp-admin/post-new.php?post_type=wpt
    • > Notice in wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php+249
    Uninitialized string offset: 33
    • > GET request to /wp-admin/post-new.php?post_type=wpt
    • > Notice in wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php+249
    Uninitialized string offset: 14
    • > GET request to /wp-admin/post-new.php?post_type=wpt
    • > Notice in wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php+249
    Uninitialized string offset: 24
    • > GET request to /wp-admin/post-new.php?post_type=wpt
    • > Notice in wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php+249
    Uninitialized string offset: 34
    • > GET request to /wp-admin/post-new.php?post_type=wpt
    • > Notice in wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php+249
    Uninitialized string offset: 15
    • > GET request to /wp-admin/post-new.php?post_type=wpt
    • > Notice in wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php+249
    Uninitialized string offset: 25
    • > GET request to /wp-admin/post-new.php?post_type=wpt
    • > Notice in wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php+249
    Uninitialized string offset: 35

SRP 0% 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 items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/kento-pricing-table-free/kpt-admin.php
    • > /wp-content/plugins/kento-pricing-table-free/kento-pricing-table-free.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kento-pricing-table-free/libs/post-types/kpt-post-type.php:31

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=wpt&page=wpt_settings
    • > Other (warning) in unknown
    /wp-admin/edit.php?post_type=wpt&page=wpt_settings 152 is not supported. Use , https://goo.gl/ximf56

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
9 plugin tags: free pricing table, pricing table plugin, pricing tables, price table, responsive pricing table...

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

This is the main PHP file of "Pricing Tables Free" version 2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)

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
There were no executable files found in this plugin1,245 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP610832725
CSS4659495
JavaScript13225

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
8 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/kento-pricing-table-pro.png88.62KB40.42KB▼ 54.39%
themes/default/cross-red.png3.05KB0.35KB▼ 88.36%
css/star.png3.32KB0.63KB▼ 81.05%
themes/default/item-cross.png0.38KB0.37KB▼ 3.31%
css/item-cross.png0.38KB0.37KB▼ 3.31%