84% insert-adsense-auto-ads

Code Review | Insert Adsense Auto Ads

WordPress plugin Insert Adsense Auto Ads scored84%from 54 tests.

About plugin

  • Plugin page: insert-adsense-au...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.1
  • WordPress version: 6.3.1
  • First release: May 5, 2018
  • Latest release: Feb 28, 2019
  • Number of updates: 12
  • Update frequency: every 25.0 days
  • Top authors: topplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,578 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.43ms] Passed 4 tests

Server-side resources used by Insert Adsense Auto Ads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0229.57 ▼9.72
Dashboard /wp-admin3.37 ▲0.0645.80 ▼2.75
Posts /wp-admin/edit.php3.42 ▲0.0690.75 ▲40.61
Add New Post /wp-admin/post-new.php5.95 ▲0.06108.29 ▲3.90
Media Library /wp-admin/upload.php3.29 ▲0.0637.99 ▲2.85
Insert Adsense Ads /wp-admin/options-general.php?page=insert-adsense-auto-ads3.2639.00

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options
albteampiaaa1_service_info
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Insert Adsense Auto Ads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.20 ▼1.051.78 ▲0.1244.66 ▲6.60
Dashboard /wp-admin2,210 ▲225.84 ▲0.80103.30 ▼12.5237.10 ▼9.69
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0351.18 ▲10.3762.83 ▲27.72
Add New Post /wp-admin/post-new.php1,415 ▼12917.82 ▼0.57767.68 ▲150.7750.14 ▼5.91
Media Library /wp-admin/upload.php1,395 ▲104.19 ▼0.07105.96 ▲4.1054.68 ▲10.65
Insert Adsense Ads /wp-admin/options-general.php?page=insert-adsense-auto-ads1,4622.7650.7577.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • albteampiaaa1_service_info
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 10× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/insert-adsense-auto-ads/insert-adsense-auto-ads.php
    • > /wp-content/plugins/insert-adsense-auto-ads/inc/php/uninstall.php
    • > /wp-content/plugins/insert-adsense-auto-ads/inc/php/sidebar.php
    • > /wp-content/plugins/insert-adsense-auto-ads/inc/php/core.php
    • > /wp-content/plugins/insert-adsense-auto-ads/inc/php/messages.php
    • > /wp-content/plugins/insert-adsense-auto-ads/inc/php/settings.php
    • > /wp-content/plugins/insert-adsense-auto-ads/inc/php/versioning.php
    • > /wp-content/plugins/insert-adsense-auto-ads/inc/php/enqueue.php
    • > /wp-content/plugins/insert-adsense-auto-ads/inc/php/page.php
    • > /wp-content/plugins/insert-adsense-auto-ads/inc/php/functional.php

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 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (44 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

insert-adsense-auto-ads/insert-adsense-auto-ads.php Passed 13 tests

The entry point to "Insert Adsense Auto Ads" version 1.1 is a PHP file that has certain tags in its header comment area
96 characters long description:
Easily add your Adsense Auto Ads (or any other javascript code) to the WordPress header section.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin12,933 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript81,0001,0049,170
SVG1002,671
CSS56782717
PHP10113163352
Markdown15023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin