89% ga-google-analytics-by-esteem-host

Code Review | WE - Google Analytics

WordPress plugin WE - Google Analytics scored89%from 54 tests.

About plugin

  • Plugin page: ga-google-analyti...
  • Plugin version: 1.4
  • PHP compatiblity: 5.6.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 12, 2018
  • Latest release: Jul 6, 2023
  • Number of updates: 16
  • Update frequency: every 106.5 days
  • Top authors: wordpresteem (75%)pmehtpli (31.25%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /931 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by WE - Google Analytics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0941.50 ▼6.19
Dashboard /wp-admin3.40 ▲0.1050.52 ▼1.21
Posts /wp-admin/edit.php3.52 ▲0.1655.17 ▼0.98
Add New Post /wp-admin/post-new.php5.98 ▲0.1092.41 ▼16.85
Media Library /wp-admin/upload.php3.33 ▲0.1040.14 ▲2.72
Google Analytics /wp-admin/options-general.php?page=ga-google-analytics3.3236.32

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WE - Google Analytics
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.311.60 ▲0.1343.38 ▲2.24
Dashboard /wp-admin2,199 ▲315.65 ▲0.0884.11 ▼8.7438.35 ▼2.90
Posts /wp-admin/edit.php2,107 ▲72.03 ▲0.0244.32 ▲7.8137.75 ▼0.87
Add New Post /wp-admin/post-new.php1,531 ▼423.01 ▲4.49678.08 ▼24.8464.74 ▼2.89
Media Library /wp-admin/upload.php1,404 ▲44.17 ▼0.0295.25 ▼15.5744.91 ▲2.53
Google Analytics /wp-admin/options-general.php?page=ga-google-analytics1,0651.6626.8731.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (WE - GA Google Analytics: Plugin Settings (default)), #2 (WE - GA Google Analytics: Plugin Settings (expanded))
Please take inspiration from this readme.txt

ga-google-analytics-by-esteem-host/ga-google-analytics.php 92% from 13 tests

"WE - Google Analytics" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ga-google-analytics-by-esteem-host.php" instead of "ga-google-analytics.php")

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
There were no executable files found in this plugin610 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP533742573
CSS17128
JavaScript1919

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity59.00
▷ Minimum class complexity59.00
▷ Maximum class complexity59.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin