10% bing-ads-uet

Code Review | Bing Ads UET

WordPress plugin Bing Ads UET scored10%from 54 tests.

About plugin

  • Plugin page: bing-ads-uet
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.2.2
  • WordPress version: 6.3.1
  • First release: May 8, 2015
  • Latest release: May 9, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: JamieChung (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,617 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/bing-ads-uet/index.php+27
    Trying to access array offset on value of type null

Server metrics [RAM: ▼1.97MB] [CPU: ▼53.67ms] Passed 4 tests

An overview of server-side resources used by Bing Ads UET
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.17 ▼31.80
Dashboard /wp-admin2.05 ▼1.306.82 ▼51.84
Posts /wp-admin/edit.php2.05 ▼1.315.99 ▼43.45
Add New Post /wp-admin/post-new.php2.05 ▼3.845.91 ▼87.58
Media Library /wp-admin/upload.php2.05 ▼1.186.67 ▼26.71
Bing Ads UET /wp-admin/options-general.php?page=bingads-uet-configuration2.056.03

Server storage [IO: ▲0.16MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Bing Ads UET
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9814.36 ▼0.412.01 ▲0.2444.26 ▲0.27
Dashboard /wp-admin2,225 ▲345.86 ▲0.7996.34 ▼4.5038.28 ▼4.95
Posts /wp-admin/edit.php2,108 ▲192.02 ▼0.0235.30 ▼6.6935.46 ▼1.24
Add New Post /wp-admin/post-new.php1,551 ▲1823.05 ▼0.03659.42 ▼8.4655.26 ▲1.25
Media Library /wp-admin/upload.php1,410 ▲224.13 ▼0.12100.18 ▼6.6646.47 ▼2.08
Bing Ads UET /wp-admin/options-general.php?page=bingads-uet-configuration8252.1724.1135.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/bing-ads-uet/index.php+27
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bingads-uet-configuration
    • > Notice in wp-content/plugins/bing-ads-uet/index.php+27
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bing-ads-uet/index.php:14

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

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: uet tags, uet tag, bing ads uet, bing ads, bing ads uet tag

bing-ads-uet/index.php 92% from 13 tests

The main PHP script in "Bing Ads UET" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bing-ads-uet.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected134 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12610122
Markdown13012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 PNG file occupies 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot.png155.37KB44.56KB▼ 71.32%