84% gf-quorum-addon

Code Review | Integration for Gravity Forms and Quorum

WordPress plugin Integration for Gravity Forms and Quorum scored84%from 54 tests.

About plugin

  • Plugin page: gf-quorum-addon
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2019
  • Latest release: Jul 10, 2019
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: davetee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /441 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Integration for Gravity Forms and Quorum
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0136.48 ▼4.05
Dashboard /wp-admin3.31 ▲0.0144.29 ▼2.69
Posts /wp-admin/edit.php3.36 ▲0.0044.12 ▼2.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.55 ▼5.41
Media Library /wp-admin/upload.php3.23 ▲0.0030.70 ▼1.96

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 129 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Integration for Gravity Forms and Quorum
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.371.67 ▼0.1441.31 ▼0.03
Dashboard /wp-admin2,209 ▲174.89 ▼0.07108.50 ▼6.4240.30 ▼2.83
Posts /wp-admin/edit.php2,089 ▼02.11 ▲0.1137.14 ▼2.6033.82 ▼1.25
Add New Post /wp-admin/post-new.php1,533 ▼023.18 ▲4.80588.62 ▼38.7659.96 ▲14.23
Media Library /wp-admin/upload.php1,382 ▼64.22 ▲0.0595.34 ▼1.6140.71 ▼0.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 44× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/gf-quorum-addon/vendor/njimedia/quorumapi/tests/ClientTest.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/gf-quorum-addon/vendor/guzzlehttp/promises/src/CancellationException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/gf-quorum-addon/vendor/guzzlehttp/promises/src/AggregateException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/gf-quorum-addon/vendor/guzzlehttp/psr7/src/PumpStream.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/gf-quorum-addon/vendor/psr/http-message/src/ResponseInterface.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/gf-quorum-addon/vendor/guzzlehttp/psr7/src/NoSeekStream.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/gf-quorum-addon/vendor/guzzlehttp/promises/src/Promise.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/gf-quorum-addon/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/gf-quorum-addon/vendor/guzzlehttp/psr7/src/FnStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/gf-quorum-addon/vendor/guzzlehttp/psr7/src/Uri.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: subscribe, gravity forms, quorum

gf-quorum-addon/gf-quorum-addon.php 85% from 13 tests

The main PHP script in "Integration for Gravity Forms and Quorum" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected12,374 lines of code in 118 files:
LanguageFilesBlank linesComment linesLines of code
PHP981,7625,1288,593
Markdown111,00503,209
JSON700553
Dockerfile18010
make1409

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.44
Average class complexity13.25
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces9
Interfaces15
Traits2
Classes68
▷ Abstract classes00.00%
▷ Concrete classes68100.00%
▷ Final classes1014.71%
Methods664
▷ Static methods6910.39%
▷ Public methods54181.48%
▷ Protected methods81.20%
▷ Private methods11517.32%
Functions145
▷ Named functions5840.00%
▷ Anonymous functions8760.00%
Constants56
▷ Global constants11.79%
▷ Class constants5598.21%
▷ Public constants55100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected