63% easy-split-test-tab

Code Review | Easy Split Test Tab

WordPress plugin Easy Split Test Tab scored63%from 54 tests.

About plugin

  • Plugin page: easy-split-test-tab
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 6.3.1
  • First release: Oct 7, 2013
  • Latest release: Oct 9, 2013
  • Number of updates: 23
  • Update frequency: every 0.2 days
  • Top authors: ErtyGi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,330 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Easy Split Test Tab
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.51 ▼9.06
Dashboard /wp-admin3.38 ▲0.0346.16 ▼14.95
Posts /wp-admin/edit.php3.49 ▲0.1449.16 ▲3.57
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.11 ▼10.49
Media Library /wp-admin/upload.php3.30 ▲0.0740.32 ▲7.91
Help /wp-admin/admin.php?page=easy-split-test-tab-help3.4631.90
Experiments /wp-admin/admin.php?page=easy-split-test-tab3.3237.43
Options /wp-admin/admin.php?page=easy-split-test-tab-setting-admin3.2734.09

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: 1 new table, 8 new options
New tables
wp_easy_splittest_tab
New WordPress options
easy_splittest_tab_credits
easy_splittest_tab_noindex
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Easy Split Test Tab: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲18513.44 ▼1.289.39 ▲7.3437.94 ▼7.81
Dashboard /wp-admin2,225 ▲485.76 ▲0.1787.81 ▼6.5785.37 ▲44.10
Posts /wp-admin/edit.php2,138 ▲382.03 ▲0.0435.78 ▼3.4531.41 ▼5.41
Add New Post /wp-admin/post-new.php1,707 ▲17222.28 ▼2.55672.95 ▲52.3253.95 ▼11.37
Media Library /wp-admin/upload.php1,441 ▲444.23 ▲0.0198.32 ▼6.0176.59 ▲33.91
Help /wp-admin/admin.php?page=easy-split-test-tab-help8921.6830.8434.17
Experiments /wp-admin/admin.php?page=easy-split-test-tab1,0711.7126.4026.93
Options /wp-admin/admin.php?page=easy-split-test-tab-setting-admin9012.0529.9530.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_easy_splittest_tab
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-comments
    • easy_splittest_tab_credits
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • easy_splittest_tab_noindex

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=easy-split-test-tab-help
    • > User deprecated in wp-includes/functions.php+5643
    File rss.php is deprecated since version 3.0.0! Use wp-includes/class-simplepie.php instead.
    • > GET request to /wp-admin/admin.php?page=easy-split-test-tab-help
    • > Notice in wp-content/plugins/easy-split-test-tab/admin/st_help_page.php+40
    Trying to get property 'items' of non-object
    • > GET request to /wp-admin/admin.php?page=easy-split-test-tab-help
    • > Warning in wp-content/plugins/easy-split-test-tab/admin/st_help_page.php+40
    array_slice() expects parameter 1 to be array, null given

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 fix the following
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-split-test-tab/admin/split-test-admin-tables.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-split-test-tab/admin/split-test-admin-tables.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-split-test-tab/admin/split-test-options.php:4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/easy-split-test-tab/admin/split-test-admin-tables.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-split-test-tab/admin/st_help_page.php:9
    • > PHP Warning
      Use of undefined constant EASY_SPLITTEST_TAB_URL - assumed 'EASY_SPLITTEST_TAB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-split-test-tab/admin/st_help_page.php on line 8
    • > PHP Warning
      Use of undefined constant EASY_SPLITTEST_TAB_URL - assumed 'EASY_SPLITTEST_TAB_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-split-test-tab/admin/split-test-options.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easy-split-test-tab-setting-admin
    • > Network (severe)
    wp-content/plugins/easy-split-test-tab/css/easy-split-test-tab.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: track, experiments, split test, google, goal...

easy-split-test-tab/easy-split-test-tab.php Passed 13 tests

The main PHP script in "Easy Split Test Tab" version 1.2.1 is automatically included on every request by WordPress
119 characters long description:
This plugin help you and Google Analytics to create experiments that test which version of a landing page leads better.

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
Everything looks great! No dangerous files found in this plugin692 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4190107550
PO File14851120
CSS16022

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity21.50
▷ Minimum class complexity20.00
▷ Maximum class complexity23.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/inactive.png0.94KB0.83KB▼ 12.11%
img/st_logo_16x16.png0.61KB0.26KB▼ 57.23%
img/st_logo_32x32.png1.25KB0.50KB▼ 60.31%
img/SetSize2424-twitter.png1.13KB1.38KB0.00%
img/active.png0.89KB0.79KB▼ 11.90%