94% add-to-google-calendar-contact-form-7

Code Review | Add to Google Calendar for Contact Form 7

WordPress plugin Add to Google Calendar for Contact Form 7 scored 94% from 54 tests.

About plugin

  • Plugin page: add-to-google-cal...
  • Plugin version: 1.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.2
  • WordPress version: 5.9.2
  • First release: Jan 30, 2019
  • Latest release: May 8, 2019
  • Number of updates: 22
  • Update frequency: every 4.5 days
  • Top authors: samuelsilvapt (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 3,003 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼301.11ms] Passed 4 tests

Server-side resources used by Add to Google Calendar for Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0252.67 ▲1.15
Dashboard /wp-admin3.43 ▲0.0231.70 ▲0.04
Posts /wp-admin/edit.php3.65 ▲0.0135.83 ▼1.52
Add New Post /wp-admin/post-new.php6.92 ▼0.0791.40 ▼1,203.13
Media Library /wp-admin/upload.php3.30 ▲0.0122.99 ▲0.19

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add to Google Calendar for Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,765 ▲1115.86 ▲0.156.06 ▼1.122.09 ▼0.95
Dashboard /wp-admin2,897 ▲366.04 ▼0.15116.56 ▼16.42152.86 ▼11.26
Posts /wp-admin/edit.php2,690 ▼13.24 ▲0.0063.97 ▼0.17139.43 ▼8.12
Add New Post /wp-admin/post-new.php1,670 ▲919.31 ▲2.74375.20 ▼34.75157.88 ▼0.99
Media Library /wp-admin/upload.php1,700 ▲85.54 ▲0.06137.20 ▼2.14184.49 ▼7.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/add-to-google-calendar-contact-form-7/admin-atc.php:4

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: forms, addtocalendar, googlecalendar, contactform7, eventbutton

add-to-google-calendar-contact-form-7/add-to-calendar-cf7.php 92% from 13 tests

"Add to Google Calendar for Contact Form 7" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-to-google-calendar-contact-form-7.php" instead of "add-to-calendar-cf7.php")

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
Good job! No executable or dangerous file extensions detected298 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected