84% mobile-enquiry-and-alert-message-for-woocommerce

Code Review | Mobile Enquiry and Alert Message for Woocommerce

WordPress plugin Mobile Enquiry and Alert Message for Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: mobile-enquiry-an...
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2022
  • Latest release: Nov 20, 2023
  • Number of updates: 11
  • Update frequency: every 56.6 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,460 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.52ms] Passed 4 tests

Analyzing server-side resources used by Mobile Enquiry and Alert Message for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.17 ▼11.34
Dashboard /wp-admin3.31 ▲0.0046.82 ▼2.79
Posts /wp-admin/edit.php3.36 ▲0.0044.90 ▼0.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.45 ▲4.24
Media Library /wp-admin/upload.php3.23 ▲0.0031.56 ▼3.07

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Mobile Enquiry and Alert Message for Woocommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.10 ▼0.241.60 ▼0.1039.31 ▼4.98
Dashboard /wp-admin2,198 ▲215.56 ▼0.0993.85 ▲0.0541.96 ▼0.12
Posts /wp-admin/edit.php2,097 ▼01.97 ▲0.0138.75 ▲0.8738.12 ▲4.49
Add New Post /wp-admin/post-new.php1,526 ▼023.59 ▲0.72575.15 ▼86.4044.91 ▼1.54
Media Library /wp-admin/upload.php1,397 ▼64.13 ▼0.1095.39 ▼6.7941.07 ▼0.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 36× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      include(): Failed opening 'MMWEA_PLUGIN_DIR_PATHadmin/setting/checkout-page-setting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/mobile-enquiry-and-alert-message-for-woocommerce/admin/options.php on line 6
    • > PHP Warning
      include(): Failed opening 'MMWEA_PLUGIN_DIR_PATHadmin/setting/thankyou-page-setting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/mobile-enquiry-and-alert-message-for-woocommerce/admin/options.php on line 7
    • > PHP Warning
      include(): Failed opening 'MMWEA_PLUGIN_DIR_PATHadmin/setting/design-elements-setting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/mobile-enquiry-and-alert-message-for-woocommerce/admin/options.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-enquiry-and-alert-message-for-woocommerce/customizer/styles.php:173
    • > PHP Warning
      Use of undefined constant MMWEA_PLUGIN_DIR_PATH - assumed 'MMWEA_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mobile-enquiry-and-alert-message-for-woocommerce/admin/options.php on line 4
    • > PHP Warning
      include(MMWEA_PLUGIN_DIR_PATHadmin/setting/general-setting.php): failed to open stream: No such file or directory in wp-content/plugins/mobile-enquiry-and-alert-message-for-woocommerce/admin/options.php on line 3
    • > PHP Warning
      Use of undefined constant MMWEA_PLUGIN_DIR_PATH - assumed 'MMWEA_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mobile-enquiry-and-alert-message-for-woocommerce/admin/options.php on line 3
    • > PHP Warning
      include(MMWEA_PLUGIN_DIR_PATHadmin/setting/account-page-setting.php): failed to open stream: No such file or directory in wp-content/plugins/mobile-enquiry-and-alert-message-for-woocommerce/admin/options.php on line 8
    • > PHP Warning
      Use of undefined constant MMWEA_PLUGIN_DIR_PATH - assumed 'MMWEA_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mobile-enquiry-and-alert-message-for-woocommerce/admin/options.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-enquiry-and-alert-message-for-woocommerce/customizer/customizer-library/style-builder.php:267

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 93% from 29 tests

readme.txt 94% 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: These screenshots require images: #1 (General setting), #2 (Single product page setting), #3 (Cart page setting), #4 (Checkout page setting), #5 (Order page seting), #6 (Myaccount page setting), #7 (Design element setting), #8 (Whatsapp message body for single product), #9 (Whatsapp message body for Cart & Checkout), #10 (Whatsapp message body for Order), #11 (Whatsapp message body for my account)
Please take inspiration from this readme.txt

mobile-enquiry-and-alert-message-for-woocommerce/mobile-enquiry-and-alert-message-for-woocommerce.php 92% from 13 tests

The principal PHP file in "Mobile Enquiry and Alert Message for Woocommerce" v. 1.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)

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 detected7,500 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,2983484,911
PHP177162732,425
CSS3366163
SVG1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity19.50
▷ Minimum class complexity2.00
▷ Maximum class complexity37.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods63
▷ Static methods23.17%
▷ Public methods6196.83%
▷ Protected methods00.00%
▷ Private methods23.17%
Functions28
▷ Named functions1864.29%
▷ Anonymous functions1035.71%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin