10% ez-google-analytics

Code Review | EZ Google Analytics

WordPress plugin EZ Google Analytics scored10%from 54 tests.

About plugin

  • Plugin page: ez-google-analytics
  • Plugin version: 4.1.07
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.1.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2014
  • Latest release: Feb 21, 2015
  • Number of updates: 5
  • Update frequency: every 26.8 days
  • Top authors: scheeeli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,177 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/ez-google-analytics/index.php+32
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼1.91MB] [CPU: ▼54.18ms] Passed 4 tests

This is a short check of server-side resources used by EZ Google Analytics
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.395.23 ▼43.15
Dashboard /wp-admin2.14 ▼1.216.15 ▼39.54
Posts /wp-admin/edit.php2.14 ▼1.267.00 ▼43.82
Add New Post /wp-admin/post-new.php2.14 ▼3.797.10 ▼90.19
Media Library /wp-admin/upload.php2.14 ▼1.135.85 ▼29.55
Google Analytics /wp-admin/options-general.php?page=ezga-settings2.147.31

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by EZ Google Analytics
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.18 ▼1.172.25 ▲0.3355.91 ▲15.60
Dashboard /wp-admin2,204 ▲165.84 ▼0.04103.91 ▲3.2837.48 ▼8.16
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0341.24 ▲1.4937.44 ▼0.38
Add New Post /wp-admin/post-new.php1,537 ▲423.11 ▼0.04616.47 ▼73.5852.29 ▲0.79
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.0499.29 ▼3.6542.43 ▼2.30
Google Analytics /wp-admin/options-general.php?page=ezga-settings8512.0222.5026.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/ez-google-analytics/index.php+32
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ezga-settings
    • > Deprecated in wp-content/plugins/ez-google-analytics/index.php+32
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ez-google-analytics/index.php

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: pages, posts, simple, tracking, google...

ez-google-analytics/index.php 85% from 13 tests

The main file in "EZ Google Analytics" v. 4.1.07 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 148 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ez-google-analytics.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin139 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP112993
PO File115546

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.76
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

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