73% request-a-quote-pro-by-aavoya

Code Review | Request a Quote Pro by Aavoya

WordPress plugin Request a Quote Pro by Aavoya scored73%from 54 tests.

About plugin

  • Plugin page: request-a-quote-p...
  • Plugin version: 2022.11
  • PHP compatiblity: 7.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.2
  • WordPress version: 6.3.1
  • First release: Nov 2, 2022
  • Latest release: Nov 3, 2022
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: Pijush_Gupta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /491 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.59MB] [CPU: ▼2.11ms] Passed 4 tests

A check of server-side resources used by Request a Quote Pro by Aavoya
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6348.56 ▲9.32
Dashboard /wp-admin3.91 ▲0.6151.81 ▲0.78
Posts /wp-admin/edit.php3.96 ▲0.6052.66 ▲3.03
Add New Post /wp-admin/post-new.php6.43 ▲0.5492.03 ▼13.19
Media Library /wp-admin/upload.php3.83 ▲0.6040.79 ▲0.96

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 547 new files
Database: no new tables, 8 new options
New WordPress options
aavoya_wraq_random_key
theysaidso_admin_options
widget_recent-comments
aavoya_wraq_global_settings
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Request a Quote Pro by Aavoya
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.29 ▼1.353.07 ▲1.2560.22 ▲16.35
Dashboard /wp-admin2,218 ▲294.86 ▼1.00106.78 ▼7.2145.82 ▲3.95
Posts /wp-admin/edit.php2,101 ▲92.04 ▲0.0336.66 ▼5.7334.47 ▼4.70
Add New Post /wp-admin/post-new.php1,543 ▲1523.17 ▲4.81666.53 ▲44.0752.31 ▲0.51
Media Library /wp-admin/upload.php1,403 ▲124.17 ▼0.04100.56 ▼1.2847.18 ▲5.51

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • aavoya_wraq_random_key
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • aavoya_wraq_global_settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 67× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Cloner\\ClonerInterface' not found in wp-content/plugins/request-a-quote-pro-by-aavoya/vendor/symfony/var-dumper/Cloner/AbstractCloner.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Tiptap\\Core\ode' not found in wp-content/plugins/request-a-quote-pro-by-aavoya/vendor/ueberdosis/tiptap-php/src/Nodes/OrderedList.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Tiptap\odes\\TableCell' not found in wp-content/plugins/request-a-quote-pro-by-aavoya/vendor/ueberdosis/tiptap-php/src/Nodes/TableHeader.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Command\\Descriptor\\DumpDescriptorInterface' not found in wp-content/plugins/request-a-quote-pro-by-aavoya/vendor/symfony/var-dumper/Command/Descriptor/CliDescriptor.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Tiptap\\Core\\Mark' not found in wp-content/plugins/request-a-quote-pro-by-aavoya/vendor/ueberdosis/tiptap-php/src/Marks/Link.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Tiptap\\Core\ode' not found in wp-content/plugins/request-a-quote-pro-by-aavoya/vendor/ueberdosis/tiptap-php/src/Nodes/Heading.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\ConstStub' not found in wp-content/plugins/request-a-quote-pro-by-aavoya/vendor/symfony/var-dumper/Caster/LinkStub.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Tiptap\\Core\\Mark' not found in wp-content/plugins/request-a-quote-pro-by-aavoya/vendor/ueberdosis/tiptap-php/src/Marks/Subscript.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Tiptap\\Core\ode' not found in wp-content/plugins/request-a-quote-pro-by-aavoya/vendor/ueberdosis/tiptap-php/src/Nodes/Paragraph.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Tiptap\\Core\\Extension' not found in wp-content/plugins/request-a-quote-pro-by-aavoya/vendor/ueberdosis/tiptap-php/src/Core/Mark.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Form Page), #2 (Form Notification(Email) Setting - User), #3 (Form Notification(Email) Setting - Admin), #4 (Submitted form(quote) Entries), #5 (Form Setting Page), #6 (Request a Quote Button Setting), #7 (Assigning button to WooCommerce Products), #8 (Assigning button to WooCommerce Category), #9 (Help/FAQ)
  • Tags: You are using too many tags: 19 tag instead of maximum 10
The official readme.txt might help

request-a-quote-pro-by-aavoya/request-a-quote-pro-by-aavoya.php Passed 13 tests

The primary PHP file in "Request a Quote Pro by Aavoya" version 2022.11 is used by WordPress to initiate all plugin functionality
126 characters long description:
Add Request a quote button on single products or on Product Categories or Product tags. Comes with Drag and Drop Form builder.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
These items require your attention
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/request-a-quote-pro-by-aavoya/vendor/bin/var-dump-server.bat
54,732 lines of code in 524 files:
LanguageFilesBlank linesComment linesLines of code
JSON1990028,741
PHP2113,3424,32318,379
CSS941,3156996,314
Markdown1340101,101
JavaScript5328176
XML10016
DOS Batch1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity13.48
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces35
Interfaces6
Traits2
Classes178
▷ Abstract classes52.81%
▷ Concrete classes17397.19%
▷ Final classes158.67%
Methods788
▷ Static methods38749.11%
▷ Public methods64681.98%
▷ Protected methods243.05%
▷ Private methods11814.97%
Functions140
▷ Named functions9970.71%
▷ Anonymous functions4129.29%
Constants84
▷ Global constants1517.86%
▷ Class constants6982.14%
▷ Public constants4159.42%

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
11 PNG files occupy 1.34MB with 0.75MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/dist/image/help2-2.png209.07KB72.67KB▼ 65.24%
assets/dist/image/help4-2.png140.11KB60.00KB▼ 57.18%
vendor/scrivo/highlight.php/styles/brown-papersq.png17.77KB9.92KB▼ 44.16%
assets/dist/image/help4-1.png166.48KB67.62KB▼ 59.38%
assets/dist/image/help1-2.png128.38KB56.65KB▼ 55.87%