84% gf-cloud

Code Review | Gravity Cloud: Compose and Style Gravity Forms

WordPress plugin Gravity Cloud: Compose and Style Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: gf-cloud
  • Plugin version: 0.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2023
  • Latest release: Aug 12, 2023
  • Number of updates: 8
  • Update frequency: every 9.0 days
  • Top authors: wgcorrea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /352 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.37ms] Passed 4 tests

Analyzing server-side resources used by Gravity Cloud: Compose and Style Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.40 ▼1.10
Dashboard /wp-admin3.32 ▲0.0253.66 ▲5.58
Posts /wp-admin/edit.php3.37 ▲0.0247.65 ▼2.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.44 ▼11.33
Media Library /wp-admin/upload.php3.24 ▲0.0141.03 ▲5.68

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Gravity Cloud: Compose and Style Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲12314.74 ▲0.091.99 ▲0.0143.88 ▼1.22
Dashboard /wp-admin2,294 ▲1145.63 ▼0.0487.44 ▼11.5938.60 ▼2.72
Posts /wp-admin/edit.php2,195 ▲982.00 ▼0.0036.36 ▼1.4737.76 ▲2.24
Add New Post /wp-admin/post-new.php1,536 ▲1022.89 ▼0.07650.85 ▼42.3547.15 ▼12.27
Media Library /wp-admin/upload.php1,493 ▲904.18 ▼0.02100.97 ▼2.3941.66 ▼8.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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 | 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 items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/gf-cloud/src/GravityCloud/GCDatabase.class.php on line 5
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/gf-cloud/src/GravityCloud/GCDatabase.class.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'GravityCloud\\API\\GCBaseController' not found in wp-content/plugins/gf-cloud/src/GravityCloud/API/RecipesController.class.php:7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gf-cloud/src/GravityCloud/GCDatabase.class.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-cloud/gravitycloud.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/gf-cloud/src/GravityCloud/API/GCBaseController.class.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: forms, styler, gravity forms design, gravity forms, ecommerce

gf-cloud/gravitycloud.php 92% from 13 tests

This is the main PHP file of "Gravity Cloud: Compose and Style Gravity Forms" version 0.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gf-cloud.php" instead of "gravitycloud.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
No dangerous file extensions were detected618 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1212912549
JavaScript12027
SVG10022
CSS15420

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.30
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes10
▷ Abstract classes110.00%
▷ Concrete classes990.00%
▷ Final classes00.00%
Methods51
▷ Static methods2854.90%
▷ Public methods4078.43%
▷ Protected methods23.92%
▷ Private methods917.65%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin