83% marketing-360-payments-for-gravity-forms

Code Review | Marketing 360® Payments for Gravity Forms

WordPress plugin Marketing 360® Payments for Gravity Forms scored83%from 54 tests.

About plugin

  • Plugin page: marketing-360-pay...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: May 17, 2021
  • Latest release: Jul 20, 2022
  • Number of updates: 35
  • Update frequency: every 23.4 days
  • Top authors: marketing360payments (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /653 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.64ms] Passed 4 tests

This is a short check of server-side resources used by Marketing 360® Payments for Gravity Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0232.78 ▼5.19
Dashboard /wp-admin3.33 ▲0.0248.82 ▼3.61
Posts /wp-admin/edit.php3.38 ▲0.0248.43 ▲1.28
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.40 ▼19.02
Media Library /wp-admin/upload.php3.25 ▲0.0237.35 ▲3.29

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Marketing 360® Payments for Gravity Forms: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.36 ▼1.021.69 ▼0.0441.20 ▲0.79
Dashboard /wp-admin2,206 ▲185.88 ▲0.99108.30 ▼6.3943.44 ▲2.18
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0639.56 ▼2.3234.96 ▲1.19
Add New Post /wp-admin/post-new.php1,547 ▲3318.35 ▲0.82591.68 ▼97.8979.79 ▲12.85
Media Library /wp-admin/upload.php1,385 ▼34.25 ▲0.03101.38 ▼2.0843.41 ▲0.54

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/marketing-360-payments-for-gravity-forms/marketing360-login-page.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: gravity forms, payment, payment gateway, donations

marketing-360-payments-for-gravity-forms/marketing-360-payments-gravityforms.php 69% from 13 tests

The main file in "Marketing 360® Payments for Gravity Forms" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("marketing-360-payments-for-gravity-forms.php" instead of "marketing-360-payments-gravityforms.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.4" instead of "4.7")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 224 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,222 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5240128965
CSS110163
JavaScript2201294

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity21.50
▷ Minimum class complexity2.00
▷ Maximum class complexity39.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods58
▷ Static methods2644.83%
▷ Public methods5798.28%
▷ Protected methods00.00%
▷ Private methods11.72%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants8
▷ Global constants337.50%
▷ Class constants562.50%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin