78% bluecube-mighty-gravity-forms

Code Review | Blue Cube Mighty Gravity Forms

WordPress plugin Blue Cube Mighty Gravity Forms scored78%from 54 tests.

About plugin

  • Plugin page: bluecube-mighty-g...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2016
  • Latest release: Oct 21, 2016
  • Number of updates: 13
  • Update frequency: every 4.5 days
  • Top authors: thebluecube (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,320 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.06ms] Passed 4 tests

This is a short check of server-side resources used by Blue Cube Mighty Gravity Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.98 ▼7.66
Dashboard /wp-admin3.32 ▲0.0244.79 ▼4.68
Posts /wp-admin/edit.php3.37 ▲0.0245.97 ▼0.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.03 ▲1.12
Media Library /wp-admin/upload.php3.24 ▲0.0233.24 ▲0.12

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blue Cube Mighty Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.20 ▼1.181.91 ▲0.0940.20 ▼10.45
Dashboard /wp-admin2,206 ▲154.87 ▼0.16108.08 ▲5.0139.19 ▼0.98
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0240.17 ▲5.1634.61 ▲0.83
Add New Post /wp-admin/post-new.php1,543 ▼118.63 ▲0.52632.94 ▲24.5783.96 ▲26.75
Media Library /wp-admin/upload.php1,385 ▲34.25 ▲0.0793.92 ▼5.9641.01 ▼3.47

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bluecube-mighty-gravity-forms/template/number-range-change-front-end-code.php
  • 45× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: ruler_field_jquery_selector in wp-content/plugins/bluecube-mighty-gravity-forms/template/number-range-change-front-end-code.php on line 13
    • > PHP Notice
      Undefined variable: dep_field_suffix in wp-content/plugins/bluecube-mighty-gravity-forms/template/number-range-change-front-end-code.php on line 54
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bluecube-mighty-gravity-forms/template/number-range-change-front-end-code.php on line 19
    • > PHP Notice
      Undefined variable: dep_field_suffix in wp-content/plugins/bluecube-mighty-gravity-forms/template/number-range-change-front-end-code.php on line 44
    • > PHP Notice
      Undefined variable: dep_field_suffix in wp-content/plugins/bluecube-mighty-gravity-forms/template/number-range-change-front-end-code.php on line 59
    • > PHP Notice
      Undefined variable: dep_field_jquery_selector in wp-content/plugins/bluecube-mighty-gravity-forms/template/number-range-change-front-end-code.php on line 12
    • > PHP Notice
      Undefined variable: ruler_field_suffix in wp-content/plugins/bluecube-mighty-gravity-forms/template/number-range-change-front-end-code.php on line 49
    • > PHP Notice
      Undefined variable: rule in wp-content/plugins/bluecube-mighty-gravity-forms/template/number-range-change-front-end-code.php on line 18
    • > PHP Notice
      Undefined variable: dep_field_suffix in wp-content/plugins/bluecube-mighty-gravity-forms/template/number-range-change-front-end-code.php on line 21
    • > PHP Notice
      Undefined variable: ruler_field_jquery_selector in wp-content/plugins/bluecube-mighty-gravity-forms/template/number-range-change-front-end-code.php on line 36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

bluecube-mighty-gravity-forms/bluecube-mighty-gravityforms.php 92% from 13 tests

"Blue Cube Mighty Gravity Forms" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bluecube-mighty-gravity-forms.php" instead of "bluecube-mighty-gravityforms.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 detected532 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3184284532

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity107.00
▷ Minimum class complexity107.00
▷ Maximum class complexity107.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods43
▷ Static methods00.00%
▷ Public methods1841.86%
▷ Protected methods2455.81%
▷ Private methods12.33%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin