84% connect-eo-gf

Code Review | Connect EmailOctopus and Gravity Forms

WordPress plugin Connect EmailOctopus and Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: connect-eo-gf
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 6.3.1
  • First release: Nov 14, 2018
  • Latest release: Jan 16, 2020
  • Number of updates: 12
  • Update frequency: every 35.6 days
  • Top authors: ronalfy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /869 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.01MB] [CPU: ▼12.40ms] Passed 4 tests

An overview of server-side resources used by Connect EmailOctopus and Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.32 ▼3.16
Dashboard /wp-admin3.32 ▼0.0245.14 ▼25.68
Posts /wp-admin/edit.php3.37 ▲0.0245.26 ▼3.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.60 ▼17.63
Media Library /wp-admin/upload.php3.24 ▲0.0235.51 ▲1.98

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Connect EmailOctopus and Gravity Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.034.04 ▲2.3946.31 ▲0.60
Dashboard /wp-admin2,206 ▲215.84 ▼0.0694.82 ▼12.2738.82 ▼6.13
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0336.92 ▲1.6132.86 ▼1.49
Add New Post /wp-admin/post-new.php1,533 ▲1023.45 ▲0.12645.60 ▼32.8459.52 ▼1.56
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0994.81 ▼2.5440.81 ▼3.53

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/connect-eo-gf/includes/EOGF_API.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/connect-eo-gf/includes/EOGF_Feeds.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/connect-eo-gf/connect-eo-gf.php:139

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: emailoctopus, gravity forms

connect-eo-gf/connect-eo-gf.php 92% from 13 tests

"Connect EmailOctopus and Gravity Forms" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.8" instead of "4.9")

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
There were no executable files found in this plugin428 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP488228425
Markdown1203

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity14.50
▷ Minimum class complexity2.00
▷ Maximum class complexity27.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods1037.04%
▷ Public methods2696.30%
▷ Protected methods00.00%
▷ Private methods13.70%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin