10% tiny-google-analytics

Code Review | Tiny Google Analytics

WordPress plugin Tiny Google Analytics scored10%from 54 tests.

About plugin

  • Plugin page: tiny-google-analy...
  • Plugin version: 20130416...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 16, 2013
  • Latest release: Apr 16, 2013
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: hellmind (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /8,112 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/tiny-google-analytics/tiny-google-analytics.php+63
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.44ms] Passed 4 tests

A check of server-side resources used by Tiny Google Analytics
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.34 ▼5.71
Dashboard /wp-admin3.34 ▲0.0345.25 ▼2.95
Posts /wp-admin/edit.php3.39 ▲0.0351.39 ▲3.97
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.72 ▼15.15
Media Library /wp-admin/upload.php3.26 ▲0.0337.44 ▲2.07
Tiny Google Analytics /wp-admin/options-general.php?page=tiny-google-analytics/tiny-google-analytics.php3.2031.13

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
gap_options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Tiny Google Analytics
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.49 ▼0.9014.14 ▲12.2937.11 ▼7.02
Dashboard /wp-admin2,210 ▲195.77 ▲0.6896.81 ▼20.4540.58 ▼3.38
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0139.87 ▲3.9234.59 ▼0.30
Add New Post /wp-admin/post-new.php1,517 ▼217.68 ▼5.46645.48 ▼60.7455.93 ▲2.19
Media Library /wp-admin/upload.php1,392 ▲74.20 ▼0.0899.15 ▲2.4144.52 ▲1.25
Tiny Google Analytics /wp-admin/options-general.php?page=tiny-google-analytics/tiny-google-analytics.php7772.0623.0329.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • gap_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=tiny-google-analytics/tiny-google-analytics.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=tiny-google-analytics/tiny-google-analytics.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/tiny-google-analytics/tiny-google-analytics.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: google analytics multiste, small google analytics, optimized google analytics, tiny google analytics

tiny-google-analytics/tiny-google-analytics.php 92% from 13 tests

The main PHP file in "Tiny Google Analytics" ver. 20130416... adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "20130416...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin94 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP101194

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected