89% genius-marketo-form-prefill

Code Review | Genius Marketo Form Prefill (API-Free)

WordPress plugin Genius Marketo Form Prefill (API-Free) scored 89% from 54 tests.

About plugin

  • Plugin page: genius-marketo-fo...
  • Plugin version: 1.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 10, 2019
  • Latest release: Jul 10, 2019
  • Number of updates: 30
  • Update frequency: every 5.1 days
  • Top authors: ycalisar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 640 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
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲3.57ms] Passed 4 tests

A check of server-side resources used by Genius Marketo Form Prefill (API-Free)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.05 ▲3.83
Dashboard /wp-admin3.38 ▲0.0753.91 ▲7.72
Posts /wp-admin/edit.php3.43 ▲0.0751.36 ▲4.44
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.31 ▲1.54
Media Library /wp-admin/upload.php3.30 ▲0.0736.16 ▲4.47

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
MktoPrefill-api-key
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Genius Marketo Form Prefill (API-Free)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.30 ▼1.284.72 ▲3.1244.40 ▲2.78
Dashboard /wp-admin2,225 ▲345.88 ▲0.9996.49 ▼5.2339.61 ▼4.59
Posts /wp-admin/edit.php2,105 ▲192.01 ▲0.0234.74 ▼0.5237.24 ▲5.21
Add New Post /wp-admin/post-new.php1,527 ▼117.56 ▼0.66689.73 ▲73.8963.72 ▲9.18
Media Library /wp-admin/upload.php1,404 ▲224.14 ▼0.0793.80 ▼7.1940.90 ▼3.70

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

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)
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

genius-marketo-form-prefill/genius-marketo-prefill.php 77% from 13 tests

The primary PHP file in "Genius Marketo Form Prefill (API-Free)" version 1.2.6 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("genius-marketo-form-prefill.php" instead of "genius-marketo-prefill.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin396 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP319757396

PHP code Passed 2 tests

This is a very shot 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.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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin