Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼2.00ms] Passed 4 tests
A check of server-side resources used by Ad Invalid Click Protector (AICP)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 39.75 ▲0.80 |
Dashboard /wp-admin | 3.49 ▲0.18 | 45.76 ▼8.45 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 48.52 ▲0.64 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 93.97 ▼1.00 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.89 ▲4.79 |
General Settings /wp-admin/admin.php?page=aicp_settings | 3.36 | 31.02 |
Banned User Details /wp-admin/admin.php?page=aicp_banned_user_details | 3.38 | 38.62 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_adsense_invalid_click_protector |
New WordPress options |
---|
widget_theysaidso_widget |
aicp_db_ver |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Ad Invalid Click Protector (AICP)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,041 ▲295 | 13.60 ▼1.15 | 11.62 ▲9.69 | 30.13 ▼25.41 |
Dashboard /wp-admin | 2,330 ▲154 | 4.84 ▼0.05 | 108.57 ▼2.20 | 45.71 ▼2.43 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.10 ▲0.08 | 40.72 ▲4.82 | 37.27 ▲1.22 |
Add New Post /wp-admin/post-new.php | 1,579 ▲42 | 23.24 ▲5.05 | 627.98 ▲14.05 | 58.91 ▲3.71 |
Media Library /wp-admin/upload.php | 1,448 ▲60 | 4.19 ▲0.01 | 99.29 ▲5.53 | 44.52 ▲2.94 |
General Settings /wp-admin/admin.php?page=aicp_settings | 1,535 | 10.16 | 310.54 | 31.00 |
Banned User Details /wp-admin/admin.php?page=aicp_banned_user_details | 1,024 | 2.06 | 27.50 | 27.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ad-invalid-click-protector/inc/admin_setup.php
- > /wp-content/plugins/ad-invalid-click-protector/adsense-invalid-click-protector.php
- > /wp-content/plugins/ad-invalid-click-protector/inc/banned_user_table.php
- > /wp-content/plugins/ad-invalid-click-protector/inc/setup.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=aicp_settings
- > Network (severe)
https://api.razorpay.com/v1/payment_buttons/pl_FXG3hGY91IY5Rk/button_preferences - Failed to load resource: the server responded with a status of 400 (Bad Request)
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
9 plugin tags: invalid click, save adsense account, isaumya, google adsense, adsense invalid click...
ad-invalid-click-protector/adsense-invalid-click-protector.php 85% from 13 tests
This is the main PHP file of "Ad Invalid Click Protector (AICP)" version 1.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ad-invalid-click-protector.php" instead of "adsense-invalid-click-protector.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,658 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 128 | 211 | 704 |
PO File | 3 | 147 | 150 | 555 |
JavaScript | 6 | 46 | 66 | 313 |
CSS | 2 | 0 | 5 | 86 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 3 | 7.32% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin