68% formidable-ab-tests

Code Review | Formidable A/B Tests

WordPress plugin Formidable A/B Tests scored 68% from 54 tests.

About plugin

  • Plugin page: formidable-ab-tests
  • Plugin version: 0.07
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Jul 4, 2015
  • Latest release: Feb 23, 2016
  • Number of updates: 36
  • Update frequency: every 6.5 days
  • Top authors: surfjam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,291 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▲12.33ms] Passed 4 tests

A check of server-side resources used by Formidable A/B Tests
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2052.14 ▲11.04
Dashboard /wp-admin3.36 ▲0.0559.74 ▲13.70
Posts /wp-admin/edit.php3.47 ▲0.1168.43 ▲25.96
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.65 ▲3.74
Media Library /wp-admin/upload.php3.28 ▲0.0554.94 ▲20.82
A/B Test /wp-admin/admin.php?page=inmab_test3.2242.13

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, 7 new options
New tables
wp_inmab_data
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
inmab_db_version
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Formidable A/B Tests
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.11 ▼1.261.76 ▼0.1742.90 ▼0.95
Dashboard /wp-admin2,208 ▲235.90 ▲0.07107.23 ▲5.2940.06 ▼0.97
Posts /wp-admin/edit.php2,091 ▼12.04 ▲0.0541.07 ▲5.5336.12 ▲2.13
Add New Post /wp-admin/post-new.php1,531 ▲322.31 ▼0.77662.10 ▼3.9656.22 ▼1.51
Media Library /wp-admin/upload.php1,390 ▲54.21 ▲0.0496.42 ▼11.1545.23 ▼1.60
A/B Test /wp-admin/admin.php?page=inmab_test9702.0424.1329.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_inmab_data
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • inmab_db_version

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=inmab_test
    • > Notice in wp-content/plugins/formidable-ab-tests/functions/functions_admin_display.php+206
    Undefined offset: 0
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=inmab_test
    • > Notice in wp-content/plugins/formidable-ab-tests/functions/functions_admin_display.php+206
    Trying to access array offset on value of type null

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
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 add_action() in wp-content/plugins/formidable-ab-tests/functions/functions_admin_display.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/formidable-ab-tests/formidable-ab-tests.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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
4 plugin tags: formidable pro, ab testing, ab test, forms

formidable-ab-tests/formidable-ab-tests.php Passed 13 tests

This is the main PHP file of "Formidable A/B Tests" version 0.07, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
45 characters long description:
Easily A/B test Formidable Pro created forms.

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 plugin353 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP312469326
CSS10527

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Logo2_200.png22.40KB5.79KB▼ 74.15%