84% marketing-automation-by-convertfox

Code Review | Gist All-In-One Marketing - Live Chat, Popups, Email

WordPress plugin Gist All-In-One Marketing - Live Chat, Popups, Email scored84%from 54 tests.

About plugin

  • Plugin page: marketing-automat...
  • Plugin version: 2.7
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 7, 2017
  • Latest release: Aug 17, 2023
  • Number of updates: 34
  • Update frequency: every 69.0 days
  • Top authors: convertfox (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /28,081 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.65ms] Passed 4 tests

Server-side resources used by Gist All-In-One Marketing - Live Chat, Popups, Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.53 ▼3.60
Dashboard /wp-admin3.38 ▲0.0857.79 ▲6.26
Posts /wp-admin/edit.php3.49 ▲0.1453.11 ▲3.04
Add New Post /wp-admin/post-new.php5.98 ▲0.0990.76 ▼9.54
Media Library /wp-admin/upload.php3.30 ▲0.0842.02 ▲3.51
Gist /wp-admin/options-general.php?page=convertfox-admin3.2734.71

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Gist All-In-One Marketing - Live Chat, Popups, Email: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.19 ▼1.111.71 ▼0.4343.86 ▼4.68
Dashboard /wp-admin2,212 ▲304.87 ▼1.03105.82 ▼9.6839.26 ▼5.20
Posts /wp-admin/edit.php2,098 ▲92.06 ▲0.0738.41 ▼0.7834.51 ▲0.16
Add New Post /wp-admin/post-new.php1,519 ▲517.57 ▲0.02679.37 ▲17.7858.92 ▼15.67
Media Library /wp-admin/upload.php1,397 ▲94.30 ▲0.13102.07 ▼10.8044.50 ▼1.70
Gist /wp-admin/options-general.php?page=convertfox-admin8911.6823.5627.64

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/marketing-automation-by-convertfox/convertfoxjs.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/marketing-automation-by-convertfox/convertfoxjs.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_front_page() in wp-content/plugins/marketing-automation-by-convertfox/convertfoxjs.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/marketing-automation-by-convertfox/page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function convertfox\\is_admin() in wp-content/plugins/marketing-automation-by-convertfox/convertfox.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: contact form, lead generation, mailchimp, gist, popup...

marketing-automation-by-convertfox/convertfox.php 85% from 13 tests

The principal PHP file in "Gist All-In-One Marketing - Live Chat, Popups, Email" v. 2.7 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("marketing-automation-by-convertfox.php" instead of "convertfox.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 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
There were no executable files found in this plugin434 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP45545409
JavaScript15025

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity27.00
▷ Minimum class complexity7.00
▷ Maximum class complexity47.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected