10% gravity-forms-css-themes-with-fontawesome-and-placeholder-support

Code Review | Gravity Forms CSS Themes with Fontawesome and Placeholders

WordPress plugin Gravity Forms CSS Themes with Fontawesome and Placeholders scored10%from 54 tests.

About plugin

  • Plugin page: gravity-forms-css...
  • Plugin version: 8.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 6.3.1
  • First release: Aug 28, 2014
  • Latest release: Jan 7, 2017
  • Number of updates: 36
  • Update frequency: every 24.0 days
  • Top authors: Maros Pristas (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /17,108 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/gravity-forms-css-themes-with-fontawesome-and-placeholder-support/gravity-forms-css-themes.php+84
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.90ms] Passed 4 tests

A check of server-side resources used by Gravity Forms CSS Themes with Fontawesome and Placeholders
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0547.50 ▲10.18
Dashboard /wp-admin3.46 ▲0.1148.61 ▼8.35
Posts /wp-admin/edit.php3.57 ▲0.2146.27 ▲0.51
Add New Post /wp-admin/post-new.php6.04 ▲0.1581.22 ▼16.93
Media Library /wp-admin/upload.php3.38 ▲0.1535.57 ▲1.19
GF CSS corporate Plugin Menu /wp-admin/admin.php?page=gfct-corporate3.3531.03
GF CSS Global Options /wp-admin/options-general.php?page=gfct_global_settings3.3532.50
GF CSS Themes Plugin Menu /wp-admin/admin.php?page=gfct-stylish3.3530.15

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options
gfct
widget_theysaidso_widget
gfct_global_settings
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gravity Forms CSS Themes with Fontawesome and Placeholders
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.67 ▼0.646.29 ▲4.6339.38 ▼1.35
Dashboard /wp-admin2,210 ▲224.86 ▼0.96109.44 ▲3.6038.10 ▼2.72
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0333.34 ▼4.3035.66 ▼1.02
Add New Post /wp-admin/post-new.php1,517 ▼217.56 ▼5.61581.18 ▼76.1754.48 ▼16.99
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0297.71 ▼2.5942.12 ▼1.94
GF CSS corporate Plugin Menu /wp-admin/admin.php?page=gfct-corporate1,5052.8362.6228.52
GF CSS Global Options /wp-admin/options-general.php?page=gfct_global_settings9821.9129.7033.18
GF CSS Themes Plugin Menu /wp-admin/admin.php?page=gfct-stylish1,6083.0566.2826.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • 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 items
  • 7× 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/gravity-forms-css-themes-with-fontawesome-and-placeholder-support/includes/gfct-global-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gravity-forms-css-themes-with-fontawesome-and-placeholder-support/includes/gfct-fields-gravity.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-css-themes-with-fontawesome-and-placeholder-support/options/gfct-corporate-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gravity-forms-css-themes-with-fontawesome-and-placeholder-support/includes/gfct-frontend-functions.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-css-themes-with-fontawesome-and-placeholder-support/options/gfct-stylish-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gravity-forms-css-themes-with-fontawesome-and-placeholder-support/gravity-forms-css-themes.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-css-themes-with-fontawesome-and-placeholder-support/includes/gfct-backend-functions.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

gravity-forms-css-themes-with-fontawesome-and-placeholder-support/gravity-forms-css-themes.php 92% from 13 tests

The main file in "Gravity Forms CSS Themes with Fontawesome and Placeholders" v. 8.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gravity-forms-css-themes-with-fontawesome-and-placeholder-support.php" instead of "gravity-forms-css-themes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin748 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP1412244705
CSS10039
JavaScript2004

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions68
▷ Named functions68100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected