99% aavoya-request-a-quote

Code Review | Aavoya Request a Quote

WordPress plugin Aavoya Request a Quote scored 99% from 54 tests.

About plugin

  • Plugin page: aavoya-request-a-...
  • Plugin version: 2021.12
  • PHP compatiblity: 7.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.2
  • WordPress version: 5.9.2
  • First release: Dec 14, 2021
  • Latest release: Dec 15, 2021
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: Pijush_Gupta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 187 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼299.54ms] Passed 4 tests

This is a short check of server-side resources used by Aavoya Request a Quote
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0156.65 ▲5.59
Dashboard /wp-admin3.41 ▲0.0132.76 ▼2.24
Posts /wp-admin/edit.php3.65 ▲0.0138.49 ▼1.16
Add New Post /wp-admin/post-new.php6.89 ▼0.08114.36 ▼1,191.11
Media Library /wp-admin/upload.php3.30 ▼0.0025.62 ▼3.65

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Aavoya Request a Quote
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,809 ▲5515.92 ▼0.045.88 ▼0.022.78 ▼0.10
Dashboard /wp-admin2,909 ▲486.15 ▼0.01119.02 ▼17.05160.80 ▼2.03
Posts /wp-admin/edit.php2,706 ▲183.24 ▲0.0065.05 ▼1.52147.20 ▲3.84
Add New Post /wp-admin/post-new.php1,679 ▲1820.87 ▼0.99485.59 ▲70.77193.89 ▲40.11
Media Library /wp-admin/upload.php1,712 ▲175.55 ▲0.01144.00 ▲5.45202.41 ▲9.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
6 plugin tags: popup, request a quote, woocommerce, product, button...

aavoya-request-a-quote/aavoya-woocommerce-request-a-quote.php 85% from 13 tests

The entry point to "Aavoya Request a Quote" version 2021.12 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("aavoya-request-a-quote.php" instead of "aavoya-woocommerce-request-a-quote.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected978 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP11394474974
CSS2222
JavaScript2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity9.60
▷ Minimum class complexity4.00
▷ Maximum class complexity20.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions2896.55%
▷ Anonymous functions13.45%
Constants6
▷ Global constants6100.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
No PNG files were detected