10% omnileads-scripts-and-tags-manager

Code Review | OmniLeads Scripts and Tags Manager

WordPress plugin OmniLeads Scripts and Tags Manager scored 10% from 54 tests.

About plugin

  • Plugin page: omnileads-scripts...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.7.2
  • WordPress version: 5.8.1
  • First release: Apr 29, 2016
  • Latest release: May 27, 2021
  • Number of updates: 46
  • Update frequency: every 40.3 days
  • Top authors: danielmuldernl (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active / 5,691 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
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/omnileads-scripts-and-tags-manager/omnileads-scripts-tags-manager.php+57
    Constant OST_SCRIPT_PATH already defined

Server metrics [RAM: ▼1.56MB] [CPU: ▼187.38ms] Passed 4 tests

An overview of server-side resources used by OmniLeads Scripts and Tags Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼0.656.27 ▼16.65
Dashboard /wp-admin2.08 ▼0.978.29 ▼31.56
Posts /wp-admin/edit.php2.08 ▼1.028.45 ▼32.16
Add New Post /wp-admin/post-new.php2.08 ▼3.359.07 ▼661.86
Media Library /wp-admin/upload.php2.08 ▼0.928.23 ▼23.94

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 3 new options
New WordPress options
ost_version
ost_tagmanager_tag_body
drm_tags

Browser metrics Passed 4 tests

An overview of browser requirements for OmniLeads Scripts and Tags Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,721 ▲12515.73 ▲0.1910.03 ▲0.6248.95 ▲1.75
Dashboard /wp-admin2,982 ▲515.92 ▼0.07139.50 ▼4.76145.70 ▲35.69
Posts /wp-admin/edit.php2,773 ▲342.70 ▼0.0157.47 ▼7.8183.97 ▼7.22
Add New Post /wp-admin/post-new.php1,513 ▲1318.43 ▼0.08365.27 ▲2.82115.99 ▲11.53
Media Library /wp-admin/upload.php1,770 ▼374.99 ▼0.02126.97 ▼26.49146.86 ▲27.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/omnileads-scripts-and-tags-manager/omnileads-scripts-tags-manager.php+49
    Undefined index: tab
  • Zombie WordPress options were found after uninstall: 3 options
    • drm_tags
    • ost_tagmanager_tag_body
    • ost_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/omnileads-scripts-and-tags-manager/omnileads-scripts-tags-manager.php
    • > /wp-content/plugins/omnileads-scripts-and-tags-manager/dynremarketing.ctp.php
    • > /wp-content/plugins/omnileads-scripts-and-tags-manager/tabs.ctp.php
    • > /wp-content/plugins/omnileads-scripts-and-tags-manager/help.ctp.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/omnileads-scripts-and-tags-manager/newdrmtag.ctp.php:2

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
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Plugin options page
    ), #2 (Add script / code example
    ), #3 (Dynamic remarketing enabled
    )
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

omnileads-scripts-and-tags-manager/omnileads-scripts-tags-manager.php 85% from 13 tests

"OmniLeads Scripts and Tags Manager" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("omnileads-scripts-and-tags-manager.php" instead of "omnileads-scripts-tags-manager.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
Good job! No executable or dangerous file extensions detected1,054 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP51621521,054

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity105.00
▷ Minimum class complexity105.00
▷ Maximum class complexity105.00
Average method complexity5.16
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods1664.00%
▷ Public methods2496.00%
▷ Protected methods00.00%
▷ Private methods14.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.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
13 compressed PNG files occupy 0.29MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/off16x16.png0.52KB0.45KB▼ 13.45%
on.png0.60KB0.52KB▼ 13.73%
images/icon.png0.60KB0.62KB0.00%
off.png0.55KB0.48KB▼ 13.20%
images/off16x16red.png0.55KB0.48KB▼ 13.20%