62% ap-pricing-tables-lite

Code Review | Pricing Table Builder - AP Pricing Tables Lite

WordPress plugin Pricing Table Builder - AP Pricing Tables Lite scored 62% from 54 tests.

About plugin

  • Plugin page: ap-pricing-tables...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.9
  • WordPress version: 5.9.2
  • First release: Jun 27, 2017
  • Latest release: Feb 24, 2022
  • Number of updates: 27
  • Update frequency: every 63.1 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 9,590 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼307.02ms] Passed 4 tests

An overview of server-side resources used by Pricing Table Builder - AP Pricing Tables Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.3661.19 ▲9.36
Dashboard /wp-admin3.72 ▲0.3134.20 ▲0.18
Posts /wp-admin/edit.php3.95 ▲0.3037.93 ▲2.47
Add New Post /wp-admin/post-new.php7.18 ▲0.2192.21 ▼1,233.33
Media Library /wp-admin/upload.php3.60 ▲0.3025.73 ▲2.62
Plugin Settings /wp-admin/admin.php?page=ap-pricing-tables-lite-settings3.6235.06
How to Use /wp-admin/admin.php?page=ap-pricing-tables-lite-how-to-use3.6226.99
Add New Table /wp-admin/admin.php?page=ap-pricing-tables-lite-add-new4.3236.68
Check Premium Version /wp-admin/admin.php?page=appts-premium3.4018.73
AP Pricing Tables Lite /wp-admin/admin.php?page=ap-pricing-tables-lite3.6333.57
Documentation /wp-admin/admin.php?page=appts-doc3.4018.67
About /wp-admin/admin.php?page=ap-pricing-tables-lite-about3.6227.88

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 82 new files
Database: 1 new table, 1 new option
New tables
wp_appts_tables_data
New WordPress options
appts_settings

Browser metrics 75% from 4 tests

Checking browser requirements for Pricing Table Builder - AP Pricing Tables Lite
It is time to focus on the following
  • Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 26,830 on /wp-admin/admin.php?page=ap-pricing-tables-lite-add-new)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,997 ▲25316.22 ▲0.1810.74 ▲4.693.42 ▲1.07
Dashboard /wp-admin2,951 ▲906.20 ▲0.01117.39 ▼14.97171.87 ▲14.07
Posts /wp-admin/edit.php2,747 ▲533.10 ▼0.1364.03 ▼2.55143.07 ▼1.24
Add New Post /wp-admin/post-new.php1,797 ▲13617.16 ▲0.97416.92 ▼11.44197.51 ▲41.83
Media Library /wp-admin/upload.php1,759 ▲615.54 ▲0.02130.00 ▼13.82209.19 ▲21.46
Plugin Settings /wp-admin/admin.php?page=ap-pricing-tables-lite-settings1,5926.57133.04153.93
How to Use /wp-admin/admin.php?page=ap-pricing-tables-lite-how-to-use1,6376.56132.25141.24
Add New Table /wp-admin/admin.php?page=ap-pricing-tables-lite-add-new26,8306.64132.37247.19
Check Premium Version /wp-admin/admin.php?page=appts-premium1,44711.15323.40221.69
AP Pricing Tables Lite /wp-admin/admin.php?page=ap-pricing-tables-lite1,5256.57117.55122.36
Documentation /wp-admin/admin.php?page=appts-doc1,6299.40292.24218.14
About /wp-admin/admin.php?page=ap-pricing-tables-lite-about1,69111.22185.60242.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_appts_tables_data
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • appts_settings

Smoke tests 25% 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)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 26× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/ap-pricing-tables-lite/inc/backend/column.php
    • > /wp-content/plugins/ap-pricing-tables-lite/inc/backend/about.php
    • > /wp-content/plugins/ap-pricing-tables-lite/inc/backend/add_row.php
    • > /wp-content/plugins/ap-pricing-tables-lite/inc/backend/db_install.php
    • > /wp-content/plugins/ap-pricing-tables-lite/inc/frontend/shortcode-template/body.php
    • > /wp-content/plugins/ap-pricing-tables-lite/inc/backend/pricing_table_editor.php
    • > /wp-content/plugins/ap-pricing-tables-lite/inc/backend/popup.php
    • > /wp-content/plugins/ap-pricing-tables-lite/inc/frontend/shortcode-template/title_subtitle.php
    • > /wp-content/plugins/ap-pricing-tables-lite/inc/backend/pricing_tables_listing.php
    • > /wp-content/plugins/ap-pricing-tables-lite/inc/backend/plugin_settings.php
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: remove_header in wp-content/plugins/ap-pricing-tables-lite/inc/frontend/shortcode-template/title_subtitle.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ap-pricing-tables-lite/inc/plugin_variables.php:247
    • > PHP Notice
      Undefined variable: currency_settings in wp-content/plugins/ap-pricing-tables-lite/inc/frontend/shortcode-template/price.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ap-pricing-tables-lite/inc/frontend/preview-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ap-pricing-tables-lite/inc/frontend/shortcode.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ap-pricing-tables-lite/inc/frontend/shortcode-template/price.php on line 4
    • > PHP Notice
      Undefined variable: currency_settings in wp-content/plugins/ap-pricing-tables-lite/inc/frontend/shortcode-template/price.php on line 2
    • > PHP Notice
      Undefined variable: new_feature_image in wp-content/plugins/ap-pricing-tables-lite/inc/frontend/shortcode-template/title_subtitle.php on line 9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ap-pricing-tables-lite/inc/frontend/shortcode-template/price.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=appts-premium
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/wordpress-plugins/ap-pricing-tables/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=appts-doc
    • > Network (severe)
    https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/admin.php?page=appts-doc
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/documentation/ap-pricing-tables-lite/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: pricing plan, pricing table, responsive pricing table, wordpress pricing table, wp pricing table

ap-pricing-tables-lite/ap-pricing-tables-lite.php Passed 13 tests

The main PHP file in "Pricing Table Builder - AP Pricing Tables Lite" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
79 characters long description:
A plugin to add various pricing tables to posts/pages content using shortcodes.

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
No dangerous file extensions were detected28,596 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
CSS870516910,411
JavaScript51,0061,2818,552
PHP317102556,962
SVG1002,671

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods827.59%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
22 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/backend/images/ui-icons_bf3030_256x240.png4.27KB4.11KB▼ 3.78%
css/backend/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
css/backend/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
css/backend/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
images/shadows/shadow_2.png6.63KB4.13KB▼ 37.75%