83% gf-merchant-warrior-add-on-directapi-method

Code Review | Merchant Warrior Add-On - DirectAPI Method for Gravity Forms

WordPress plugin Merchant Warrior Add-On - DirectAPI Method for Gravity Forms scored83%from 54 tests.

About plugin

  • Plugin page: gf-merchant-warri...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 6, 2016
  • Latest release: Sep 2, 2016
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: mrmoric (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /760 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.49ms] Passed 4 tests

An overview of server-side resources used by Merchant Warrior Add-On - DirectAPI Method for Gravity Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.71 ▼7.96
Dashboard /wp-admin3.41 ▲0.1151.08 ▲1.88
Posts /wp-admin/edit.php3.53 ▲0.1744.33 ▼1.37
Add New Post /wp-admin/post-new.php5.99 ▲0.1089.86 ▼6.51
Media Library /wp-admin/upload.php3.34 ▲0.1035.32 ▲2.28

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Merchant Warrior Add-On - DirectAPI Method for Gravity Forms: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.45 ▲0.161.78 ▼0.0554.86 ▲10.98
Dashboard /wp-admin2,203 ▲155.83 ▲0.9298.37 ▼16.4542.20 ▼1.31
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0236.67 ▼1.0635.72 ▲2.35
Add New Post /wp-admin/post-new.php1,533 ▲1923.24 ▲5.75641.72 ▼40.6654.02 ▼5.68
Media Library /wp-admin/upload.php1,388 ▲34.22 ▼0.0594.90 ▼10.0941.98 ▼1.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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 no errors were found, this is by no means 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/gf-merchant-warrior-add-on-directapi-method/views/admin-settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Contributors: Plugin contributors not specified
The official readme.txt might help

gf-merchant-warrior-add-on-directapi-method/gravityforms-merchantwarrior-directapi.php 69% from 13 tests

The main PHP file in "Merchant Warrior Add-On - DirectAPI Method for Gravity Forms" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("gf-merchant-warrior-add-on-directapi-method.php" instead of "gravityforms-merchantwarrior-directapi.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin806 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP7299483806

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity18.14
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods49
▷ Static methods1224.49%
▷ Public methods3673.47%
▷ Protected methods1020.41%
▷ Private methods36.12%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants1583.33%
▷ Class constants316.67%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin