84% daisycon-woocommerce-pixel

Code Review | Daisycon WooCommerce Pixel

WordPress plugin Daisycon WooCommerce Pixel scored 84% from 54 tests.

About plugin

  • Plugin page: daisycon-woocomme...
  • Plugin version: 1.6.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 18, 2018
  • Latest release: Feb 28, 2023
  • Number of updates: 22
  • Update frequency: every 69.7 days
  • Top authors: Daisycon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 4,085 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▼0.67ms] Passed 4 tests

An overview of server-side resources used by Daisycon WooCommerce Pixel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1945.15 ▲1.79
Dashboard /wp-admin3.57 ▲0.2746.48 ▼3.08
Posts /wp-admin/edit.php3.62 ▲0.2746.39 ▲0.85
Add New Post /wp-admin/post-new.php6.11 ▲0.2297.32 ▲11.42
Media Library /wp-admin/upload.php3.43 ▲0.2035.67 ▼2.25
Daisycon WooCommerce pixel /wp-admin/options-general.php?page=daisycon-woocommerce3.4033.12

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Daisycon WooCommerce Pixel
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.28 ▼0.871.45 ▼0.4042.20 ▼5.68
Dashboard /wp-admin2,238 ▲505.86 ▲0.98107.38 ▼10.2846.31 ▼1.53
Posts /wp-admin/edit.php2,129 ▲402.15 ▲0.1641.93 ▲5.0840.69 ▲6.11
Add New Post /wp-admin/post-new.php1,553 ▲2023.33 ▲0.03562.39 ▼117.9749.61 ▼3.91
Media Library /wp-admin/upload.php1,423 ▲354.26 ▲0.0495.18 ▼16.3844.51 ▼0.57
Daisycon WooCommerce pixel /wp-admin/options-general.php?page=daisycon-woocommerce1,1252.2127.1032.87

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

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

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Daisycon_Woocommerce_Admin' not found in wp-content/plugins/daisycon-woocommerce-pixel/admin/class-daisycon-woocommerce-settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/daisycon-woocommerce-pixel/public/partials/daisycon-woocommerce-public-display.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/daisycon-woocommerce-pixel/admin/partials/daisycon-woocommerce-admin-display.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: conversion pixel, woocommerce, pixel, daisycon woocommerce pixel, daisycon

daisycon-woocommerce-pixel/daisycon-woocommerce.php 85% from 13 tests

"Daisycon WooCommerce Pixel" version 1.6.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("daisycon-woocommerce-pixel.php" instead of "daisycon-woocommerce.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,262 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13223858932
PO File24854144
SVG101105
CSS17045
JavaScript113336

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods58
▷ Static methods23.45%
▷ Public methods3662.07%
▷ Protected methods1627.59%
▷ Private methods610.34%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/logo_small.png3.71KB2.33KB▼ 37.23%
assets/screenshot-1.png39.72KB43.60KB0.00%