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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 40.26 ▼1.04 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.63 ▼4.41 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 42.63 ▼6.52 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 78.34 ▼21.28 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.31 ▲3.27 |
🛡 ClickGUARD /wp-admin/options-general.php?page=clickguard | 3.27 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.26 ▼1.48 | 4.55 ▲2.56 | 44.62 ▼1.68 |
Dashboard /wp-admin | 2,207 ▲19 | 4.88 ▼1.02 | 108.14 ▲6.73 | 44.70 ▲6.81 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.01 ▲0.01 | 35.37 ▼0.45 | 37.32 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,536 ▼0 | 23.20 ▼0.06 | 665.23 ▲61.50 | 59.31 ▼11.46 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.16 ▼0.03 | 97.87 ▲4.75 | 45.37 ▲5.89 |
🛡 ClickGUARD /wp-admin/options-general.php?page=clickguard | 1,090 | 1.92 | 28.49 | 45.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 253 | 214 | 1,610 |
PHP | 3 | 67 | 63 | 479 |
CSS | 2 | 16 | 3 | 63 |
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 code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 5 | 33.33% |
▷ Anonymous functions | 10 | 66.67% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/account_id.png | 34.90KB | 11.58KB | ▼ 66.82% |
assets/logo-new.png | 14.71KB | 6.23KB | ▼ 57.65% |
assets/social/youtube.png | 9.10KB | 5.35KB | ▼ 41.27% |
assets/panel_bg.png | 7.17KB | 2.66KB | ▼ 62.94% |
assets/social/facebook.png | 13.27KB | 6.92KB | ▼ 47.87% |