74% quasar-form-woo-add-on

Code Review | Quasar form - add-on for WooCommerce

WordPress plugin Quasar form - add-on for WooCommerce scored74%from 54 tests.

About plugin

  • Plugin page: quasar-form-woo-a...
  • Plugin version: 1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2
  • WordPress version: 6.3.1
  • First release: Dec 7, 2021
  • Latest release: Apr 4, 2023
  • Number of updates: 15
  • Update frequency: every 32.9 days
  • Top authors: nucleusgenius (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,149 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.55ms] Passed 4 tests

A check of server-side resources used by Quasar form - add-on for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1044.57 ▲4.62
Dashboard /wp-admin3.38 ▲0.0846.88 ▼5.36
Posts /wp-admin/edit.php3.43 ▲0.0748.33 ▲2.90
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.85 ▼16.37
Media Library /wp-admin/upload.php3.30 ▲0.0737.42 ▲7.90

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 54 new files
Database: 1 new table, 6 new options
New tables
wp_quasarform_shop
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Quasar form - add-on for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15513.60 ▼0.995.63 ▲3.6644.17 ▼0.89
Dashboard /wp-admin2,218 ▲305.86 ▼0.05102.54 ▼11.1880.17 ▲33.19
Posts /wp-admin/edit.php2,104 ▲152.05 ▲0.0232.72 ▼5.4032.73 ▼2.89
Add New Post /wp-admin/post-new.php1,680 ▲14422.44 ▼0.69719.42 ▲116.0864.21 ▲8.47
Media Library /wp-admin/upload.php1,403 ▲124.15 ▼0.1398.30 ▼2.7447.84 ▲5.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_quasarform_shop
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quasar-form-woo-add-on/quasar-form-shop-main.php:19
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/quasar-form-woo-add-on/admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
2 plugin tags: buy one click woocommerce, woocommerce form

quasar-form-woo-add-on/quasar-form-shop-main.php 92% from 13 tests

The principal PHP file in "Quasar form - add-on for WooCommerce" v. 1.7 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quasar-form-woo-add-on.php" instead of "quasar-form-shop-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin10,039 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
Sass1434341,768
LESS1434441,758
PHP2248551,262
CSS4197101,106
JavaScript42242351,097
PO File1137155310
Markdown127067

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon2.png0.42KB0.29KB▼ 29.58%
(invalid) assets/img/img-demo.png13.84KB0.00KB▼ 100.00%