84% wowrestro

Code Review | WOWRestro - Online Ordering System For WooCommerce

WordPress plugin WOWRestro - Online Ordering System For WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: wowrestro
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 8, 2021
  • Latest release: Sep 4, 2023
  • Number of updates: 26
  • Update frequency: every 36.2 days
  • Top authors: sagarseth9 (80.77%)Magnigenie (23.08%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.27ms] Passed 4 tests

Analyzing server-side resources used by WOWRestro - Online Ordering System For WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.73 ▲5.47
Dashboard /wp-admin3.31 ▲0.0143.97 ▼2.95
Posts /wp-admin/edit.php3.36 ▲0.0048.35 ▲2.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.38 ▼15.43
Media Library /wp-admin/upload.php3.23 ▲0.0033.05 ▼4.78

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 97 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WOWRestro - Online Ordering System For WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▼0.271.77 ▲0.1944.98 ▲2.89
Dashboard /wp-admin2,201 ▲335.55 ▼0.0480.52 ▼5.8237.79 ▼1.65
Posts /wp-admin/edit.php2,106 ▲61.98 ▼0.0034.30 ▲1.0836.60 ▼3.58
Add New Post /wp-admin/post-new.php1,532 ▲423.04 ▼0.13659.66 ▲10.9750.93 ▼11.42
Media Library /wp-admin/upload.php1,406 ▲124.20 ▼0.0192.94 ▼3.9139.82 ▼6.78

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wowrestro/includes/admin/views/wowrestro-licenses-settings-fields.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: delivery system, delivery, food ordering, takeaway system, online food ordering...

wowrestro/wowrestro.php 92% from 13 tests

This is the main PHP file of "WOWRestro - Online Ordering System For WooCommerce" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0")

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 plugin15,753 lines of code in 86 files:
LanguageFilesBlank linesComment linesLines of code
CSS10435537,371
PHP621,8812,1185,586
JavaScript116392452,759
SVG30037

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity24.96
▷ Minimum class complexity1.00
▷ Maximum class complexity133.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes14.17%
▷ Concrete classes2395.83%
▷ Final classes14.35%
Methods178
▷ Static methods6234.83%
▷ Public methods16089.89%
▷ Protected methods00.00%
▷ Private methods1810.11%
Functions65
▷ Named functions65100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/empty-cart.png11.75KB6.22KB▼ 47.06%