62% deal-deals-for-woocommerces-by-harimay

Code Review | Deal Deals for Woocommerces by Harimay

WordPress plugin Deal Deals for Woocommerces by Harimay scored62%from 54 tests.

About plugin

  • Plugin page: deal-deals-for-wo...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.3-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2016
  • Latest release: Jun 1, 2016
  • Number of updates: 2
  • Update frequency: every 7.5 days
  • Top authors: harimay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /640 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼1.67MB] [CPU: ▼56.08ms] Passed 4 tests

Analyzing server-side resources used by Deal Deals for Woocommerces by Harimay
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.344.78 ▼41.45
Dashboard /wp-admin2.40 ▼0.907.74 ▼47.02
Posts /wp-admin/edit.php2.40 ▼0.968.08 ▼43.05
Add New Post /wp-admin/post-new.php2.40 ▼3.497.16 ▼92.79
Media Library /wp-admin/upload.php2.40 ▼0.838.40 ▼31.67
Daily Deals Setting /wp-admin/edit.php?post_type=product&page=daily_deals_product_setting2.406.75
Daily Deals /wp-admin/edit.php?post_type=product&page=daily_deals_product_view2.406.44

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_harimay_dd_product_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Deal Deals for Woocommerces by Harimay
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲14313.79 ▼0.568.06 ▲5.5439.48 ▼3.03
Dashboard /wp-admin2,211 ▲204.87 ▼0.07109.71 ▲2.7139.28 ▼0.97
Posts /wp-admin/edit.php2,094 ▲52.07 ▲0.0341.41 ▼0.3233.84 ▼2.40
Add New Post /wp-admin/post-new.php1,530 ▲1123.48 ▲0.43699.27 ▼6.8274.62 ▲19.12
Media Library /wp-admin/upload.php1,390 ▲24.25 ▲0.05101.32 ▼6.4049.75 ▲3.34
Daily Deals Setting /wp-admin/edit.php?post_type=product&page=daily_deals_product_setting280.440.134.10
Daily Deals /wp-admin/edit.php?post_type=product&page=daily_deals_product_view280.440.093.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the woocommerce_quick-edit handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_harimay_dd_product_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=product&page=daily_deals_product_view
    • > User notice in wp-includes/functions.php+5905
    Function wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the woocommerce_quick-edit handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deal-deals-for-woocommerces-by-harimay/include/backend/custom-feilds-product/common-setting.php:203
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deal-deals-for-woocommerces-by-harimay/include/backend/submenu_page_setting/common-setting.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=product&page=daily_deals_product_setting
    • > Network (severe)
    wp-admin/edit.php?post_type=product&page=daily_deals_product_setting - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/edit.php?post_type=product&page=daily_deals_product_view
    • > Network (severe)
    wp-admin/edit.php?post_type=product&page=daily_deals_product_view - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: woocommerces

deal-deals-for-woocommerces-by-harimay/deal-deals-for-woocommerces-by-harimay.php 85% from 13 tests

Analyzing the main PHP file in "Deal Deals for Woocommerces by Harimay" version 0.0.1
The following require your attention:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,282 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP93421301,248
CSS21150691
JavaScript66446343

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.38
Average class complexity21.50
▷ Minimum class complexity4.00
▷ Maximum class complexity39.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions42
▷ Named functions42100.00%
▷ Anonymous functions00.00%
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 were not PNG files found in your plugin