72% uptain-connect

Code Review | Conversion Optimization with Exit-Intent Popups and Abandoned Shopping Cart Emails

WordPress plugin Conversion Optimization with Exit-Intent Popups and Abandoned Shopping Cart Emails scored72%from 54 tests.

About plugin

  • Plugin page: uptain-connect
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2018
  • Latest release: Sep 29, 2023
  • Number of updates: 9
  • Update frequency: every 218.1 days
  • Top authors: timgieske (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,044 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.40MB] [CPU: ▼19.37ms] Passed 4 tests

An overview of server-side resources used by Conversion Optimization with Exit-Intent Popups and Abandoned Shopping Cart Emails
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3240.47 ▲4.93
Dashboard /wp-admin3.63 ▲0.2845.52 ▼13.63
Posts /wp-admin/edit.php3.68 ▲0.3249.02 ▼1.27
Add New Post /wp-admin/post-new.php3.44 ▼2.4537.59 ▼67.49
Media Library /wp-admin/upload.php3.49 ▲0.2642.08 ▲6.49
uptain /wp-admin/options-general.php?page=wf-uptain-tracking3.4534.96

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 472 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Conversion Optimization with Exit-Intent Popups and Abandoned Shopping Cart Emails: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.28 ▼1.341.68 ▲0.1341.02 ▲2.81
Dashboard /wp-admin2,210 ▲194.87 ▼0.00109.66 ▲7.8446.99 ▲3.23
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0538.54 ▼2.7036.90 ▲0.99
Add New Post /wp-admin/post-new.php1,517 ▼2617.49 ▼0.73669.43 ▲57.7255.63 ▲2.13
Media Library /wp-admin/upload.php1,392 ▲14.17 ▼0.01107.44 ▲9.7646.61 ▲1.89
uptain /wp-admin/options-general.php?page=wf-uptain-tracking9062.0222.5440.56

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
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 197× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Console\\Helper\\Helper' not found in wp-content/plugins/uptain-connect/vendor/symfony/console/Helper/DescriptorHelper.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\String\\Exception\\ExceptionInterface' not found in wp-content/plugins/uptain-connect/vendor/symfony/string/Exception/InvalidArgumentException.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/uptain-connect/vendor/symfony/console/Command/ListCommand.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'League\\Flysystem\\Adapter\\AbstractAdapter' not found in wp-content/plugins/uptain-connect/vendor/league/flysystem/src/Adapter/Local.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Console\\Formatter\\OutputFormatterInterface' not found in wp-content/plugins/uptain-connect/vendor/symfony/console/Formatter/NullOutputFormatter.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Console\\Completion\\Output\\CompletionOutputInterface' not found in wp-content/plugins/uptain-connect/vendor/symfony/console/Completion/Output/BashCompletionOutput.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Console\\Formatter\\WrappableOutputFormatterInterface' not found in wp-content/plugins/uptain-connect/vendor/symfony/console/Formatter/OutputFormatter.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'CoenJacobs\\Mozart\\Replace\\BaseReplacer' not found in wp-content/plugins/uptain-connect/vendor/coenjacobs/mozart/src/Replace/NamespaceReplacer.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Console\\Helper\\HelperInterface' not found in wp-content/plugins/uptain-connect/vendor/symfony/console/Helper/Helper.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Console\\Output\\Output' not found in wp-content/plugins/uptain-connect/vendor/symfony/console/Output/BufferedOutput.php:17

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 errors were detected

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 75% 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
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
  • Donate link: Invalid URI ("www.uptain.de")
  • Tags: No valid plugin tags found
  • Contributors: No valid plugin tags found
The official readme.txt is a good inspiration

uptain-connect/wf-uptain-tracking.php 77% from 13 tests

The principal PHP file in "Conversion Optimization with Exit-Intent Popups and Abandoned Shopping Cart Emails" v. 2.0.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "5.8")
  • Main file name: Name the main plugin file the same as the plugin slug ("uptain-connect.php" instead of "wf-uptain-tracking.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
These items require your attention
  • Do not distribute dangerous files with your plugin
    • .exe - Executable in Windows
      • wp-content/plugins/uptain-connect/vendor/symfony/console/Resources/bin/hiddeninput.exe
46,954 lines of code in 442 files:
LanguageFilesBlank linesComment linesLines of code
PHP3907,48415,17243,464
JSON19002,462
Markdown222310653
YAML5261190
SVG10074
Bourne Again Shell1101460
XML30137
Dockerfile13014

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity12.98
▷ Minimum class complexity1.00
▷ Maximum class complexity196.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces64
Interfaces63
Traits14
Classes280
▷ Abstract classes165.71%
▷ Concrete classes26494.29%
▷ Final classes6524.62%
Methods2,438
▷ Static methods31112.76%
▷ Public methods2,02683.10%
▷ Protected methods1295.29%
▷ Private methods28311.61%
Functions332
▷ Named functions14944.88%
▷ Anonymous functions18355.12%
Constants229
▷ Global constants146.11%
▷ Class constants21593.89%
▷ Public constants16677.21%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin