89% analytify-contact-form-7-gooogle-analytics-tracking

Code Review | Contact form 7 Google Analytics Tracking by Analytify

WordPress plugin Contact form 7 Google Analytics Tracking by Analytify scored89%from 54 tests.

About plugin

  • Plugin page: analytify-contact...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Dec 14, 2017
  • Latest release: Dec 31, 2018
  • Number of updates: 5
  • Update frequency: every 76.6 days
  • Top authors: hiddenpearls (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,223 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼12.34ms] Passed 4 tests

Server-side resources used by Contact form 7 Google Analytics Tracking by Analytify
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.63 ▲0.27
Dashboard /wp-admin3.31 ▲0.0047.21 ▼3.77
Posts /wp-admin/edit.php3.36 ▲0.0044.76 ▼4.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.51 ▼27.93
Media Library /wp-admin/upload.php3.23 ▲0.0033.78 ▼13.66

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] 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
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Contact form 7 Google Analytics Tracking by Analytify
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.28 ▼0.451.71 ▲0.0339.56 ▼0.46
Dashboard /wp-admin2,206 ▲295.63 ▼0.0486.39 ▼4.3736.77 ▼6.74
Posts /wp-admin/edit.php2,111 ▲112.02 ▼0.0036.59 ▲1.3734.90 ▲1.19
Add New Post /wp-admin/post-new.php1,531 ▲323.61 ▲0.76676.61 ▼4.6354.56 ▲1.16
Media Library /wp-admin/upload.php1,414 ▲204.26 ▲0.0896.79 ▲1.1141.85 ▲0.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (coming soon) image missing
Please take inspiration from this readme.txt

analytify-contact-form-7-gooogle-analytics-tracking/analytify-google-analytics-contact-form-7-tracking.php 77% from 13 tests

The main file in "Contact form 7 Google Analytics Tracking by Analytify" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("analytify-contact-form-7-gooogle-analytics-tracking.php" instead of "analytify-google-analytics-contact-form-7-tracking.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected103 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2324159
JavaScript111444

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin