84% tag-manager-by-rocketcode

Code Review | Tag Manager by RocketCode

WordPress plugin Tag Manager by RocketCode scored84%from 54 tests.

About plugin

  • Plugin page: tag-manager-by-ro...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 24, 2023
  • Latest release: Jul 14, 2023
  • Number of updates: 7
  • Update frequency: every 25.1 days
  • Top authors: rocketcode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /158 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.76ms] Passed 4 tests

A check of server-side resources used by Tag Manager by RocketCode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.76 ▲1.88
Dashboard /wp-admin3.33 ▲0.0346.88 ▼0.96
Posts /wp-admin/edit.php3.38 ▲0.0246.82 ▼1.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.25 ▼15.44
Media Library /wp-admin/upload.php3.25 ▲0.0233.83 ▼4.97
Tag Manager - RocketCode /wp-admin/options-general.php?page=rocketcode_gtm3.2229.83

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tag Manager by RocketCode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.082.31 ▲0.1942.35 ▼1.12
Dashboard /wp-admin2,202 ▲325.63 ▲0.0584.20 ▼18.4540.54 ▲0.69
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0235.59 ▼1.4638.63 ▲3.39
Add New Post /wp-admin/post-new.php1,529 ▼623.04 ▲4.98665.19 ▲8.5857.49 ▼6.22
Media Library /wp-admin/upload.php1,401 ▼24.26 ▲0.06101.52 ▼4.6045.38 ▼0.49
Tag Manager - RocketCode /wp-admin/options-general.php?page=rocketcode_gtm8072.0023.1531.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-manager-by-rocketcode/rocketcode-GTM.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: The official readme.txt might help

tag-manager-by-rocketcode/rocketcode-GTM.php 92% from 13 tests

The main PHP script in "Tag Manager by RocketCode" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tag-manager-by-rocketcode.php" instead of "rocketcode-GTM.php")

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
Everything looks great! No dangerous files found in this plugin115 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1298115

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for 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.13
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.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
No PNG files were detected