78% delivery-pickup-reminder-email-woocommerce

Code Review | Delivery pickup reminder email Woocommerce

WordPress plugin Delivery pickup reminder email Woocommerce scored78%from 54 tests.

About plugin

  • Plugin page: delivery-pickup-r...
  • Plugin version: 1.4.27
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.0
  • WordPress version: 6.3.1
  • First release: Apr 28, 2020
  • Latest release: Dec 1, 2023
  • Number of updates: 114
  • Update frequency: every 11.5 days
  • Top authors: rajeshsingh520 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,723 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
Installer ran successfully

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

Server-side resources used by Delivery pickup reminder email Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.16 ▲3.47
Dashboard /wp-admin3.31 ▲0.0051.03 ▲4.35
Posts /wp-admin/edit.php3.36 ▲0.0048.49 ▲2.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.10 ▼13.93
Media Library /wp-admin/upload.php3.24 ▲0.0032.72 ▲0.85

Server storage [IO: ▲0.44MB] [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: 38 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Delivery pickup reminder email Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.62 ▼0.111.88 ▼0.0943.27 ▲5.39
Dashboard /wp-admin2,198 ▲185.58 ▼0.0995.45 ▼3.7141.74 ▼1.34
Posts /wp-admin/edit.php2,100 ▲31.95 ▲0.0037.92 ▼1.1935.52 ▼1.22
Add New Post /wp-admin/post-new.php1,526 ▼023.13 ▲0.14675.28 ▲28.0769.52 ▲7.05
Media Library /wp-admin/upload.php1,400 ▼34.23 ▼0.0695.03 ▼5.6540.43 ▼2.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/delivery-pickup-reminder-email-woocommerce/includes/pisol.class.form.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/delivery-pickup-reminder-email-woocommerce/includes/includes.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delivery-pickup-reminder-email-woocommerce/admin/admin-email-alert-setting.php:124
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delivery-pickup-reminder-email-woocommerce/admin/email-alert-setting.php:104
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delivery-pickup-reminder-email-woocommerce/public/reminder-event.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed: The official readme.txt is a good inspiration

delivery-pickup-reminder-email-woocommerce/delivery-pickup-reminder-email-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "Delivery pickup reminder email Woocommerce" version 1.4.27
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
No dangerous file extensions were detected11,839 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
CSS32,025209,298
PHP214284041,366
SVG31521,131
JavaScript3106044

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity10.36
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods88
▷ Static methods33.41%
▷ Public methods8394.32%
▷ Protected methods00.00%
▷ Private methods55.68%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants4
▷ Global constants4100.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
No PNG files were detected