83% delivery-harmony

Code Review | Delivery Harmony - low flat delivery

WordPress plugin Delivery Harmony - low flat delivery scored83%from 54 tests.

About plugin

  • Plugin page: delivery-harmony
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.2-5.9
  • WordPress version: 6.3.1
  • First release: Aug 24, 2021
  • Latest release: Feb 1, 2022
  • Number of updates: 11
  • Update frequency: every 15.1 days
  • Top authors: deliveryharmony (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /386 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Delivery Harmony - low flat delivery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.04 ▲2.24
Dashboard /wp-admin3.25 ▼0.0934.93 ▼23.60
Posts /wp-admin/edit.php3.48 ▲0.1244.73 ▼2.50
Add New Post /wp-admin/post-new.php5.97 ▲0.0990.98 ▲0.88
Media Library /wp-admin/upload.php3.29 ▲0.0635.14 ▼1.21
Delivery Harmony /wp-admin/admin.php?page=say2eat-delivery-harmony3.2531.27

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
recovery_mode_email_last_sent
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Delivery Harmony - low flat delivery
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,563 ▼1,18310.40 ▼4.185.42 ▲3.8736.89 ▼4.36
Dashboard /wp-admin850 ▼1,3381.47 ▼3.4518.62 ▼85.4821.16 ▼21.72
Posts /wp-admin/edit.php2,099 ▲132.03 ▲0.0347.65 ▲7.3043.06 ▲8.27
Add New Post /wp-admin/post-new.php6,288 ▲4,75525.04 ▲1.63914.35 ▲208.2837.77 ▼18.36
Media Library /wp-admin/upload.php1,395 ▲44.28 ▲0.06100.71 ▲2.4440.47 ▼0.10
Delivery Harmony /wp-admin/admin.php?page=say2eat-delivery-harmony7472.0829.3520.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • can_compress_scripts

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
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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/delivery-harmony/includes/controller.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delivery-harmony/includes/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delivery-harmony/includes/checkout.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/delivery-harmony/s2e_delivery_harmony.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: Please take inspiration from this readme.txt

delivery-harmony/s2e_delivery_harmony.php 85% from 13 tests

The primary PHP file in "Delivery Harmony - low flat delivery" version 1.4.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("delivery-harmony.php" instead of "s2e_delivery_harmony.php")
  • Description: The description should be shorter than 140 characters (currently 237 characters long)

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 detected752 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP46610357
JavaScript5544326
CSS351068
Markdown1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin