94% tweeker

Code Review | Tweeker - Simple a/b and multivariate testing

WordPress plugin Tweeker - Simple a/b and multivariate testing scored 94% from 54 tests.

About plugin

  • Plugin page: tweeker
  • Plugin version: 1.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 5.8.1
  • First release: Jun 16, 2020
  • Latest release: Jul 11, 2020
  • Number of updates: 9
  • Update frequency: every 2.8 days
  • Top authors: tweekerio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 201 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼170.99ms] Passed 4 tests

Server-side resources used by Tweeker - Simple a/b and multivariate testing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1335.40 ▲9.93
Dashboard /wp-admin3.09 ▲0.0345.27 ▲0.79
Posts /wp-admin/edit.php3.14 ▲0.0342.37 ▼0.21
Add New Post /wp-admin/post-new.php5.45 ▲0.0193.86 ▼681.16
Media Library /wp-admin/upload.php3.03 ▲0.0233.85 ▼3.39
Tweeker /wp-admin/options-general.php?page=tweeker3.0030.13

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Tweeker - Simple a/b and multivariate testing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.87 ▲0.2010.35 ▲1.4948.32 ▲1.02
Dashboard /wp-admin2,978 ▲475.89 ▼0.02148.01 ▲4.43112.74 ▲5.43
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0063.21 ▼2.0493.58 ▲2.64
Add New Post /wp-admin/post-new.php1,503 ▼17318.57 ▼0.23370.61 ▼4.44108.78 ▲1.47
Media Library /wp-admin/upload.php1,812 ▲55.07 ▲0.03147.10 ▼0.14115.39 ▼0.42
Tweeker /wp-admin/options-general.php?page=tweeker1,0802.0951.9574.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tweeker/tweeker.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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
6 plugin tags: multivariate, cro, ab, conversion rate optimization, test...

tweeker/tweeker.php Passed 13 tests

The main PHP script in "Tweeker - Simple a/b and multivariate testing" version 1.1 is automatically included on every request by WordPress
85 characters long description:
Add Tweeker to your wordpress site. Simple a/b and multivariate testing on your site.

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
Good job! No executable or dangerous file extensions detected92 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3155892

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin