93% advanced-ads-adsense-in-feed

Code Review | In-feed ads for Google AdSense

WordPress plugin In-feed ads for Google AdSense scored 93% from 54 tests.

About plugin

  • Plugin page: advanced-ads-adse...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Oct 25, 2017
  • Latest release: Feb 2, 2022
  • Number of updates: 25
  • Update frequency: every 62.4 days
  • Top authors: webzunft (84%)advancedads (20%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active / 149,639 total downloads


Plugin footprint Passed 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.01MB] [CPU: ▼292.73ms] Passed 4 tests

Analyzing server-side resources used by In-feed ads for Google AdSense
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.41 ▲4.91
Dashboard /wp-admin3.42 ▲0.0133.42 ▲0.75
Posts /wp-admin/edit.php3.65 ▲0.0136.90 ▲1.52
Add New Post /wp-admin/post-new.php6.92 ▼0.0893.60 ▼1,175.56
Media Library /wp-admin/upload.php3.30 ▲0.0125.55 ▲2.36

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by In-feed ads for Google AdSense
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲7315.71 ▼0.077.01 ▲0.322.84 ▲0.36
Dashboard /wp-admin2,912 ▲516.09 ▼0.20117.12 ▼14.94154.73 ▼7.97
Posts /wp-admin/edit.php2,703 ▲153.24 ▲0.0163.65 ▲0.81139.57 ▼4.66
Add New Post /wp-admin/post-new.php1,730 ▲6921.11 ▲4.13428.40 ▲36.67157.59 ▲2.35
Media Library /wp-admin/upload.php1,718 ▲205.49 ▲0.01144.38 ▲3.19182.88 ▼3.44

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 | A smoke test targeting 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/advanced-ads-adsense-in-feed/advanced-ads-in-feed.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

advanced-ads-adsense-in-feed/advanced-ads-in-feed.php 85% from 13 tests

This is the main PHP file of "In-feed ads for Google AdSense" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-ads-adsense-in-feed.php" instead of "advanced-ads-in-feed.php")

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
Success! There were no dangerous files found in this plugin133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.93
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
adsense-in-feed.png8.06KB7.27KB▼ 9.80%