84% postmatic-for-gravity-forms

Code Review | Postmatic for Gravity Forms

WordPress plugin Postmatic for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: postmatic-for-gra...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.3
  • WordPress version: 6.3.1
  • First release: Sep 29, 2015
  • Latest release: Sep 29, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: JeffMatson (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,028 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Postmatic for Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.04 ▼1.98
Dashboard /wp-admin3.32 ▼0.0249.46 ▼14.35
Posts /wp-admin/edit.php3.37 ▲0.0147.57 ▼2.13
Add New Post /wp-admin/post-new.php5.90 ▲0.01100.37 ▲2.66
Media Library /wp-admin/upload.php3.24 ▲0.0137.50 ▲1.66

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Postmatic for Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7714.47 ▲0.291.94 ▲0.1846.48 ▲3.22
Dashboard /wp-admin2,223 ▲205.82 ▼0.06104.52 ▼14.4642.32 ▼0.83
Posts /wp-admin/edit.php2,108 ▲52.14 ▲0.1437.99 ▲2.4032.52 ▼4.57
Add New Post /wp-admin/post-new.php1,555 ▲2423.23 ▲0.11677.46 ▲13.7749.48 ▼0.03
Media Library /wp-admin/upload.php1,408 ▲84.30 ▲0.10105.16 ▼3.6346.47 ▼4.12

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
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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)
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postmatic-for-gravity-forms/postmaticgf.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: The official readme.txt is a good inspiration

postmatic-for-gravity-forms/postmaticgf.php 92% from 13 tests

This is the main PHP file of "Postmatic for Gravity Forms" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("postmatic-for-gravity-forms.php" instead of "postmaticgf.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected100 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12717100

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin