84% bulk-quote-for-woocommerce-on-contact-form-7

Code Review | bulk quote for woocommerce on contact form 7

WordPress plugin bulk quote for woocommerce on contact form 7 scored84%from 54 tests.

About plugin

  • Plugin page: bulk-quote-for-wo...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Apr 11, 2016
  • Latest release: Feb 9, 2018
  • Number of updates: 4
  • Update frequency: every 167.0 days
  • Top authors: dubbofeng (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.99ms] Passed 4 tests

A check of server-side resources used by bulk quote for woocommerce on contact form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.62 ▼4.55
Dashboard /wp-admin3.31 ▼0.0445.13 ▼13.09
Posts /wp-admin/edit.php3.36 ▲0.0047.74 ▲2.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.48 ▼11.66
Media Library /wp-admin/upload.php3.23 ▲0.0033.43 ▲1.34

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

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

Browser metrics Passed 4 tests

Checking browser requirements for bulk quote for woocommerce on contact form 7
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼0.854.63 ▲3.0038.11 ▲0.33
Dashboard /wp-admin2,203 ▲125.83 ▲0.90106.50 ▲5.1040.30 ▲0.64
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0437.54 ▼1.4434.07 ▼2.61
Add New Post /wp-admin/post-new.php1,514 ▼017.67 ▲0.04671.42 ▲35.2754.29 ▲5.74
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0392.67 ▼4.1940.24 ▼3.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
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 add_action() in wp-content/plugins/bulk-quote-for-woocommerce-on-contact-form-7/bulk-quote-for-woocommerce-on-contact-form-7.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (http://www.dubbofeng.com/misc/woocommerce-bulk-quote-on-contact-form-7.jpg) image required
You can look at the official readme.txt

bulk-quote-for-woocommerce-on-contact-form-7/bulk-quote-for-woocommerce-on-contact-form-7.php Passed 13 tests

The primary PHP file in "bulk quote for woocommerce on contact form 7" version 1.2 is used by WordPress to initiate all plugin functionality
71 characters long description:
Add Woocommerce bulk quote fields to the popular Contact Form 7 plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected292 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12212292

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin