77% adwords-conversion-tracking-code

Code Review | AdWords Conversion Tracking Code

WordPress plugin AdWords Conversion Tracking Code scored77%from 54 tests.

About plugin

  • Plugin page: adwords-conversio...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Sep 9, 2015
  • Latest release: Sep 14, 2015
  • Number of updates: 6
  • Update frequency: every 2.0 days
  • Top authors: kcseopro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /24,250 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.65MB] [CPU: ▼16.29ms] Passed 4 tests

Analyzing server-side resources used by AdWords Conversion Tracking Code
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.40 ▼0.09
Dashboard /wp-admin3.35 ▲0.0446.97 ▼4.91
Posts /wp-admin/edit.php3.40 ▲0.0447.12 ▼0.13
Add New Post /wp-admin/post-new.php3.18 ▼2.7234.20 ▼60.04
Media Library /wp-admin/upload.php3.27 ▲0.0438.83 ▲4.21
AdWords Tracking Code /wp-admin/options-general.php?page=actc-adwords-settings3.2128.49

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for AdWords Conversion Tracking Code
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.26 ▼0.291.72 ▼0.0246.89 ▲6.66
Dashboard /wp-admin2,202 ▲225.64 ▼0.0394.01 ▲0.9540.75 ▲1.01
Posts /wp-admin/edit.php2,101 ▲11.98 ▼0.0634.26 ▼1.4536.85 ▲2.98
Add New Post /wp-admin/post-new.php6,227 ▲4,69918.87 ▼4.44924.04 ▲275.6559.91 ▲2.85
Media Library /wp-admin/upload.php1,404 ▲74.17 ▼0.09110.50 ▲6.9947.07 ▲3.92
AdWords Tracking Code /wp-admin/options-general.php?page=actc-adwords-settings7981.9923.2824.33

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=actc-adwords-settings
    • > Notice in wp-content/plugins/adwords-conversion-tracking-code/adwords-conversion-tracking-code.php+74
    Undefined index: submit

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/adwords-conversion-tracking-code/adwords-conversion-tracking-code.php:25

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

adwords-conversion-tracking-code/adwords-conversion-tracking-code.php 85% from 13 tests

The primary PHP file in "AdWords Conversion Tracking Code" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 199 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin120 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13322120

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected