Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-adsense-guard/includes/functions.php+103
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.00MB] [CPU: ▼53.09ms] Passed 4 tests
This is a short check of server-side resources used by Wordpress Adsense Guard
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▼0.47 | 8.87 ▼30.48 |
Dashboard /wp-admin | 3.02 ▼0.29 | 8.68 ▼47.18 |
Posts /wp-admin/edit.php | 3.02 ▼0.35 | 8.08 ▼42.05 |
Add New Post /wp-admin/post-new.php | 3.02 ▼2.88 | 9.99 ▼92.65 |
Media Library /wp-admin/upload.php | 3.02 ▼0.22 | 9.18 ▼24.82 |
Dashboard /wp-admin/admin.php?page=wp-adsense-guard | 3.02 | 7.84 |
Ads Management /wp-admin/admin.php?page=wp-adsense-guard-ads | 3.02 | 11.57 |
Settings /wp-admin/admin.php?page=wp-adsense-guard-settings | 3.02 | 8.91 |
Go to Premium /wp-admin/admin.php?page=wp-adsense-guard-pro | 3.02 | 9.81 |
Server storage [IO: ▲1.81MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 59 new files
Database: 3 new tables, 31 new options
New tables |
---|
wp_wpadgunots |
wp_wpadgublocked_ips |
wp_wpadguads |
New WordPress options |
---|
wpadguguard_status |
wpadguadblock_action |
wpadgublacklist_bots |
wpadgugoogle_engine_id |
wpadgudesktop_status |
wpadguphones_status |
can_compress_scripts |
wpadgudefault_margin |
wpadgucookie_expiration |
wpadgusecurity_hash |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Wordpress Adsense Guard
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲147 | 14.26 ▼0.02 | 5.48 ▲3.82 | 44.27 ▲2.55 |
Dashboard /wp-admin | 2,217 ▲40 | 5.51 ▼0.16 | 88.80 ▼1.23 | 84.71 ▲46.27 |
Posts /wp-admin/edit.php | 2,137 ▲40 | 1.97 ▲0.03 | 38.48 ▲3.51 | 34.41 ▼4.23 |
Add New Post /wp-admin/post-new.php | 1,561 ▲33 | 23.24 ▲0.03 | 695.39 ▼10.00 | 53.71 ▼14.45 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.10 ▼0.07 | 100.48 ▼10.98 | 74.69 ▲28.57 |
Dashboard /wp-admin/admin.php?page=wp-adsense-guard | 911 | 1.99 | 25.67 | 34.14 |
Ads Management /wp-admin/admin.php?page=wp-adsense-guard-ads | 1,251 | 2.05 | 22.86 | 30.30 |
Settings /wp-admin/admin.php?page=wp-adsense-guard-settings | 1,395 | 2.06 | 23.59 | 39.00 |
Go to Premium /wp-admin/admin.php?page=wp-adsense-guard-pro | 905 | 2.11 | 21.82 | 29.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-adsense-guard/includes/functions.php+103
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- Zombie tables detected upon uninstall: 3 tables
- wp_wpadguads
- wp_wpadgublocked_ips
- wp_wpadgunots
- This plugin did not uninstall successfully, leaving 31 options in the database
- theysaidso_admin_options
- wpadgureports
- widget_recent-comments
- wpadgucookie_expiration
- widget_recent-posts
- wpadguban_duration
- wpadguadblock_message
- wpadguadblock_status
- wpadguadblock_redirect_url
- wpadgumin_words
- ...
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-adsense-guard-pro
- > Deprecated in wp-content/plugins/wp-adsense-guard/includes/functions.php+103
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-adsense-guard-settings
- > Deprecated in wp-content/plugins/wp-adsense-guard/index.php+918
Non-static method wpadgu_help::tuts() should not be called statically
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-adsense-guard-settings
- > Deprecated in wp-content/plugins/wp-adsense-guard/index.php+921
Non-static method wpadgu_help::products() should not be called statically
- 20 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-adsense-guard-ads
- > Notice in wp-content/plugins/wp-adsense-guard/index.php+2196
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: google adsense, wordpress ads, wordpress adsense plugin, wordpress adsense widget, adsense...
wp-adsense-guard/index.php 85% from 13 tests
"Wordpress Adsense Guard" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 262 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wp-adsense-guard.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected10,844 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 736 | 1,593 | 8,679 |
CSS | 5 | 323 | 12 | 1,367 |
JavaScript | 5 | 59 | 24 | 439 |
PO File | 1 | 155 | 159 | 358 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 55.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 231 | |
▷ Static methods | 50 | 21.65% |
▷ Public methods | 165 | 71.43% |
▷ Protected methods | 65 | 28.14% |
▷ Private methods | 1 | 0.43% |
Functions | 56 | |
▷ Named functions | 55 | 98.21% |
▷ Anonymous functions | 1 | 1.79% |
Constants | 155 | |
▷ Global constants | 60 | 38.71% |
▷ Class constants | 95 | 61.29% |
▷ Public constants | 95 | 100.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
24 PNG files occupy 0.27MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/article-32.png | 1.05KB | 1.16KB | 0.00% |
assets/img/fixed-16.png | 0.43KB | 0.43KB | 0.00% |
assets/img/blank.png | 0.20KB | 0.09KB | ▼ 52.45% |
assets/img/adsguardpro_banner.png | 34.19KB | 16.22KB | ▼ 52.54% |
assets/img/adsguard_icon.png | 0.82KB | 0.81KB | ▼ 0.84% |