84% abtesting-ai

Code Review | ABtesting.ai - Landing Page Optimization

WordPress plugin ABtesting.ai - Landing Page Optimization scored84%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: 6.3.1
  • 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

100+ active /1,555 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by ABtesting.ai - Landing Page Optimization
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.33 ▼4.45
Dashboard /wp-admin3.32 ▲0.0158.85 ▲2.10
Posts /wp-admin/edit.php3.37 ▲0.0150.56 ▲0.78
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.22 ▼8.26
Media Library /wp-admin/upload.php3.24 ▲0.0139.90 ▲6.12

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for ABtesting.ai - Landing Page Optimization
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲16313.79 ▼0.779.93 ▲8.2537.98 ▼10.38
Dashboard /wp-admin2,208 ▲285.61 ▲0.0291.17 ▼3.0042.80 ▼3.84
Posts /wp-admin/edit.php2,116 ▲161.97 ▼0.0534.68 ▼5.9331.16 ▼10.27
Add New Post /wp-admin/post-new.php1,533 ▲722.96 ▼0.91686.88 ▼22.1756.88 ▲6.08
Media Library /wp-admin/upload.php1,410 ▲104.22 ▼0.0299.98 ▼14.2450.69 ▲1.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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 | 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 take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/abtesting-ai/admin/partials/abtesting-ai-admin-display.php
    • > /wp-content/plugins/abtesting-ai/public/partials/abtesting-ai-public-display.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: landing page, landing page optimization, sales page, conversion rate optimization, mobile app landing page...

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

The primary PHP file in "ABtesting.ai - Landing Page Optimization" version 1.0.0 is used by WordPress to initiate all plugin functionality
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 review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected182 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12119535176
JavaScript24546
CSS2080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in 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
There were not PNG files found in your plugin