68% wp-tagman

Code Review | WP TagMan

WordPress plugin WP TagMan scored68%from 54 tests.

About plugin

  • Plugin page: wp-tagman
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.4-5.8
  • WordPress version: 6.3.1
  • First release: Jun 4, 2015
  • Latest release: Oct 28, 2021
  • Number of updates: 7
  • Update frequency: every 334.1 days
  • Top authors: adam.ainsworth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,194 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by WP TagMan
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.72 ▲2.76
Dashboard /wp-admin3.33 ▼0.0151.57 ▼9.46
Posts /wp-admin/edit.php3.38 ▲0.0346.98 ▼3.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.00 ▼17.43
Media Library /wp-admin/upload.php3.26 ▲0.0337.77 ▲1.82
WP TagMan /wp-admin/options-general.php?page=wp_tagman3.2031.04

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
wp_tagman_gtm_code
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

WP TagMan: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.35 ▼1.011.78 ▼0.0245.19 ▼1.54
Dashboard /wp-admin2,210 ▲224.87 ▼0.03112.42 ▲0.2642.38 ▼10.32
Posts /wp-admin/edit.php2,090 ▲12.04 ▲0.0334.89 ▼7.1234.86 ▼1.44
Add New Post /wp-admin/post-new.php1,517 ▼717.64 ▼5.52687.32 ▲17.7058.68 ▼1.07
Media Library /wp-admin/upload.php1,395 ▲74.13 ▼0.07103.24 ▼7.0646.33 ▼0.85
WP TagMan /wp-admin/options-general.php?page=wp_tagman7952.0225.1629.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wp-tagman/wp-tagman.php+50
    Use of undefined constant WP_UNINSTALL_PLUGIN - assumed 'WP_UNINSTALL_PLUGIN' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wp_tagman
    • > Notice in wp-content/plugins/wp-tagman/wp-tagman.php+147
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-tagman/wp-tagman.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: google analytics, marketing, tracking, google tag manager, trafficking

wp-tagman/wp-tagman.php 92% from 13 tests

The entry point to "WP TagMan" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected108 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12426106
Markdown1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods1191.67%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png49.25KB26.22KB▼ 46.77%
assets/screenshot-1.png27.04KB14.34KB▼ 46.97%