84% hide-gtm-code

Code Review | Hide GTM code

WordPress plugin Hide GTM code scored84%from 54 tests.

About plugin

  • Plugin page: hide-gtm-code
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 14, 2022
  • Latest release: Aug 10, 2023
  • Number of updates: 20
  • Update frequency: every 12.0 days
  • Top authors: createaccord (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /609 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.76ms] Passed 4 tests

A check of server-side resources used by Hide GTM code
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.41 ▼4.66
Dashboard /wp-admin3.34 ▲0.0450.80 ▼0.84
Posts /wp-admin/edit.php3.39 ▲0.0454.60 ▲2.21
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.68 ▼7.22
Media Library /wp-admin/upload.php3.27 ▲0.0439.08 ▲1.70
setting /wp-admin/admin.php?page=creaco_hgtmc_submenu3.2135.29
Dashboard /wp-admin/admin.php?page=creaco_hgtmc_menu3.2333.99
GSC setting /wp-admin/admin.php?page=creaco_hgtmc_submenu_gsc3.2128.31

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide GTM code
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.54 ▲0.161.98 ▲0.2044.08 ▼0.13
Dashboard /wp-admin2,225 ▲455.61 ▼0.0584.69 ▼13.9340.13 ▼2.16
Posts /wp-admin/edit.php2,124 ▲241.99 ▼0.0236.42 ▼1.9238.61 ▲3.32
Add New Post /wp-admin/post-new.php1,560 ▲3423.31 ▲0.19690.37 ▲7.7358.56 ▲4.41
Media Library /wp-admin/upload.php1,427 ▲244.25 ▲0.16111.74 ▲7.7349.61 ▲5.98
setting /wp-admin/admin.php?page=creaco_hgtmc_submenu8152.0027.0722.16
Dashboard /wp-admin/admin.php?page=creaco_hgtmc_menu8481.9922.2829.32
GSC setting /wp-admin/admin.php?page=creaco_hgtmc_submenu_gsc8182.0024.5420.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=creaco_hgtmc_submenu
    • > Notice in wp-content/plugins/hide-gtm-code/hide-gtm-code.php+186
    Undefined variable: hgtmc_script_code_val_view
    • > GET request to /wp-admin/admin.php?page=creaco_hgtmc_submenu_gsc
    • > Notice in wp-content/plugins/hide-gtm-code/hide-gtm-code.php+255
    Undefined variable: hgtmc_script_gsc_code_val_view

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: japan, seo, meta tag, gtm, meta

hide-gtm-code/hide-gtm-code.php 92% from 13 tests

"Hide GTM code" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 211 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected223 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14074223

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.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
PNG images were not found in this plugin