78% stylish-price-list

Code Review | Stylish Price List - Price Table Builder & QR Code Restaurant Menu

WordPress plugin Stylish Price List - Price Table Builder & QR Code Restaurant Menu scored78%from 54 tests.

About plugin

  • Plugin page: stylish-price-list
  • Plugin version: 7.0.18
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 20, 2017
  • Latest release: Nov 26, 2023
  • Number of updates: 224
  • Update frequency: every 10.5 days
  • Top authors: designful (100%)

Code review

54 tests

User reviews

92 reviews

Install metrics

4,000+ active /126,376 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.60MB] [CPU: ▼0.30ms] Passed 4 tests

Server-side resources used by Stylish Price List - Price Table Builder & QR Code Restaurant Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4343.18 ▲1.47
Dashboard /wp-admin4.00 ▲0.7054.88 ▲5.09
Posts /wp-admin/edit.php4.06 ▲0.7059.49 ▲15.97
Add New Post /wp-admin/post-new.php6.53 ▲0.6482.93 ▼13.37
Media Library /wp-admin/upload.php3.85 ▲0.6240.44 ▲5.60
Video Tutorials /wp-admin/admin.php?page=stylish_price_list_video3.8443.90
All Lists /wp-admin/admin.php?page=spl-tabs3.8958.43
License /wp-admin/admin.php?page=stylish_price_list_license3.8540.05
Add New List /wp-admin/admin.php?page=spl-tabs-new4.6441.71
Settings /wp-admin/admin.php?page=stylish_price_list_settings6.5344.70
Help /wp-admin/admin.php?page=stylish_price_list_help6.5340.04
SPL Diagnostic /wp-admin/admin.php?page=spl-tabs-diagnostic6.5342.49

Server storage [IO: ▲6.31MB] [DB: ▲1.50MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 147 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
googlefonts_options
googlefonts_data
stylish_price_list_version
widget_theysaidso_widget
widget_recent-comments

Browser metrics 75% from 4 tests

Checking browser requirements for Stylish Price List - Price Table Builder & QR Code Restaurant Menu
Please improve the following
  • Nodes: It is recommended to reduce the number of DOM nodes under 25,000 (currently 55,894 on /wp-admin/admin.php?page=spl-tabs-new)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲23714.28 ▼0.061.61 ▼0.3342.48 ▼1.93
Dashboard /wp-admin2,363 ▲1856.10 ▲0.40117.00 ▲18.1191.69 ▲53.69
Posts /wp-admin/edit.php2,309 ▲2063.30 ▲1.3553.39 ▲17.3678.37 ▲47.26
Add New Post /wp-admin/post-new.php6,232 ▲4,70619.11 ▼4.12866.68 ▲169.8439.79 ▼16.68
Media Library /wp-admin/upload.php1,449 ▲523.97 ▼0.2484.54 ▼22.5773.56 ▲29.16
Video Tutorials /wp-admin/admin.php?page=stylish_price_list_video3,31429.84764.90112.25
All Lists /wp-admin/admin.php?page=spl-tabs2,0113.4445.6981.94
License /wp-admin/admin.php?page=stylish_price_list_license1,1953.3643.8582.38
Add New List /wp-admin/admin.php?page=spl-tabs-new55,8944.13197.5584.53
Settings /wp-admin/admin.php?page=stylish_price_list_settings1,1113.4642.5071.45
Help /wp-admin/admin.php?page=stylish_price_list_help1,1113.4344.9460.89
SPL Diagnostic /wp-admin/admin.php?page=spl-tabs-diagnostic1,9643.4542.1673.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • googlefonts_options
    • stylish_price_list_version
    • widget_recent-posts
    • theysaidso_admin_options
    • googlefonts_data

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=spl-tabs-new
    • > Notice in wp-content/plugins/stylish-price-list/admin/tabs/views/tabs-form/pricelist-form.php+43
    Undefined index: license

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/stylish-price-list/wp-google-fonts/other_plugins.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: table builder, pricing table, restaurant menu, price list builder, qr code menu

stylish-price-list/stylish-price-list.php 92% from 13 tests

The main file in "Stylish Price List - Price Table Builder & QR Code Restaurant Menu" v. 7.0.18 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin38,524 lines of code in 91 files:
LanguageFilesBlank linesComment linesLines of code
PHP368,95998418,279
CSS11273939,686
JavaScript107013173,891
SVG1002,671
Sass1434341,768
LESS1434441,758
PO File5200504471

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity31.00
▷ Minimum class complexity1.00
▷ Maximum class complexity150.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods122
▷ Static methods54.10%
▷ Public methods9981.15%
▷ Protected methods21.64%
▷ Private methods2117.21%
Functions89
▷ Named functions7786.52%
▷ Anonymous functions1213.48%
Constants19
▷ Global constants19100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 PNG files occupy 3.39MB with 2.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/tooltip-images/remove-all-tab.png221.23KB76.19KB▼ 65.56%
assets/images/Stylish-Price-List-Logo-418x134.png4.68KB2.45KB▼ 47.71%
assets/images/question3.png217.24KB83.02KB▼ 61.79%
assets/images/Style2.png201.33KB75.01KB▼ 62.75%
assets/images/tooltip-images/break-line.png203.42KB69.03KB▼ 66.07%