79% tag-manager-header-body-footer

Code Review | Tag Manager - Header, Body And Footer

WordPress plugin Tag Manager - Header, Body And Footer scored79%from 54 tests.

About plugin

  • Plugin page: tag-manager-heade...
  • Plugin version: 3.3.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 21, 2019
  • Latest release: Oct 18, 2023
  • Number of updates: 50
  • Update frequency: every 29.2 days
  • Top authors: yydevelopment (100%)

Code review

54 tests

User reviews

40 reviews

Install metrics

20,000+ active /129,947 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.34ms] Passed 4 tests

A check of server-side resources used by Tag Manager - Header, Body And Footer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2044.63 ▲4.55
Dashboard /wp-admin3.37 ▲0.0260.05 ▼8.84
Posts /wp-admin/edit.php3.48 ▲0.1255.97 ▲6.43
Add New Post /wp-admin/post-new.php5.95 ▲0.0697.20 ▼10.24
Media Library /wp-admin/upload.php3.29 ▲0.0642.63 ▲1.16

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: 1 new table, 9 new options
New tables
wp_yydev_tagmanager
New WordPress options
yydev_tag_manager_version
widget_theysaidso_widget
db_upgraded
widget_recent-comments
yydev_tagmanager_settings
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
yydev_tagmanager_timestamp

Browser metrics Passed 4 tests

An overview of browser requirements for Tag Manager - Header, Body And Footer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.24 ▼0.121.53 ▼0.0841.52 ▲0.18
Dashboard /wp-admin2,210 ▲395.61 ▲0.0883.05 ▼5.5463.86 ▲24.56
Posts /wp-admin/edit.php2,121 ▲241.98 ▼0.0339.08 ▼2.4934.68 ▼2.27
Add New Post /wp-admin/post-new.php1,553 ▲2723.07 ▲0.13724.37 ▲7.8159.26 ▼3.08
Media Library /wp-admin/upload.php1,415 ▲154.18 ▼0.0497.27 ▼19.5567.02 ▲18.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_yydev_tagmanager
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • yydev_tagmanager_settings
    • yydev_tagmanager_timestamp
    • widget_recent-comments
    • yydev_tag_manager_version
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Requires at least: Version not formatted correctly
You can look at the official readme.txt

tag-manager-header-body-footer/index.php 92% from 13 tests

The main PHP script in "Tag Manager - Header, Body And Footer" version 3.3.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tag-manager-header-body-footer.php" instead of "index.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,182 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP106413871,121
PO File1181861

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions32
▷ Named functions2475.00%
▷ Anonymous functions825.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/favicon.png0.37KB0.38KB0.00%
images/remove.png1.58KB0.82KB▼ 48.30%
images/icon.png2.57KB2.70KB0.00%