77% unik-ultimate-pricing-table

Code Review | Unik – Ultimate Pricing Table

WordPress plugin Unik – Ultimate Pricing Table scored77%from 54 tests.

About plugin

  • Plugin page: unik-ultimate-pri...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 17, 2015
  • Latest release: Aug 22, 2023
  • Number of updates: 10
  • Update frequency: every 292.6 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,052 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.26MB] [CPU: ▲1,063.89ms] 50% from 4 tests

This is a short check of server-side resources used by Unik – Ultimate Pricing Table
Please take the time to fix the following items
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,196.52ms on /wp-admin/post-new.php?post_type=jwt_unik_pricing)
  • Extra CPU: The extra CPU usage must be under 200.00ms (currently 1,063.89ms on /wp-admin/post-new.php?post_type=jwt_unik_pricing)
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.23637.68 ▲596.84
Dashboard /wp-admin3.64 ▲0.341,476.34 ▲1,432.52
Posts /wp-admin/edit.php3.64 ▲0.281,207.06 ▲1,165.79
Add New Post /wp-admin/post-new.php6.15 ▲0.271,356.72 ▲1,265.16
Media Library /wp-admin/upload.php3.48 ▲0.251,262.68 ▲1,227.77
Unik Pricing /wp-admin/edit.php?post_type=jwt_unik_pricing3.521,264.39
Recommended /wp-admin/options-general.php?page=unik-ultimate-pricing-table-recommended-plugins3.451,249.08
Add New /wp-admin/post-new.php?post_type=jwt_unik_pricing3.541,196.52

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 110 new files
Database: no new tables, 13 new options
New WordPress options
jltunik_activation_time
unik_ultimate_pricing_table_version
jltunik_sheet_promo_data_hash
jltunik_notice_subscribe
widget_recent-posts
can_compress_scripts
jltunik_notice_what_we_collect
db_upgraded
theysaidso_admin_options
widget_recent-comments
...

Browser metrics Passed 4 tests

Unik – Ultimate Pricing Table: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,084 ▲32714.07 ▼0.507.79 ▲5.4650.29 ▲1.24
Dashboard /wp-admin2,404 ▲2134.93 ▼0.97105.32 ▲3.6338.45 ▼3.59
Posts /wp-admin/edit.php2,213 ▲1212.22 ▲0.2236.32 ▼8.3632.63 ▼4.20
Add New Post /wp-admin/post-new.php1,650 ▲10821.16 ▲2.91594.44 ▼7.8633.43 ▼17.49
Media Library /wp-admin/upload.php1,506 ▲1154.25 ▲0.0195.25 ▼5.1342.32 ▼5.75
Unik Pricing /wp-admin/edit.php?post_type=jwt_unik_pricing1,1702.1935.9026.81
Recommended /wp-admin/options-general.php?page=unik-ultimate-pricing-table-recommended-plugins1,2841.8828.7728.90
Add New /wp-admin/post-new.php?post_type=jwt_unik_pricing1,9823.3078.0275.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 13 options in the database
    • jltunik_notice_what_we_collect
    • db_upgraded
    • jltunik_notice_subscribe
    • widget_recent-posts
    • widget_theysaidso_widget
    • jltunik_activation_time
    • jltunik_notice_ask_for_rating
    • jltunik_sheet_promo_data
    • theysaidso_admin_options
    • jltunik_sheet_promo_data_hash
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 fix the following
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'JLTUNIK\\Libs\\RowLinks' not found in wp-content/plugins/unik-ultimate-pricing-table/Inc/Classes/Row_Links.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unik-ultimate-pricing-table/Libs/metabox/classes.fields.php:581
    • > PHP Fatal error
      Uncaught Error: Class 'JLTUNIK\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/unik-ultimate-pricing-table/Inc/Classes/Notifications/What_We_Collect.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'JLTUNIK\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/unik-ultimate-pricing-table/Inc/Classes/Notifications/Ask_For_Rating.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTUNIK\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/unik-ultimate-pricing-table/Inc/Classes/Notifications/Subscribe.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/unik-ultimate-pricing-table/Libs/metabox/example-functions.php:104
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/unik-ultimate-pricing-table/unik-ultimate-pricing-table.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unik-ultimate-pricing-table/Libs/metabox/classes.fields.php:581
    • > PHP Fatal error
      Uncaught Error: Class 'JLTUNIK\\Inc\\Classes\otifications\\Model\\Popup' not found in wp-content/plugins/unik-ultimate-pricing-table/Inc/Classes/Notifications/Upgrade_Notice.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'JLTUNIK\\Libs\\Upgrader' not found in wp-content/plugins/unik-ultimate-pricing-table/Inc/Classes/Upgrade_Plugin.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=unik-ultimate-pricing-table-recommended-plugins
    • > Network (severe)
    https://ps.w.org/ultimate-blocks-for-gutenberg/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: free wordpress pricing table, flat pricing table, best free wordpress pricing table, wp pricing table, wordpress pricing table...

unik-ultimate-pricing-table/unik-ultimate-pricing-table.php 85% from 13 tests

The primary PHP file in "Unik – Ultimate Pricing Table" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages/")

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 plugin12,877 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
PHP441,5291,8164,531
CSS184121623,735
JavaScript117294752,922
SVG2001,657
PO File181032

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.83
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits2
Classes50
▷ Abstract classes510.00%
▷ Concrete classes4590.00%
▷ Final classes12.22%
Methods292
▷ Static methods3411.64%
▷ Public methods28597.60%
▷ Protected methods20.68%
▷ Private methods51.71%
Functions18
▷ Named functions1477.78%
▷ Anonymous functions422.22%
Constants19
▷ Global constants1894.74%
▷ Class constants15.26%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
19 PNG files occupy 0.36MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) Libs/metabox/css/vendor/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png0.24KB0.00KB▼ 100.00%
(invalid) Libs/metabox/css/vendor/jquery-ui/images/ui-icons_454545_256x240.png12.42KB0.00KB▼ 100.00%
(invalid) Libs/metabox/css/vendor/jquery-ui/images/ui-icons_222222_256x240.png12.32KB0.00KB▼ 100.00%
(invalid) Libs/metabox/images/cmb-icon-remove.png1.10KB0.00KB▼ 100.00%
(invalid) Libs/metabox/css/vendor/jquery-ui/images/ui-icons_888888_256x240.png12.16KB0.00KB▼ 100.00%