84% siconet-google-analytics-opt-out-link

Code Review | Google Analytics Opt-Out Link Shortcode by SICONET

WordPress plugin Google Analytics Opt-Out Link Shortcode by SICONET scored 84% from 54 tests.

About plugin

  • Plugin page: siconet-google-an...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.0.2
  • WordPress version: 6.3.1
  • First release: Aug 19, 2018
  • Latest release: Feb 16, 2019
  • Number of updates: 5
  • Update frequency: every 36.2 days
  • Top authors: siconet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 566 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.01MB] [CPU: ▼5.08ms] Passed 4 tests

Server-side resources used by Google Analytics Opt-Out Link Shortcode by SICONET
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.73 ▼3.88
Dashboard /wp-admin3.31 ▲0.0146.97 ▼5.01
Posts /wp-admin/edit.php3.36 ▲0.0144.85 ▼1.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.61 ▼7.62
Media Library /wp-admin/upload.php3.23 ▲0.0136.28 ▼3.81

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Google Analytics Opt-Out Link Shortcode by SICONET
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.10 ▼1.541.82 ▼0.1937.78 ▼12.49
Dashboard /wp-admin2,206 ▲155.91 ▲0.0397.80 ▼3.7736.96 ▼7.11
Posts /wp-admin/edit.php2,086 ▼02.00 ▼0.0336.60 ▼1.7034.47 ▲0.34
Add New Post /wp-admin/post-new.php1,520 ▼2322.99 ▲4.76596.86 ▼28.2463.20 ▲1.74
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0293.34 ▼9.0340.63 ▼3.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, 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 75% from 4 tests

Server-side errors Passed 1 test

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

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 output text when accessed directly:
    • > /wp-content/plugins/siconet-google-analytics-opt-out-link/siconet-google-analytics-opt-out-link-shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Requires php: Invalid version format
You can look at the official readme.txt

siconet-google-analytics-opt-out-link/siconet-google-analytics-opt-out-link-shortcode.php 92% from 13 tests

This is the main PHP file of "Google Analytics Opt-Out Link Shortcode by SICONET" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("siconet-google-analytics-opt-out-link.php" instead of "siconet-google-analytics-opt-out-link-shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected35 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP152431
Markdown1104

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin