77% arprice-responsive-pricing-table

Code Review | Pricing Table Plugin

WordPress plugin Pricing Table Plugin scored77%from 54 tests.

About plugin

  • Plugin page: arprice-responsiv...
  • Plugin version: 3.6.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 26, 2015
  • Latest release: Nov 20, 2023
  • Number of updates: 127
  • Update frequency: every 22.7 days
  • Top authors: reputeinfosystems (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

1,000+ active /60,345 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲3.56MB] [CPU: ▲16.99ms] Passed 4 tests

A check of server-side resources used by Pricing Table Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /7.03 ▲3.5657.04 ▲16.93
Dashboard /wp-admin6.87 ▲3.5665.60 ▲15.24
Posts /wp-admin/edit.php6.91 ▲3.5660.85 ▲12.85
Add New Post /wp-admin/post-new.php9.47 ▲3.59112.71 ▲32.51
Media Library /wp-admin/upload.php6.78 ▲3.5555.10 ▲22.93
ARPrice Lite /wp-admin/admin.php?page=arpricelite6.5739.92
A/B Testing /wp-admin/admin.php?page=arplite_ab_testing6.5738.81
Settings /wp-admin/admin.php?page=arplite_global_settings6.5738.13
Growth Plugins /wp-admin/admin.php?page=arplite_growth_tools6.7244.08
Import/Export /wp-admin/admin.php?page=arplite_import_export6.5746.81
Upgrade to Premium /wp-admin/admin.php?page=arplite_upgrade_to_premium6.6843.58

Server storage [IO: ▲9.16MB] [DB: ▲0.18MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 277 new files
Database: 3 new tables, 17 new options
New tables
wp_arplite_arprice
wp_arplite_arprice_analytics
wp_arplite_arprice_options
New WordPress options
widget_arpricelite_widget
arplite_popup_display
widget_theysaidso_widget
db_upgraded
arplite_is_new_installation
arpricelite_version
enable_font_loading_icon
can_compress_scripts
arpricelite_tour_guide_value
arplite_desktop_responsive_size
...

Browser metrics 75% from 4 tests

Checking browser requirements for Pricing Table Plugin
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 43,490 on /wp-admin/admin.php?page=arplite_upgrade_to_premium)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲15613.43 ▼0.9110.45 ▲8.7431.53 ▼15.93
Dashboard /wp-admin2,219 ▲395.56 ▼0.1193.10 ▼3.9779.61 ▲33.27
Posts /wp-admin/edit.php2,139 ▲392.06 ▲0.1133.74 ▼4.5133.61 ▼1.20
Add New Post /wp-admin/post-new.php6,187 ▲4,66123.53 ▲0.29891.99 ▲251.5037.08 ▼18.29
Media Library /wp-admin/upload.php1,427 ▲304.16 ▼0.0698.40 ▲2.1674.00 ▲32.91
ARPrice Lite /wp-admin/admin.php?page=arpricelite1,8972.1649.60169.51
A/B Testing /wp-admin/admin.php?page=arplite_ab_testing1,1411.9127.2154.14
Settings /wp-admin/admin.php?page=arplite_global_settings1,6692.0033.0463.14
Growth Plugins /wp-admin/admin.php?page=arplite_growth_tools1,2032.0726.99109.93
Import/Export /wp-admin/admin.php?page=arplite_import_export1,0321.7329.1847.76
Upgrade to Premium /wp-admin/admin.php?page=arplite_upgrade_to_premium43,4906.82210.30155.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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 9 options
    • theysaidso_admin_options
    • enable_font_loading_icon
    • db_upgraded
    • widget_theysaidso_widget
    • arplite_display_bf_sale_popup
    • widget_recent-posts
    • widget_arpricelite_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/arprice-responsive-pricing-table/core/widgets/arprice_widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/arprice-responsive-pricing-table/core/views/arplite_growth_tools.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/arprice-responsive-pricing-table/arprice-responsive-pricing-table.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_ssl() in wp-content/plugins/arprice-responsive-pricing-table/core/views/arprice_ab_testing.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=arplite_upgrade_to_premium
    • > Security (warning) in unknown
    security - Error with Feature-Policy header: Unrecognized feature: 'speaker'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: You can look at the official readme.txt

arprice-responsive-pricing-table/arprice-responsive-pricing-table.php Passed 13 tests

The main PHP script in "Pricing Table Plugin" version 3.6.4 is automatically included on every request by WordPress
57 characters long description:
Responsive WordPress Pricing Table / Team Showcase Plugin

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected54,999 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
PHP355,51857038,854
SVG4119,555
JSON1102,912
CSS1833102,579
PO File14871,0501,081
JavaScript180018

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 510)
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity115.93
▷ Minimum class complexity2.00
▷ Maximum class complexity934.00
Average method complexity8.66
▷ Minimum method complexity1.00
▷ Maximum method complexity510.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods210
▷ Static methods83.81%
▷ Public methods20698.10%
▷ Protected methods31.43%
▷ Private methods10.48%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
158 PNG files occupy 2.19MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/template_images/arp_template_19.png9.22KB3.75KB▼ 59.30%
images/template_images/arp_template_20.png9.62KB4.75KB▼ 50.60%
images/arptemplate_14_v2.0_preview.png86.34KB91.60KB0.00%
images/template_images/arp_template_22_hover.png32.27KB32.64KB0.00%
images/template_images/arp_template_8_hover.png4.34KB4.35KB0.00%