10% woo-delivery-club-export

Code Review | Woo Delivery-club Export

WordPress plugin Woo Delivery-club Export scored10%from 54 tests.

About plugin

  • Plugin page: woo-delivery-club...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.5
  • WordPress version: 6.3.1
  • First release: May 4, 2018
  • Latest release: Aug 26, 2018
  • Number of updates: 7
  • Update frequency: every 16.4 days
  • Top authors: carrioncrow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,058 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Error in wp-content/plugins/woo-delivery-club-export/libs/makexml.php+103
    Uncaught Error: Call to undefined function get_woocommerce_currency() in wp-content/plugins/woo-delivery-club-export/libs/makexml.php:103
    Stack trace:
    #0 wp-content/plugins/woo-delivery-club-export/libs/makexml.php(22): WooDeliveryClubExport->checkCurrency()
    #1 wp-content/plugins/woo-delivery-club-export/index.php(78): WooDeliveryClubExport->generateData()
    #2 wp-content/plugins/woo-delivery-club-export/index.php(21): WDCExportUpdateXML()
    #3 wp-includes/class-wp-hook.php(310): WDCExportActivate()
    #4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #5 wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 wp-admin/includes/plugin.php(693): do_action()

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

An overview of server-side resources used by Woo Delivery-club Export
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.90 ▼1.88
Dashboard /wp-admin3.31 ▼0.0448.81 ▼14.38
Posts /wp-admin/edit.php3.36 ▲0.0050.80 ▲2.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.05 ▼23.05
Media Library /wp-admin/upload.php3.23 ▲0.0037.93 ▼0.18

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
cronDCXML
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Delivery-club Export
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.66 ▼0.935.46 ▲3.5043.24 ▼6.36
Dashboard /wp-admin2,206 ▲185.08 ▼0.78103.50 ▼0.0645.16 ▲3.31
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0039.45 ▼1.0534.80 ▼3.55
Add New Post /wp-admin/post-new.php1,542 ▲918.27 ▼4.87609.27 ▼76.8865.14 ▲9.63
Media Library /wp-admin/upload.php1,385 ▲34.20 ▲0.0097.36 ▼6.1142.04 ▼1.72

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • cronDCXML
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% 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 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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woo-delivery-club-export/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: xml, export, delivery club

woo-delivery-club-export/index.php 92% from 13 tests

Analyzing the main PHP file in "Woo Delivery-club Export" version 1.1.2
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-delivery-club-export.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin476 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27830321
Pascal172202132
CSS11023

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity7.38
▷ Minimum method complexity2.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods225.00%
▷ Protected methods00.00%
▷ Private methods675.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin