84% gravity-forms-ab-testing

Code Review | Gravity Forms A/B Testing

WordPress plugin Gravity Forms A/B Testing scored84%from 54 tests.

About plugin

  • Plugin page: gravity-forms-ab-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2015
  • Latest release: Apr 10, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Asitha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,384 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼15.41ms] Passed 4 tests

An overview of server-side resources used by Gravity Forms A/B Testing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.96 ▼0.45
Dashboard /wp-admin3.31 ▼0.0344.79 ▼14.34
Posts /wp-admin/edit.php3.36 ▲0.0145.79 ▼6.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.48 ▼39.37
Media Library /wp-admin/upload.php3.23 ▲0.0132.79 ▼1.14

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Gravity Forms A/B Testing
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.25 ▼1.301.73 ▼0.0354.60 ▲9.92
Dashboard /wp-admin2,203 ▲115.79 ▲0.81105.69 ▼2.7936.96 ▼6.80
Posts /wp-admin/edit.php2,089 ▲31.99 ▼0.0339.05 ▲2.1135.00 ▼4.15
Add New Post /wp-admin/post-new.php1,533 ▼023.23 ▼0.04663.30 ▼20.7656.81 ▼9.47
Media Library /wp-admin/upload.php1,382 ▼64.20 ▲0.0496.42 ▼1.3741.12 ▲1.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gravity-forms-ab-testing/gravity_ab.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === gravity-forms-ab-testing === )
Please take inspiration from this readme.txt

gravity-forms-ab-testing/gravity_ab.php 92% from 13 tests

The entry point to "Gravity Forms A/B Testing" version 0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("gravity-forms-ab-testing.php" instead of "gravity_ab.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141017

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
PNG images were not found in this plugin