94% gravity-all-fields-plain

Code Review | Gravity Forms all_fields plain

WordPress plugin Gravity Forms all_fields plain scored 94% from 54 tests.

About plugin

  • Plugin page: gravity-all-field...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 5.8.1
  • First release: Oct 27, 2015
  • Latest release: Oct 27, 2015
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: No3x (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 851 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.01MB] [CPU: ▼135.39ms] Passed 4 tests

An overview of server-side resources used by Gravity Forms all_fields plain
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1227.82 ▲5.03
Dashboard /wp-admin3.07 ▲0.0143.89 ▲2.10
Posts /wp-admin/edit.php3.12 ▲0.0142.00 ▼0.90
Add New Post /wp-admin/post-new.php5.43 ▼0.0092.51 ▼542.41
Media Library /wp-admin/upload.php3.01 ▲0.0131.40 ▼0.36

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Gravity Forms all_fields plain
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.81 ▲0.2610.14 ▼0.9343.79 ▼11.78
Dashboard /wp-admin2,970 ▲375.92 ▼0.07134.21 ▼28.66111.68 ▼3.20
Posts /wp-admin/edit.php2,739 ▼02.84 ▼0.0161.95 ▼4.5692.24 ▲7.52
Add New Post /wp-admin/post-new.php1,872 ▲18919.22 ▲0.66384.27 ▼2.34114.40 ▼11.21
Media Library /wp-admin/upload.php1,807 ▼35.03 ▲0.01154.28 ▲8.92123.56 ▲5.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gravity-all-fields-plain/gravity-all-fields-plain.php:66

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: gravityforms, fields, placeholder, plain, html...

gravity-all-fields-plain/gravity-all-fields-plain.php Passed 13 tests

The main PHP file in "Gravity Forms all_fields plain" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
83 characters long description:
Use all_fields placeholder in Gravity Forms notification template but without html.

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
Success! There were no dangerous files found in this plugin48 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP144633
Markdown17015

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin