94% ads-invalid-click-protection

Code Review | Ads Invalid Click Protection

WordPress plugin Ads Invalid Click Protection scored 94% from 54 tests.

About plugin

  • Plugin page: ads-invalid-click...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.4
  • WordPress version: 5.9.2
  • First release: Jul 14, 2020
  • Latest release: Jul 3, 2021
  • Number of updates: 4
  • Update frequency: every 88.8 days
  • Top authors: ayoubkiass (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active / 14,504 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Ads Invalid Click Protection
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0251.44 ▲0.04
Dashboard /wp-admin3.43 ▲0.0231.89 ▼0.24
Posts /wp-admin/edit.php3.65 ▲0.0239.69 ▲3.44
Add New Post /wp-admin/post-new.php6.90 ▼0.0794.56 ▼1,187.41
Media Library /wp-admin/upload.php3.31 ▲0.0122.38 ▼5.29
Ads Invalid Click Protection /wp-admin/options-general.php?page=Ads_invalid_click_protection3.2824.63

Server storage [IO: ▲25.63MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • Total filesystem usage should be limited to 25MB (currently using 25.63MB)
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Ads Invalid Click Protection
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,910 ▲16816.62 ▲1.069.99 ▲4.572.69 ▲0.72
Dashboard /wp-admin2,897 ▲396.16 ▼0.01111.57 ▼19.30156.91 ▼3.60
Posts /wp-admin/edit.php2,693 ▲53.22 ▼0.0160.30 ▼1.04135.03 ▼5.74
Add New Post /wp-admin/post-new.php1,664 ▼415.64 ▼2.51396.45 ▲26.54150.70 ▼2.83
Media Library /wp-admin/upload.php1,703 ▲25.56 ▲0.03139.75 ▲3.71182.42 ▼3.48
Ads Invalid Click Protection /wp-admin/options-general.php?page=Ads_invalid_click_protection1,4332.7654.39174.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ads-invalid-click-protection/ads-invalid-click-protection.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 96% 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
6 plugin tags: google adsense, save adsense account, adsense, aicpess, invalid click...

ads-invalid-click-protection/ads-invalid-click-protection.php 92% from 13 tests

"Ads Invalid Click Protection" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 180 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin483 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin