89% cf7-marketo-lite

Code Review | Marketo Lite for Contact Form 7

WordPress plugin Marketo Lite for Contact Form 7 scored89%from 54 tests.

About plugin

  • Plugin page: cf7-marketo-lite
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 5, 2018
  • Latest release: Feb 17, 2019
  • Number of updates: 19
  • Update frequency: every 21.5 days
  • Top authors: ryanitsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,277 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 successfully, without throwing any errors or notices

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

An overview of server-side resources used by Marketo Lite for Contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.27 ▼1.79
Dashboard /wp-admin3.32 ▼0.0244.89 ▼12.33
Posts /wp-admin/edit.php3.37 ▲0.0242.36 ▼6.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.65 ▼10.31
Media Library /wp-admin/upload.php3.24 ▲0.0234.32 ▼0.17

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Marketo Lite for Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲3713.20 ▼1.191.74 ▼0.3143.63 ▲2.81
Dashboard /wp-admin2,211 ▲235.82 ▼0.0898.95 ▼2.3136.89 ▼6.12
Posts /wp-admin/edit.php2,097 ▲52.01 ▼0.0436.85 ▼5.6933.68 ▼1.80
Add New Post /wp-admin/post-new.php1,550 ▲3118.44 ▼4.52622.83 ▼55.4560.32 ▲2.21
Media Library /wp-admin/upload.php1,396 ▲54.21 ▼0.0894.81 ▼3.8847.11 ▲5.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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
10 plugin tags: contact, form, marketo, cf7, mailing list...

cf7-marketo-lite/marketo-lite-for-cf7.php 85% from 13 tests

Analyzing the main PHP file in "Marketo Lite for Contact Form 7" version 1.6
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "2.2")
  • Main file name: The principal plugin file should be the same as the plugin slug ("cf7-marketo-lite.php" instead of "marketo-lite-for-cf7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,718 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP86713431,537
JavaScript226083
CSS111061
Markdown111037

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity26.50
▷ Minimum class complexity2.00
▷ Maximum class complexity47.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods81
▷ Static methods2328.40%
▷ Public methods7997.53%
▷ Protected methods00.00%
▷ Private methods22.47%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin