84% cookieless-google-analytics

Code Review | CookieLess Google Analytics

WordPress plugin CookieLess Google Analytics scored84%from 54 tests.

About plugin

  • Plugin page: cookieless-google...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Mar 22, 2016
  • Latest release: Mar 22, 2016
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: bobvann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /655 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼14.18ms] Passed 4 tests

Analyzing server-side resources used by CookieLess Google Analytics
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.80 ▼7.45
Dashboard /wp-admin3.35 ▲0.0452.15 ▼5.95
Posts /wp-admin/edit.php3.40 ▲0.0454.43 ▼7.99
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.32 ▼35.32
Media Library /wp-admin/upload.php3.27 ▲0.0439.02 ▼3.71

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for CookieLess Google Analytics
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7414.63 ▼0.022.60 ▲0.6243.55 ▼7.24
Dashboard /wp-admin2,226 ▲385.85 ▲0.95107.49 ▼20.6139.58 ▼10.77
Posts /wp-admin/edit.php2,109 ▲171.98 ▼0.0341.21 ▼8.0834.40 ▼8.54
Add New Post /wp-admin/post-new.php1,550 ▲823.20 ▲2.35639.86 ▼137.5653.00 ▼9.06
Media Library /wp-admin/upload.php1,408 ▲204.15 ▼0.11102.16 ▼27.3240.96 ▼16.09

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookieless-google-analytics/cookieless-google-analytics.php:14

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === cookieless-google-analytics === )
  • Screenshots: Screenshot #1 (Plugin settings page) image missing
The official readme.txt is a good inspiration

cookieless-google-analytics/cookieless-google-analytics.php Passed 13 tests

The main file in "CookieLess Google Analytics" v. 0.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
a cookie-less version of Google Analytics plugin for Wordpress

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
Everything looks great! No dangerous files found in this plugin92 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1202292

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin