90% food-store

Code Review | Food Store - Online Food Delivery & Pickup

WordPress plugin Food Store - Online Food Delivery & Pickup scored90%from 54 tests.

About plugin

  • Plugin page: food-store
  • Plugin version: 1.4.8
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 27, 2020
  • Latest release: Oct 14, 2023
  • Number of updates: 81
  • Update frequency: every 15.3 days
  • Top authors: wpscripts (100%)

Code review

54 tests

User reviews

44 reviews

Install metrics

2,000+ active /76,473 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.69ms] Passed 4 tests

Analyzing server-side resources used by Food Store - Online Food Delivery & Pickup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0435.75 ▼1.89
Dashboard /wp-admin3.35 ▲0.0046.45 ▼8.77
Posts /wp-admin/edit.php3.46 ▲0.1043.44 ▼4.35
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.16 ▼7.76
Media Library /wp-admin/upload.php3.27 ▲0.0436.96 ▲1.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 319 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Food Store - Online Food Delivery & Pickup
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5014.33 ▼0.231.64 ▲0.1739.06 ▼2.37
Dashboard /wp-admin2,199 ▲225.55 ▼0.1191.31 ▲4.9841.50 ▲3.21
Posts /wp-admin/edit.php2,107 ▲42.02 ▲0.0236.75 ▼2.0932.61 ▼2.19
Add New Post /wp-admin/post-new.php1,533 ▲523.17 ▲0.15676.47 ▲0.0354.64 ▼0.73
Media Library /wp-admin/upload.php1,407 ▲74.11 ▼0.1297.32 ▼9.0242.79 ▼3.07

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: restaurant menu, food ordering, restaurant ordering system, food delivery, restaurant...

food-store/food-store.php Passed 13 tests

"Food Store - Online Food Delivery & Pickup" version 1.4.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
105 characters long description:
Food Store is complete online food ordering platform with all your favourite WooCommerce functionalities.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected47,563 lines of code in 248 files:
LanguageFilesBlank linesComment linesLines of code
PHP1979,93319,74239,576
JavaScript187304283,817
CSS25471403,331
PO File1169191413
Markdown1680214
SVG401169
JSON10027
XML13016

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity70.58
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes72
▷ Abstract classes34.17%
▷ Concrete classes6995.83%
▷ Final classes11.45%
Methods1,448
▷ Static methods27318.85%
▷ Public methods1,04271.96%
▷ Protected methods181.24%
▷ Private methods38826.80%
Functions176
▷ Named functions17599.43%
▷ Anonymous functions10.57%
Constants151
▷ Global constants10468.87%
▷ Class constants4731.13%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/freemius/assets/img/advanced-delivery-pickup.png14.33KB6.73KB▼ 53.01%
includes/freemius/assets/img/wfs-whatsapp-cart.png14.33KB6.73KB▼ 53.01%
includes/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
includes/freemius/assets/img/food-store.png14.33KB6.73KB▼ 53.01%
includes/freemius/assets/img/food-store-tips.png14.33KB6.73KB▼ 53.01%