94% abtesting-ai

Code Review | ABtesting.ai - Landing Page Optimization

WordPress plugin ABtesting.ai - Landing Page Optimization scored 94% from 54 tests.

About plugin

  • Plugin page: abtesting-ai
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.7.2
  • WordPress version: 5.9.2
  • First release: Feb 19, 2020
  • Latest release: Jun 14, 2021
  • Number of updates: 5
  • Update frequency: every 96.2 days
  • Top authors: rsteca (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active / 837 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼297.13ms] Passed 4 tests

A check of server-side resources used by ABtesting.ai - Landing Page Optimization
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1256.03 ▲5.42
Dashboard /wp-admin3.47 ▲0.0634.25 ▲0.53
Posts /wp-admin/edit.php3.69 ▲0.0538.57 ▲1.61
Add New Post /wp-admin/post-new.php6.94 ▼0.0493.36 ▼1,188.96
Media Library /wp-admin/upload.php3.34 ▲0.0525.27 ▼1.71

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ABtesting.ai - Landing Page Optimization: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,949 ▲19516.59 ▲0.6219.35 ▲13.323.11 ▲0.58
Dashboard /wp-admin2,906 ▲456.12 ▼0.06118.53 ▼14.23155.35 ▼10.04
Posts /wp-admin/edit.php2,702 ▲143.24 ▲0.0161.48 ▼0.18140.88 ▲0.91
Add New Post /wp-admin/post-new.php1,674 ▼4316.04 ▼5.14392.40 ▼40.95159.17 ▲0.47
Media Library /wp-admin/upload.php1,704 ▲65.51 ▼0.00148.49 ▼2.70188.26 ▼3.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller 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
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/abtesting-ai/public/partials/abtesting-ai-public-display.php
    • > /wp-content/plugins/abtesting-ai/admin/partials/abtesting-ai-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: lead generation, mobile app landing page, lead capture page, conversion rate optimization, splash page...

abtesting-ai/abtesting-ai.php Passed 13 tests

The main PHP script in "ABtesting.ai - Landing Page Optimization" version 1.0.0 is automatically included on every request by WordPress
51 characters long description:
Automate your landing page A/B testing by using AI.

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
Everything looks great! No dangerous files found in this plugin182 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12119535176
JavaScript24546
CSS2080

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin