84% wp-analytics-tag-manager

Code Review | WP Analytics Tag Manager

WordPress plugin WP Analytics Tag Manager scored84%from 54 tests.

About plugin

  • Plugin page: wp-analytics-tag-...
  • Plugin version: 0.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2014
  • Latest release: Mar 2, 2014
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: tubo__ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /3,295 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.53ms] Passed 4 tests

A check of server-side resources used by WP Analytics Tag Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.90 ▼2.34
Dashboard /wp-admin3.41 ▲0.1046.45 ▼2.84
Posts /wp-admin/edit.php3.52 ▲0.1646.07 ▼4.31
Add New Post /wp-admin/post-new.php5.99 ▲0.1088.88 ▼8.62
Media Library /wp-admin/upload.php3.33 ▲0.1037.52 ▲4.92
Add New /wp-admin/post-new.php?post_type=wp-ana-tag-manager3.4550.17
WP Analytics Tag Manager /wp-admin/edit.php?post_type=wp-ana-tag-manager3.3737.53

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Analytics Tag Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8414.47 ▲0.101.66 ▼0.1540.55 ▼1.01
Dashboard /wp-admin2,236 ▲484.88 ▼0.1196.30 ▼8.0437.29 ▼6.22
Posts /wp-admin/edit.php2,113 ▲211.99 ▼0.0236.37 ▼6.7433.07 ▼3.52
Add New Post /wp-admin/post-new.php1,542 ▼023.16 ▲4.68607.00 ▼15.2258.85 ▼0.57
Media Library /wp-admin/upload.php1,412 ▲214.17 ▼0.0297.43 ▲0.9842.26 ▲0.13
Add New /wp-admin/post-new.php?post_type=wp-ana-tag-manager2,3897.77178.7938.49
WP Analytics Tag Manager /wp-admin/edit.php?post_type=wp-ana-tag-manager1,0801.9931.0629.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-analytics-tag-manager/wp-analytics-tag-manager.php:30

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: google, tag manager, tag management, analytics

wp-analytics-tag-manager/wp-analytics-tag-manager.php 92% from 13 tests

The main file in "WP Analytics Tag Manager" v. 0.7.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin489 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP454255357
PO File1324571
JavaScript12944
CSS161517

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.25
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods312.00%
▷ Public methods2496.00%
▷ Protected methods14.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin