68% wpdevart-pricing-table

Code Review | Pricing Table builder - Price List

WordPress plugin Pricing Table builder - Price List scored68%from 54 tests.

About plugin

  • Plugin page: wpdevart-pricing-...
  • Plugin version: 1.4.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 7, 2020
  • Latest release: Mar 31, 2023
  • Number of updates: 108
  • Update frequency: every 10.6 days
  • Top authors: wpdevart (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /10,099 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.84MB] [CPU: ▲1.12ms] Passed 4 tests

An overview of server-side resources used by Pricing Table builder - Price List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.33 ▲0.8741.50 ▼0.05
Dashboard /wp-admin4.18 ▲0.8852.57 ▲4.20
Posts /wp-admin/edit.php4.23 ▲0.8850.69 ▲3.42
Add New Post /wp-admin/post-new.php6.70 ▲0.8190.07 ▼3.09
Media Library /wp-admin/upload.php4.04 ▲0.8145.09 ▲9.28
Column Themes /wp-admin/admin.php?page=wpda_pricing_table_themes4.0235.92
Featured Plugins /wp-admin/admin.php?page=wpda_pricing_table_featured_plugins4.0136.93
Pricing Tables /wp-admin/admin.php?page=wpda_pricing_table_menu4.0141.01

Server storage [IO: ▲4.10MB] [DB: ▲0.03MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 90 new files
Database: 2 new tables, 7 new options
New tables
wp_wpda_pricing_table_theme
wp_wpda_pricing_tables
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
wpdevart_pricing_table_databese_status
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Pricing Table builder - Price List
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲15213.55 ▼1.119.42 ▲7.4938.35 ▲0.03
Dashboard /wp-admin2,215 ▲455.54 ▼0.0686.10 ▼17.1771.32 ▲32.20
Posts /wp-admin/edit.php2,135 ▲352.04 ▲0.0138.73 ▼4.3735.65 ▼2.59
Add New Post /wp-admin/post-new.php6,396 ▲4,87027.72 ▲4.62958.59 ▲316.0640.72 ▼12.88
Media Library /wp-admin/upload.php1,432 ▲324.17 ▼0.00114.36 ▲8.8879.79 ▲33.08
Column Themes /wp-admin/admin.php?page=wpda_pricing_table_themes1,2042.7663.9351.00
Featured Plugins /wp-admin/admin.php?page=wpda_pricing_table_featured_plugins1,1371.9924.6440.79
Pricing Tables /wp-admin/admin.php?page=wpda_pricing_table_menu1,0722.6060.2334.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_wpda_pricing_table_theme
    • wp_wpda_pricing_tables
  • Zombie WordPress options were found after uninstall: 7 options
    • wpdevart_pricing_table_databese_status
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wpdevart-pricing-table/wpdevart-pricing-table.php:61

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 browser errors
    • > GET request to /wp-admin/admin.php?page=wpda_pricing_table_themes
    • > Network (severe)
    wp-content/plugins/wpdevart-pricing-table/includes/admin/images/default%7B%7Brows.default%7D%7D.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: price table, price list, responsive pricing table, pricing table, comparison tables

wpdevart-pricing-table/wpdevart-pricing-table.php 92% from 13 tests

The primary PHP file in "Pricing Table builder - Price List" version 1.4.7 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 characters long)

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 detected26,484 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,026
CSS101,838946,792
PO File82,2282,5044,890
PHP9212923,061
JavaScript92453082,715

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity30.00
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods113
▷ Static methods3631.86%
▷ Public methods6153.98%
▷ Protected methods00.00%
▷ Private methods5246.02%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
25 PNG files occupy 0.24MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/images/featured_plugins/facebook-comments-icon.png35.59KB9.23KB▼ 74.06%
includes/admin/images/featured_plugins/contact_forms.png14.11KB6.86KB▼ 51.39%
includes/admin/images/featured_plugins/gallery-album-icon.png10.74KB4.69KB▼ 56.38%
includes/admin/images/success.png6.07KB2.08KB▼ 65.74%
includes/admin/images/featured_plugins/vertical-menu.png6.36KB3.88KB▼ 39.03%