72% conversion-helper

Code Review | Conversion Helper

WordPress plugin Conversion Helper scored72%from 54 tests.

About plugin

  • Plugin page: conversion-helper
  • Plugin version: 1.12
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2020
  • Latest release: Feb 17, 2021
  • Number of updates: 9
  • Update frequency: every 10.2 days
  • Top authors: wojciechborowicz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /511 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.03MB] [CPU: ▼4.99ms] Passed 4 tests

An overview of server-side resources used by Conversion Helper
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.95 ▲1.75
Dashboard /wp-admin3.34 ▲0.0443.11 ▼4.31
Posts /wp-admin/edit.php3.39 ▲0.0348.55 ▲0.84
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.22 ▼14.16
Media Library /wp-admin/upload.php3.26 ▲0.0334.41 ▼2.32
Conversion Helper /wp-admin/options-general.php?page=conversion_helper3.2025.35

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Conversion Helper
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.29 ▼1.091.62 ▼0.2437.55 ▼6.45
Dashboard /wp-admin2,210 ▲245.81 ▼0.28111.82 ▲4.6546.61 ▲3.05
Posts /wp-admin/edit.php2,090 ▲11.98 ▼0.0532.99 ▼3.2132.15 ▼2.45
Add New Post /wp-admin/post-new.php1,517 ▼2517.58 ▼1.03662.71 ▲13.8358.50 ▲4.47
Media Library /wp-admin/upload.php1,392 ▲14.18 ▼0.0094.03 ▼4.5441.41 ▼2.91
Conversion Helper /wp-admin/options-general.php?page=conversion_helper8102.0327.4732.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=conversion_helper
    • > Notice in wp-content/plugins/conversion-helper/conversion_helper.php+110
    Trying to access array offset on value of type bool

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/conversion-helper/index.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/conversion-helper/conversion_helper.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
3 plugin tags: conversion tracking, google ads, adwords

conversion-helper/conversion_helper.php 92% from 13 tests

The entry point to "Conversion Helper" version 1.12 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("conversion-helper.php" instead of "conversion_helper.php")

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 detected131 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23324131

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin