79% clickguard

Code Review | ClickGUARD – Click Fraud Prevention & Intent Based Campaign Optimization

WordPress plugin ClickGUARD – Click Fraud Prevention & Intent Based Campaign Optimization scored79%from 54 tests.

About plugin

  • Plugin page: clickguard
  • Plugin version: 2.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0
  • WordPress version: 6.3.1
  • First release: Jan 24, 2018
  • Latest release: Jan 25, 2023
  • Number of updates: 19
  • Update frequency: every 96.2 days
  • Top authors: clickguard (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /6,864 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.31ms] Passed 4 tests

This is a short check of server-side resources used by ClickGUARD – Click Fraud Prevention & Intent Based Campaign Optimization
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0340.26 ▼1.04
Dashboard /wp-admin3.32 ▲0.0244.63 ▼4.41
Posts /wp-admin/edit.php3.37 ▲0.0242.63 ▼6.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0278.34 ▼21.28
Media Library /wp-admin/upload.php3.24 ▲0.0234.31 ▲3.27
🛡 ClickGUARD /wp-admin/options-general.php?page=clickguard3.2731.38

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
cg_version
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by ClickGUARD – Click Fraud Prevention & Intent Based Campaign Optimization
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.26 ▼1.484.55 ▲2.5644.62 ▼1.68
Dashboard /wp-admin2,207 ▲194.88 ▼1.02108.14 ▲6.7344.70 ▲6.81
Posts /wp-admin/edit.php2,090 ▲12.01 ▲0.0135.37 ▼0.4537.32 ▲2.80
Add New Post /wp-admin/post-new.php1,536 ▼023.20 ▼0.06665.23 ▲61.5059.31 ▼11.46
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.0397.87 ▲4.7545.37 ▲5.89
🛡 ClickGUARD /wp-admin/options-general.php?page=clickguard1,0901.9228.4945.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • cg_version

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=clickguard
    • > Notice in wp-content/plugins/clickguard/tmpl/admin.php+145
    Undefined index: links
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=clickguard
    • > Notice in wp-content/plugins/clickguard/tmpl/admin.php+145
    Trying to access array offset on value of type null

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
  • 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/clickguard/tmpl/admin.php:21
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/clickguard/tmpl/widget.php on line 36
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/clickguard/tmpl/widget.php on line 37
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/clickguard/tmpl/widget.php on line 34
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/clickguard/tmpl/widget.php on line 35
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/clickguard/tmpl/widget.php on line 37
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/clickguard/tmpl/widget.php on line 35
    • > PHP Notice
      Undefined variable: config in wp-content/plugins/clickguard/tmpl/widget.php on line 20
    • > PHP Notice
      Undefined variable: date_range in wp-content/plugins/clickguard/tmpl/widget.php on line 20
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/clickguard/tmpl/widget.php on line 37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
7 plugin tags: ad fraud, prevention, ppc fraud, detection, click fraud...

clickguard/clickguard.php Passed 13 tests

The main PHP file in "ClickGUARD – Click Fraud Prevention & Intent Based Campaign Optimization" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
119 characters long description:
Removes the pain and frustration of losing money to click fraud. Protects Google Ads campaigns from wasteful ad clicks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,152 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32532141,610
PHP36763479
CSS216363

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions533.33%
▷ Anonymous functions1066.67%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/account_id.png34.90KB11.58KB▼ 66.82%
assets/logo-new.png14.71KB6.23KB▼ 57.65%
assets/social/youtube.png9.10KB5.35KB▼ 41.27%
assets/panel_bg.png7.17KB2.66KB▼ 62.94%
assets/social/facebook.png13.27KB6.92KB▼ 47.87%