83% cf7-to-google-sheets

Code Review | Sheet Monkey's Contact Form 7 to Google Sheets

WordPress plugin Sheet Monkey's Contact Form 7 to Google Sheets scored83%from 54 tests.

About plugin

  • Plugin page: cf7-to-google-sheets
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 9, 2021
  • Latest release: Oct 9, 2021
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: levismmall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /1,693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Sheet Monkey's Contact Form 7 to Google Sheets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.66 ▼1.22
Dashboard /wp-admin3.33 ▼0.0249.72 ▼13.53
Posts /wp-admin/edit.php3.38 ▲0.0247.21 ▼2.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.22 ▼5.59
Media Library /wp-admin/upload.php3.25 ▲0.0237.77 ▲1.75
Google Sheets 🐵 /wp-admin/admin.php?page=sheetmonkey-config3.2131.83

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Sheet Monkey's Contact Form 7 to Google Sheets: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.23 ▼0.121.84 ▼0.5145.56 ▲2.53
Dashboard /wp-admin2,198 ▲185.62 ▼0.0587.32 ▼2.1936.78 ▼5.57
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0335.69 ▼5.9833.43 ▼5.00
Add New Post /wp-admin/post-new.php1,526 ▼222.91 ▲0.15670.54 ▲71.4561.80 ▲4.14
Media Library /wp-admin/upload.php1,400 ▲64.12 ▼0.09120.30 ▲14.5845.12 ▲1.94
Google Sheets 🐵 /wp-admin/admin.php?page=sheetmonkey-config1,2889.17279.9164.25

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 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/cf7-to-google-sheets/plugin.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: form data, google sheets, form, contact form 7, cf7...

cf7-to-google-sheets/plugin.php 85% from 13 tests

The main PHP file in "Sheet Monkey's Contact Form 7 to Google Sheets" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cf7-to-google-sheets.php" instead of "plugin.php")
  • Description: The description should be shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin186 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP41565177
Markdown1609

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 1.47MB with 1.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128.png21.55KB7.28KB▼ 66.21%
assets/screenshot-3.png190.33KB56.30KB▼ 70.42%
assets/screenshot-2.png152.44KB43.87KB▼ 71.22%
monkey.png712.51KB181.60KB▼ 74.51%
assets/banner-772x250.png258.95KB63.96KB▼ 75.30%