78% whole-cart-enquiry

Code Review | Whole Enquiry Cart for WooCommerce

WordPress plugin Whole Enquiry Cart for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: whole-cart-enquiry
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2022
  • Latest release: Jun 27, 2023
  • Number of updates: 9
  • Update frequency: every 59.8 days
  • Top authors: idealwebdesignlk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /627 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.51ms] Passed 4 tests

This is a short check of server-side resources used by Whole Enquiry Cart for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.04 ▼2.85
Dashboard /wp-admin3.35 ▲0.0048.58 ▼19.55
Posts /wp-admin/edit.php3.40 ▲0.0450.84 ▲0.33
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.44 ▼15.46
Media Library /wp-admin/upload.php3.27 ▲0.0436.90 ▼0.18
Woo Whole Cart Enquiry /wp-admin/options-general.php?page=woowhole3.2132.52

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 12 new options
New WordPress options
widget_theysaidso_widget
woowhole_from_emailaddress
widget_recent-posts
can_compress_scripts
woowhole_failed_msg
db_upgraded
woowhole_title
theysaidso_admin_options
widget_recent-comments
woowhole_success_msg
...

Browser metrics Passed 4 tests

A check of browser resources used by Whole Enquiry Cart for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6213.23 ▼1.152.14 ▲0.2039.99 ▼4.98
Dashboard /wp-admin2,225 ▲225.79 ▲0.89101.21 ▼7.5742.07 ▼2.36
Posts /wp-admin/edit.php2,104 ▲72.05 ▲0.0039.96 ▲2.9935.47 ▲0.33
Add New Post /wp-admin/post-new.php1,549 ▲1823.64 ▲0.59597.96 ▼55.3747.96 ▼2.97
Media Library /wp-admin/upload.php1,398 ▼54.20 ▼0.0498.02 ▼4.6044.01 ▼0.57
Woo Whole Cart Enquiry /wp-admin/options-general.php?page=woowhole8642.0325.0028.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 WordPress options detected upon uninstall: 12 options
    • can_compress_scripts
    • theysaidso_admin_options
    • woowhole_title
    • widget_recent-comments
    • woowhole_from_name
    • woowhole_success_msg
    • widget_theysaidso_widget
    • woowhole_from_emailaddress
    • woowhole_failed_msg
    • widget_recent-posts
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=woowhole
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=woowhole
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× 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/whole-cart-enquiry/admin.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/whole-cart-enquiry/frontend.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/whole-cart-enquiry/admin.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: email cart, enquiry cart, woocommerce enquiry, enquiry, woocommerce inquiry...

whole-cart-enquiry/whole-enquiry-cart-page.php 92% from 13 tests

"Whole Enquiry Cart for WooCommerce" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("whole-cart-enquiry.php" instead of "whole-enquiry-cart-page.php")

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
Success! There were no dangerous files found in this plugin256 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32913142
CSS1180103
JavaScript16011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin