10% simple-tag-manager

Code Review | Simple Tag Manager

WordPress plugin Simple Tag Manager scored10%from 54 tests.

About plugin

  • Plugin page: simple-tag-manager
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.0
  • WordPress version: 6.3.1
  • First release: Nov 24, 2016
  • Latest release: Jul 18, 2017
  • Number of updates: 25
  • Update frequency: every 9.0 days
  • Top authors: dan.sed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,445 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/simple-tag-manager/caesar-cipher.php+89
    implode(): Passing glue string after array is deprecated. Swap the parameters

Server metrics [RAM: ▼1.89MB] [CPU: ▼52.17ms] Passed 4 tests

A check of server-side resources used by Simple Tag Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.29 ▼39.02
Dashboard /wp-admin2.12 ▼1.185.85 ▼40.97
Posts /wp-admin/edit.php2.12 ▼1.235.51 ▼42.59
Add New Post /wp-admin/post-new.php2.12 ▼3.766.38 ▼86.10
Media Library /wp-admin/upload.php2.12 ▼1.118.09 ▼23.59
Simple Tag Manager /wp-admin/options-general.php?page=simple-tag-manager2.126.22

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-posts
ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_3
ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_2
ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_5
ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_1
ecpt_stm_45t5dsfzxv22_zdx_35_stm_option_4
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Tag Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5714.06 ▼0.671.89 ▲0.2737.16 ▼4.06
Dashboard /wp-admin2,199 ▲195.62 ▼0.0691.46 ▼4.7242.59 ▼2.87
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.2038.20 ▼0.3936.54 ▲4.77
Add New Post /wp-admin/post-new.php1,529 ▲323.12 ▲0.10616.81 ▼20.1654.16 ▲5.84
Media Library /wp-admin/upload.php1,407 ▲44.17 ▼0.0799.11 ▲1.4441.72 ▲0.24
Simple Tag Manager /wp-admin/options-general.php?page=simple-tag-manager1,1061.8628.0172.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/simple-tag-manager/caesar-cipher.php+89
    implode(): Passing glue string after array is deprecated. Swap the parameters
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simple-tag-manager
    • > Deprecated in wp-content/plugins/simple-tag-manager/caesar-cipher.php+89
    implode(): Passing glue string after array is deprecated. Swap the parameters

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/simple-tag-manager/settings.php
    • > /wp-content/plugins/simple-tag-manager/simple-tag-manager.php
    • > /wp-content/plugins/simple-tag-manager/simple-tag-manager.old.php
    • > /wp-content/plugins/simple-tag-manager/settings.old.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: setup, manager, google, manage, tag...

simple-tag-manager/simple-tag-manager.old.php 85% from 13 tests

This is the main PHP file of "Simple Tag Manager" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-tag-manager.php" instead of "simple-tag-manager.old.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin424 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP567141424

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods457.14%
▷ Protected methods342.86%
▷ Private methods00.00%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants0
▷ Global constants00.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 images were found in this plugin