90% ad-auto-insert-h

Code Review | Ad Auto Insert H

WordPress plugin Ad Auto Insert H scored90%from 54 tests.

About plugin

  • Plugin page: ad-auto-insert-h
  • Plugin version: 1.6.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 6, 2022
  • Latest release: Nov 15, 2023
  • Number of updates: 25
  • Update frequency: every 21.2 days
  • Top authors: tabibitojin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /5,253 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.75MB] [CPU: ▲2.91ms] Passed 4 tests

An overview of server-side resources used by Ad Auto Insert H
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.7642.24 ▲3.90
Dashboard /wp-admin4.11 ▲0.7652.80 ▼6.53
Posts /wp-admin/edit.php4.16 ▲0.8056.78 ▲15.87
Add New Post /wp-admin/post-new.php6.63 ▲0.7498.50 ▲6.80
Media Library /wp-admin/upload.php3.97 ▲0.7439.58 ▲7.47
Ad Auto Insert H /wp-admin/options-general.php?page=ad-auto-insert-h3.9440.79

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Ad Auto Insert H
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.57 ▲0.221.90 ▲0.2240.32 ▼2.63
Dashboard /wp-admin2,202 ▲285.62 ▲0.0194.36 ▲7.0142.80 ▲4.82
Posts /wp-admin/edit.php2,107 ▲71.94 ▼0.0840.37 ▼1.6036.66 ▲0.85
Add New Post /wp-admin/post-new.php6,535 ▲5,00926.04 ▲2.83825.24 ▲208.2557.93 ▲8.03
Media Library /wp-admin/upload.php1,407 ▲74.22 ▲0.0499.61 ▼4.0943.40 ▼0.98
Ad Auto Insert H /wp-admin/options-general.php?page=ad-auto-insert-h4,6881.8038.4846.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: ads lazyload, google analytics, header insert, google adsense, ad auto inserter...

ad-auto-insert-h/ad-auto-insert-h.php 92% from 13 tests

The main PHP file in "Ad Auto Insert H" ver. 1.6.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 259 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5,944 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP171,0052,7384,418
CSS3121178656
PO File1236290555
JavaScript1110239315

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions174
▷ Named functions174100.00%
▷ Anonymous functions00.00%
Constants97
▷ Global constants97100.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
PNG images were not found in this plugin