84% ymlp

Code Review | Gravity Forms YMLP Add-on

WordPress plugin Gravity Forms YMLP Add-on scored84%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: 6.3.1
  • 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

50+ active /2,896 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Gravity Forms YMLP Add-on
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.89 ▼0.57
Dashboard /wp-admin3.31 ▲0.0144.97 ▼3.06
Posts /wp-admin/edit.php3.36 ▲0.0048.67 ▲3.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.32 ▲5.47
Media Library /wp-admin/upload.php3.23 ▲0.0038.15 ▼0.29

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Gravity Forms YMLP Add-on
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.67 ▼0.711.80 ▼0.2543.31 ▲0.82
Dashboard /wp-admin2,206 ▲155.91 ▲0.85103.87 ▼12.7242.39 ▼4.93
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0239.61 ▲1.8534.95 ▲1.30
Add New Post /wp-admin/post-new.php1,533 ▼023.38 ▲0.30640.30 ▼24.2555.80 ▼3.84
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0292.00 ▼14.3940.34 ▼6.73

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | 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
  • 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 just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: Please 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 might help

ymlp/ymlp.php Passed 13 tests

Analyzing the main PHP file in "Gravity Forms YMLP Add-on" version 1.0.2
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 | Executable files are considered dangerous and should not be included with 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

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
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/active1.png0.71KB0.63KB▼ 11.28%
images/active0.png0.65KB0.61KB▼ 5.56%
images/remove.png3.32KB0.62KB▼ 81.33%
images/add.png3.37KB0.66KB▼ 80.54%