78% iabtechlab-adstxt-generator

Code Review | Adstxt Generator & validator

WordPress plugin Adstxt Generator & validator scored 78% from 54 tests.

About plugin

  • Plugin page: iabtechlab-adstxt...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8.2
  • WordPress version: 6.3.1
  • First release: Nov 10, 2017
  • Latest release: Nov 19, 2017
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: shreyansh007 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,057 total downloads

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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.40ms] Passed 4 tests

An overview of server-side resources used by Adstxt Generator & validator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.49 ▲4.55
Dashboard /wp-admin3.31 ▲0.0145.08 ▼7.13
Posts /wp-admin/edit.php3.36 ▲0.0146.95 ▼0.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.55 ▲3.98
Media Library /wp-admin/upload.php3.24 ▲0.0134.23 ▲2.44
iabtechlab-Adstxt-Generator /wp-admin/options-general.php?page=iabtechlab-adstxt-generator3.1827.72

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
i_adstxt_content
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Adstxt Generator & validator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.68 ▼0.701.91 ▼0.2339.62 ▼12.20
Dashboard /wp-admin2,207 ▲195.78 ▲0.8898.17 ▼17.4339.01 ▼3.90
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0338.82 ▲3.3034.71 ▲1.06
Add New Post /wp-admin/post-new.php1,531 ▲1718.53 ▲0.77624.91 ▼20.8656.37 ▲6.60
Media Library /wp-admin/upload.php1,386 ▼24.12 ▼0.15102.23 ▲2.6742.32 ▼4.80
iabtechlab-Adstxt-Generator /wp-admin/options-general.php?page=iabtechlab-adstxt-generator9892.1428.5559.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • i_adstxt_content
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=iabtechlab-adstxt-generator
    • > Notice in wp-content/plugins/iabtechlab-adstxt-generator/iabtechlab-adstxt-generator.php+47
    Undefined index: i_adstxt_create

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/iabtechlab-adstxt-generator/iabtechlab-adstxt-generator.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

iabtechlab-adstxt-generator/iabtechlab-adstxt-generator.php Passed 13 tests

The entry point to "Adstxt Generator & validator" version 2.0 is a PHP file that has certain tags in its header comment area
83 characters long description:
Increase transparency in the programmatic advertising ecosystem by creating ads.txt

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected303 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1167300
JavaScript1052
CSS1051

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin