94% ymlp

Code Review | Gravity Forms YMLP Add-on

WordPress plugin Gravity Forms YMLP Add-on scored 94% from 54 tests.

About plugin

  • Plugin page: ymlp
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.2
  • WordPress version: 5.9.2
  • First release: Oct 14, 2012
  • Latest release: Apr 20, 2015
  • Number of updates: 7
  • Update frequency: every 131.1 days
  • Top authors: katzwebdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 2,566 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Gravity Forms YMLP Add-on
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0156.50 ▲7.56
Dashboard /wp-admin3.41 ▲0.0134.17 ▲0.24
Posts /wp-admin/edit.php3.65 ▲0.0139.58 ▲0.98
Add New Post /wp-admin/post-new.php6.88 ▼0.09131.59 ▼1,173.62
Media Library /wp-admin/upload.php3.30 ▲0.0029.77 ▲4.41

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Gravity Forms YMLP Add-on
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.79 ▲0.215.62 ▼0.753.26 ▲0.29
Dashboard /wp-admin2,892 ▲386.03 ▼0.05120.19 ▼19.65170.25 ▲4.06
Posts /wp-admin/edit.php2,694 ▲63.24 ▼0.0169.28 ▲7.46141.85 ▼5.50
Add New Post /wp-admin/post-new.php1,717 ▲621.57 ▲0.79458.45 ▼1.97204.14 ▼32.63
Media Library /wp-admin/upload.php1,692 ▼65.52 ▼0.07166.25 ▲26.38208.46 ▼56.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix 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_action() in wp-content/plugins/ymlp/ymlp.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add images for these screenshots: #1 (The Gravity Forms YMLP Add-on settings page), #2 (It's easy to integrate Gravity Forms with YMLP: set up a "Feed" and match up the fields you'd like sent to YMLP), #3 (Configure many integrations at once with multiple Gravity Forms)
The official readme.txt is a good inspiration

ymlp/ymlp.php Passed 13 tests

The principal PHP file in "Gravity Forms YMLP Add-on" v. 1.0.2 is loaded by WordPress automatically on each request
106 characters long description:
Integrates Gravity Forms with YMLP allowing form submissions to be automatically sent to your YMLP account

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,369 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32851221,369

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity63.00
▷ Minimum class complexity9.00
▷ Maximum class complexity163.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods83
▷ Static methods3946.99%
▷ Public methods6983.13%
▷ Protected methods33.61%
▷ Private methods1113.25%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/remove.png3.32KB0.62KB▼ 81.33%
images/add.png3.37KB0.66KB▼ 80.54%
images/active0.png0.65KB0.61KB▼ 5.56%
images/active1.png0.71KB0.63KB▼ 11.28%