10% conversion-and-remarketing-code

Code Review | Conversion And Remarketing Code

WordPress plugin Conversion And Remarketing Code scored10%from 54 tests.

About plugin

  • Plugin page: conversion-and-re...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.2
  • WordPress version: 6.3.1
  • First release: Jan 11, 2015
  • Latest release: Jul 23, 2015
  • Number of updates: 4
  • Update frequency: every 48.2 days
  • Top authors: neeaagh (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /8,171 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/conversion-and-remarketing-code/conversion-and-remarketing.php+153
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.07ms] Passed 4 tests

An overview of server-side resources used by Conversion And Remarketing Code
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.18 ▼4.20
Dashboard /wp-admin3.31 ▲0.0050.70 ▼1.06
Posts /wp-admin/edit.php3.36 ▲0.0051.32 ▲2.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.27 ▼10.47
Media Library /wp-admin/upload.php3.23 ▲0.0036.19 ▼0.56

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Conversion And Remarketing Code
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲5414.48 ▼0.172.33 ▲0.2539.76 ▼0.48
Dashboard /wp-admin2,224 ▲214.84 ▼0.03110.95 ▲3.9145.22 ▲3.50
Posts /wp-admin/edit.php2,103 ▲32.05 ▲0.0442.21 ▲2.0836.80 ▼0.03
Add New Post /wp-admin/post-new.php1,541 ▼718.05 ▼5.08597.48 ▼48.0648.13 ▼2.68
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0397.61 ▼9.7244.62 ▼3.43

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/conversion-and-remarketing-code/conversion-and-remarketing.php on line 153

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === conversion-and-remarketing-code === )
Please take inspiration from this readme.txt

conversion-and-remarketing-code/conversion-and-remarketing.php 92% from 13 tests

Analyzing the main PHP file in "Conversion And Remarketing Code" version 1.0.1
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("conversion-and-remarketing-code.php" instead of "conversion-and-remarketing.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected106 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12422106

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions7
▷ Named functions7100.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