84% causalfunnel-datascience

Code Review | CausalFunnel DataScience - Increase Conversion using AI and Data Science

WordPress plugin CausalFunnel DataScience - Increase Conversion using AI and Data Science scored84%from 54 tests.

About plugin

  • Plugin page: causalfunnel-data...
  • Plugin version: 1.0.14
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2022
  • Latest release: Nov 16, 2023
  • Number of updates: 34
  • Update frequency: every 10.5 days
  • Top authors: causalfunnel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /448 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.73ms] Passed 4 tests

A check of server-side resources used by CausalFunnel DataScience - Increase Conversion using AI and Data Science
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.61 ▼1.85
Dashboard /wp-admin3.31 ▼0.0350.77 ▼8.53
Posts /wp-admin/edit.php3.37 ▲0.0147.56 ▼1.96
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.84 ▼18.11
Media Library /wp-admin/upload.php3.24 ▲0.0132.71 ▼2.30

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

Browser metrics Passed 4 tests

Checking browser requirements for CausalFunnel DataScience - Increase Conversion using AI and Data Science
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /369 ▼2,3935.58 ▼8.66278.22 ▲276.47242.80 ▲196.41
Dashboard /wp-admin2,198 ▲245.64 ▲0.1095.58 ▼5.5340.18 ▼4.79
Posts /wp-admin/edit.php2,097 ▼31.97 ▲0.0040.52 ▲3.9335.84 ▼1.65
Add New Post /wp-admin/post-new.php1,526 ▼023.61 ▲0.20672.00 ▼23.0952.72 ▼48.22
Media Library /wp-admin/upload.php1,397 ▼34.25 ▼0.02103.72 ▲2.2842.39 ▼2.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/causalfunnel-datascience/causalfunnel.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: data-science, b2b, e-commerce, order bump, ads...

causalfunnel-datascience/causalfunnel.php 85% from 13 tests

The main PHP script in "CausalFunnel DataScience - Increase Conversion using AI and Data Science" version 1.0.14 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("causalfunnel-datascience.php" instead of "causalfunnel.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin93 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2291393

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions4
▷ Named functions4100.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