90% cookieless-privacy-focused-google-analytics

Code Review | Cookieless Privacy-Focused Google Analytics

WordPress plugin Cookieless Privacy-Focused Google Analytics scored90%from 54 tests.

About plugin

  • Plugin page: cookieless-privac...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2020
  • Latest release: Jun 6, 2020
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: hiroprot (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /1,413 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.05MB] [CPU: ▼8.04ms] Passed 4 tests

Server-side resources used by Cookieless Privacy-Focused Google Analytics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.68 ▲3.38
Dashboard /wp-admin3.36 ▲0.0644.96 ▼6.09
Posts /wp-admin/edit.php3.41 ▲0.0545.36 ▼2.82
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.40 ▼23.26
Media Library /wp-admin/upload.php3.28 ▲0.0533.97 ▲0.01
Cookieless Google Analytics /wp-admin/options-general.php?page=cookieless_privacy_focused_google_analytics3.2536.78

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: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cookieless Privacy-Focused Google Analytics
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.23 ▼1.061.64 ▼0.0643.40 ▲1.40
Dashboard /wp-admin2,207 ▲215.84 ▼0.0999.94 ▼14.4839.28 ▼2.81
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0736.38 ▼5.4932.79 ▼4.31
Add New Post /wp-admin/post-new.php1,536 ▼623.22 ▲4.61636.45 ▼24.9059.72 ▼6.54
Media Library /wp-admin/upload.php1,392 ▲74.17 ▼0.1094.46 ▼5.2540.54 ▼4.45
Cookieless Google Analytics /wp-admin/options-general.php?page=cookieless_privacy_focused_google_analytics8212.0223.2727.26

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
6 plugin tags: privacy, gdpr, cookie, cookies, analytics...

cookieless-privacy-focused-google-analytics/cookieless-privacy-focused-google-analytics.php 92% from 13 tests

The entry point to "Cookieless Privacy-Focused Google Analytics" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin231 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15386231

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin