83% gravity-forms-highrise

Code Review | Gravity Forms Highrise Add-on

WordPress plugin Gravity Forms Highrise Add-on scored83%from 54 tests.

About plugin

  • Plugin page: gravity-forms-hig...
  • Plugin version: 2.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.7.1
  • WordPress version: 6.3.1
  • First release: Jun 9, 2011
  • Latest release: Nov 27, 2013
  • Number of updates: 34
  • Update frequency: every 26.5 days
  • Top authors: katzwebdesign (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /9,310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by Gravity Forms Highrise Add-on
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0136.73 ▼4.88
Dashboard /wp-admin3.31 ▲0.0045.63 ▼0.30
Posts /wp-admin/edit.php3.36 ▲0.0064.74 ▲13.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.80 ▼8.68
Media Library /wp-admin/upload.php3.23 ▲0.0037.63 ▲3.00

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Gravity Forms Highrise Add-on
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.47 ▼0.171.63 ▼0.2038.87 ▲0.21
Dashboard /wp-admin2,206 ▲184.87 ▼1.01100.71 ▼2.6737.58 ▼7.02
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0140.07 ▲4.8735.15 ▼0.84
Add New Post /wp-admin/post-new.php1,514 ▼517.71 ▼5.43682.77 ▲23.1263.24 ▲4.63
Media Library /wp-admin/upload.php1,388 ▲64.20 ▼0.0397.17 ▼3.2240.47 ▼3.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-highrise/highrise.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (The Gravity Forms Highrise Add-on settings page), #2 (It's easy to integrate Gravity Forms with Highrise: check a box in the "Advanced" tab of a form's Form Settings), #3 (A link to the person in Highrise is added to the entry info box)
  • Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

gravity-forms-highrise/highrise.php 92% from 13 tests

"Gravity Forms Highrise Add-on" version 2.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gravity-forms-highrise.php" instead of "highrise.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin896 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP218964896

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity117.00
▷ Minimum class complexity63.00
▷ Maximum class complexity171.00
Average method complexity7.63
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods35
▷ Static methods1954.29%
▷ Public methods2880.00%
▷ Protected methods38.57%
▷ Private methods411.43%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin