93% ab-tasty

Code Review | AB testing with AB Tasty

WordPress plugin AB testing with AB Tasty scored 93% 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: 5.9.2
  • 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

20+ active / 2,388 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of 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.53 ▲0.0166.14 ▲16.70
Dashboard /wp-admin3.42 ▲0.0134.47 ▼2.47
Posts /wp-admin/edit.php3.65 ▲0.0138.07 ▼1.10
Add New Post /wp-admin/post-new.php6.89 ▼0.0893.27 ▼1,204.82
Media Library /wp-admin/upload.php3.30 ▲0.0128.23 ▲2.50
ABTasty /wp-admin/options-general.php?page=ABTasty3.3224.97

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AB testing with AB Tasty
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,872 ▲11816.44 ▲0.4717.67 ▲11.453.23 ▲0.85
Dashboard /wp-admin2,897 ▲436.09 ▼0.02118.27 ▼18.22152.87 ▼5.96
Posts /wp-admin/edit.php2,696 ▲83.24 ▲0.0060.21 ▼2.85138.49 ▲0.15
Add New Post /wp-admin/post-new.php1,763 ▲10221.68 ▼1.12412.71 ▼0.18162.64 ▲6.96
Media Library /wp-admin/upload.php1,700 ▲25.50 ▼0.01137.28 ▼1.95189.28 ▲2.52
ABTasty /wp-admin/options-general.php?page=ABTasty1,3902.4052.73127.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
  • Donate link: Invalid URI ("")
The official readme.txt might help

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

The main PHP file in "AB testing with AB Tasty" ver. 2.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ab-tasty.php" instead of "abtasty.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected181 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
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/screen2.png129.72KB46.69KB▼ 64.01%
img/logo_AB_Tasty.png3.63KB1.75KB▼ 51.68%