94% splitwit

Code Review | SplitWit

WordPress plugin SplitWit scored 94% from 54 tests.

About plugin

  • Plugin page: splitwit
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.3.2
  • WordPress version: 5.8.1
  • First release: Mar 22, 2020
  • Latest release: Apr 5, 2020
  • Number of updates: 4
  • Update frequency: every 8.0 days
  • Top authors: splitwit (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 215 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼147.03ms] Passed 4 tests

Analyzing server-side resources used by SplitWit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.82 ▲9.66
Dashboard /wp-admin3.07 ▲0.0241.56 ▼13.31
Posts /wp-admin/edit.php3.12 ▲0.0247.51 ▲0.16
Add New Post /wp-admin/post-new.php5.43 ▼0.0095.40 ▼573.21
Media Library /wp-admin/upload.php3.01 ▲0.0134.54 ▼1.74
SplitWit Experiments /wp-admin/options-general.php?page=splitwit_settings2.9831.58

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for SplitWit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,720 ▲12415.91 ▲0.078.67 ▼1.7753.27 ▲3.93
Dashboard /wp-admin2,990 ▲565.86 ▼0.14161.98 ▲2.83120.00 ▼3.61
Posts /wp-admin/edit.php2,753 ▲142.69 ▼0.0171.17 ▲1.7994.42 ▼0.04
Add New Post /wp-admin/post-new.php1,694 ▲11318.74 ▼1.42375.45 ▼33.00114.43 ▼1.57
Media Library /wp-admin/upload.php1,824 ▲144.99 ▼0.05173.38 ▲15.64126.57 ▼0.79
SplitWit Experiments /wp-admin/options-general.php?page=splitwit_settings1,0562.0957.0766.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/splitwit/splitwit.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: split testing, ab testing, split test, conversions

splitwit/splitwit.php 92% from 13 tests

The principal PHP file in "SplitWit" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 383 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin45 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201045

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions6
▷ Named functions6100.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
PNG images were not found in this plugin