78% cf7-leads-integrate-in-zoho

Code Review | inoday-Web-to-Lead-Zoho

WordPress plugin inoday-Web-to-Lead-Zoho scored78%from 54 tests.

About plugin

  • Plugin page: cf7-leads-integra...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.8
  • WordPress version: 6.3.1
  • First release: Jul 27, 2017
  • Latest release: Aug 10, 2017
  • Number of updates: 8
  • Update frequency: every 1.8 days
  • Top authors: inodayconsultancy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /754 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by inoday-Web-to-Lead-Zoho
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.08 ▼5.80
Dashboard /wp-admin3.32 ▲0.0144.42 ▼3.21
Posts /wp-admin/edit.php3.37 ▲0.0145.23 ▼2.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.37 ▼2.61
Media Library /wp-admin/upload.php3.24 ▲0.0136.39 ▲3.61
Zoho Settings /wp-admin/options-general.php?page=cf7liz_plugin3.1831.23

Server storage [IO: ▲0.02MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

inoday-Web-to-Lead-Zoho: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.62 ▼0.732.22 ▲0.1939.48 ▼9.86
Dashboard /wp-admin2,210 ▲195.83 ▼0.0796.41 ▼3.0740.80 ▲0.33
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0137.11 ▼4.2533.36 ▼2.70
Add New Post /wp-admin/post-new.php1,545 ▲318.15 ▼4.94640.90 ▲49.6456.82 ▲8.25
Media Library /wp-admin/upload.php1,392 ▲44.30 ▲0.0893.01 ▼2.3342.93 ▲2.60
Zoho Settings /wp-admin/options-general.php?page=cf7liz_plugin7982.0634.4737.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=cf7liz_plugin
    • > Notice in wp-content/plugins/cf7-leads-integrate-in-zoho/admin/admin.php+51
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cf7-leads-integrate-in-zoho/zoholeads.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: You can look at the official readme.txt

cf7-leads-integrate-in-zoho/zoholeads.php 92% from 13 tests

The principal PHP file in "inoday-Web-to-Lead-Zoho" v. 1.3.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cf7-leads-integrate-in-zoho.php" instead of "zoholeads.php")

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
No dangerous file extensions were detected89 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3201989

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 were not PNG files found in your plugin