83% ab-tasty

Code Review | AB testing with AB Tasty

WordPress plugin AB testing with AB Tasty scored83%from 54 tests.

About plugin

  • Plugin page: ab-tasty
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.3
  • WordPress version: 6.3.1
  • First release: Jan 30, 2013
  • Latest release: Aug 11, 2015
  • Number of updates: 57
  • Update frequency: every 16.9 days
  • Top authors: remiaubert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,727 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by AB testing with AB Tasty
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.36 ▼0.29
Dashboard /wp-admin3.32 ▲0.0146.38 ▼7.06
Posts /wp-admin/edit.php3.37 ▲0.0152.78 ▼0.97
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.29 ▼2.87
Media Library /wp-admin/upload.php3.24 ▲0.0137.74 ▲2.95
ABTasty /wp-admin/options-general.php?page=ABTasty3.2235.44

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
abtasty_js_clientid
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for AB testing with AB Tasty
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.57 ▼0.812.11 ▲0.1944.41 ▲3.73
Dashboard /wp-admin2,207 ▲195.81 ▲0.94101.37 ▼8.2539.51 ▼0.29
Posts /wp-admin/edit.php2,096 ▲42.02 ▼0.0440.02 ▼0.5234.27 ▼6.23
Add New Post /wp-admin/post-new.php1,527 ▲823.32 ▲0.08648.18 ▼19.0952.25 ▲2.71
Media Library /wp-admin/upload.php1,392 ▲104.24 ▲0.08110.28 ▲6.6648.36 ▲5.27
ABTasty /wp-admin/options-general.php?page=ABTasty1,0482.0330.4932.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ab-tasty/abtasty.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/ab-tasty/abtasty_form.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

ab-tasty/abtasty.php 92% from 13 tests

The primary PHP file in "AB testing with AB Tasty" version 2.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ab-tasty.php" instead of "abtasty.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin181 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22616181

PHP code Passed 2 tests

This is a very shot 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 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%
Functions5
▷ Named functions5100.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
3 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/screen1.png17.48KB9.56KB▼ 45.29%
img/logo_AB_Tasty.png3.63KB1.75KB▼ 51.68%
img/screen2.png129.72KB46.69KB▼ 64.01%