68% split-test-for-elementor

Code Review | Split Test For Elementor

WordPress plugin Split Test For Elementor scored68%from 54 tests.

About plugin

  • Plugin page: split-test-for-el...
  • Plugin version: 1.7.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Jul 5, 2018
  • Latest release: Nov 27, 2023
  • Number of updates: 99
  • Update frequency: every 19.9 days
  • Top authors: rocketelements (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

4,000+ active /84,895 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.52MB] [CPU: ▼7.31ms] Passed 4 tests

An overview of server-side resources used by Split Test For Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5441.04 ▼5.46
Dashboard /wp-admin3.84 ▲0.4959.21 ▼3.56
Posts /wp-admin/edit.php3.90 ▲0.5368.19 ▲22.12
Add New Post /wp-admin/post-new.php6.46 ▲0.56100.14 ▼42.32
Media Library /wp-admin/upload.php3.76 ▲0.5359.10 ▲24.23
Split Test /wp-admin/options-general.php?page=split-test-for-elementor3.6544.79

Server storage [IO: ▲0.55MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 69 new files
Database: 4 new tables, 9 new options
New tables
wp_elementor_splittest_interactions
wp_elementor_splittest_variations
wp_elementor_splittest_post
wp_elementor_splittest
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
split_test_for_elementor_db_version
rocket_split_test_variant_distribution_type
can_compress_scripts
rocket_split_test_cache_buster_active

Browser metrics Passed 4 tests

An overview of browser requirements for Split Test For Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8614.34 ▼0.361.88 ▼0.2639.31 ▼3.10
Dashboard /wp-admin2,198 ▲215.52 ▼0.0393.89 ▼7.0881.85 ▲35.22
Posts /wp-admin/edit.php2,121 ▲211.97 ▼0.1138.62 ▲2.8134.08 ▲0.73
Add New Post /wp-admin/post-new.php1,693 ▲16422.26 ▼0.83643.30 ▼20.0756.20 ▲10.02
Media Library /wp-admin/upload.php1,415 ▲154.22 ▼0.01100.33 ▲5.8972.17 ▲30.42
Split Test /wp-admin/options-general.php?page=split-test-for-elementor8042.0028.3726.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_elementor_splittest_post
    • wp_elementor_splittest_variations
    • wp_elementor_splittest
    • wp_elementor_splittest_interactions
  • Zombie WordPress options detected upon uninstall: 9 options
    • split_test_for_elementor_db_version
    • widget_theysaidso_widget
    • rocket_split_test_cache_buster_active
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • rocket_split_test_variant_distribution_type
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=split-test-for-elementor
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=split-test-for-elementor
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SplitTestForElementor\\classes\\misc\\LicenceManager' not found in wp-content/plugins/split-test-for-elementor/Admin/views/test/index.view.php:2
    • > PHP Notice
      Undefined variable: scope in wp-content/plugins/split-test-for-elementor/Admin/views/test/form.view.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/split-test-for-elementor/Admin/views/test/form.view.php:6
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/split-test-for-elementor/Admin/views/statistics/index.view.php on line 25
    • > PHP Notice
      Undefined variable: statsForChart in wp-content/plugins/split-test-for-elementor/Admin/views/statistics/index.view.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/split-test-for-elementor/plugin.php:59
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/split-test-for-elementor/Admin/views/statistics/index.view.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/split-test-for-elementor/Admin/Classes/Elementor/ConversionWidget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/split-test-for-elementor/Admin/views/test/form.view.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/split-test-for-elementor/Admin/views/test/form.view.php:6

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: online marketing, split testing, elementor

split-test-for-elementor/plugin.php 92% from 13 tests

The primary PHP file in "Split Test For Elementor" version 1.7.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("split-test-for-elementor.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected8,950 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP601,0236464,287
JSON2003,925
CSS1850409
JavaScript27138329

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity11.10
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces14
Interfaces0
Traits0
Classes49
▷ Abstract classes00.00%
▷ Concrete classes49100.00%
▷ Final classes00.00%
Methods202
▷ Static methods2612.87%
▷ Public methods18189.60%
▷ Protected methods20.99%
▷ Private methods199.41%
Functions25
▷ Named functions312.00%
▷ Anonymous functions2288.00%
Constants12
▷ Global constants975.00%
▷ Class constants325.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
Admin/assets/images/icon.png3.29KB0.76KB▼ 76.92%