68% exclude-ips-from-google-analytics

Code Review | Exclude IPs From Google Analytics

WordPress plugin Exclude IPs From Google Analytics scored68%from 54 tests.

About plugin

  • Plugin page: exclude-ips-from-...
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7
  • WordPress version: 6.3.1
  • First release: May 31, 2017
  • Latest release: May 31, 2017
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: evgeniypoznyak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /867 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.03ms] Passed 4 tests

Analyzing server-side resources used by Exclude IPs From Google Analytics
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0247.80 ▲4.04
Dashboard /wp-admin3.33 ▼0.0251.22 ▼13.92
Posts /wp-admin/edit.php3.38 ▲0.0248.60 ▼1.58
Add New Post /wp-admin/post-new.php5.91 ▲0.0299.47 ▲0.20
Media Library /wp-admin/upload.php3.26 ▲0.0238.01 ▲3.18
Analytics /wp-admin/options-general.php?page=analytics-plugin-settings3.2134.05

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Exclude IPs From Google Analytics
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4314.27 ▼0.281.74 ▲0.1043.40 ▼3.26
Dashboard /wp-admin2,202 ▲215.60 ▼0.0985.09 ▼20.6039.24 ▼5.29
Posts /wp-admin/edit.php2,101 ▼22.05 ▲0.0439.11 ▲0.5038.88 ▲3.20
Add New Post /wp-admin/post-new.php1,550 ▲323.00 ▼0.51616.31 ▼78.7347.15 ▼15.33
Media Library /wp-admin/upload.php1,398 ▲44.33 ▲0.0698.88 ▼3.8545.86 ▼1.65
Analytics /wp-admin/options-general.php?page=analytics-plugin-settings8032.0328.3229.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-includes/option.php+2520
    Undefined index: evg_ext_woo_settings_id
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=analytics-plugin-settings
    • > Notice in wp-content/plugins/exclude-ips-from-google-analytics/functions.php+61
    Trying to access array offset on value of type bool

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/exclude-ips-from-google-analytics/index.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/exclude-ips-from-google-analytics/settings_form.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: google analytics, analytics, seo, tracking

exclude-ips-from-google-analytics/index.php 92% from 13 tests

"Exclude IPs From Google Analytics" version 1.00's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("exclude-ips-from-google-analytics.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected124 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35723124

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin