78% easy-tag-and-tracking-id-inserter

Code Review | Easy Tag and Tracking Id Inserter

WordPress plugin Easy Tag and Tracking Id Inserter scored78%from 54 tests.

About plugin

  • Plugin page: easy-tag-and-trac...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Jan 26, 2021
  • Latest release: Jan 26, 2021
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: csarmy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /422 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.51ms] Passed 4 tests

A check of server-side resources used by Easy Tag and Tracking Id Inserter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.69 ▼5.46
Dashboard /wp-admin3.42 ▲0.1249.17 ▼0.05
Posts /wp-admin/edit.php3.53 ▲0.1848.54 ▼1.85
Add New Post /wp-admin/post-new.php6.02 ▲0.1398.87 ▼2.66
Media Library /wp-admin/upload.php3.34 ▲0.1140.46 ▲3.35

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Easy Tag and Tracking Id Inserter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14414.35 ▼0.005.66 ▲3.2341.07 ▲2.70
Dashboard /wp-admin2,219 ▲395.78 ▲0.10101.01 ▲10.5242.71 ▼1.68
Posts /wp-admin/edit.php2,133 ▲332.87 ▲0.8652.05 ▲16.2538.63 ▲3.88
Add New Post /wp-admin/post-new.php1,553 ▲2223.72 ▲0.61697.72 ▲0.7152.92 ▲3.88
Media Library /wp-admin/upload.php1,430 ▲335.28 ▲1.11109.60 ▼5.1844.54 ▼3.96

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-tag-and-tracking-id-inserter/public/partials/easy-tag-and-tracking-id-inserter-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/easy-tag-and-tracking-id-inserter/admin/partials/easy-tag-and-tracking-id-inserter-admin-display.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Donate link: Invalid URI ("#")
You can look at the official readme.txt

easy-tag-and-tracking-id-inserter/easy-tag-and-tracking-id-inserter.php 92% from 13 tests

The main file in "Easy Tag and Tracking Id Inserter" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 characters long)

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
Success! There were no dangerous files found in this plugin552 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13227612509
JavaScript210140
CSS2083

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity7.25
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods45
▷ Static methods24.44%
▷ Public methods4088.89%
▷ Protected methods00.00%
▷ Private methods511.11%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected