88% ingagehub-connect

Code Review | INgageHub Connect

WordPress plugin INgageHub Connect scored 88% from 54 tests.

About plugin

  • Plugin page: ingagehub-connect
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-4.8.2
  • WordPress version: 5.8.1
  • First release: Apr 9, 2016
  • Latest release: Oct 12, 2017
  • Number of updates: 20
  • Update frequency: every 27.6 days
  • Top authors: ingagehub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 664 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼146.67ms] Passed 4 tests

Analyzing server-side resources used by INgageHub Connect
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.18 ▲0.3438.90 ▲5.35
Dashboard /wp-admin3.41 ▲0.3645.76 ▼10.18
Posts /wp-admin/edit.php3.46 ▲0.3647.60 ▼1.50
Add New Post /wp-admin/post-new.php5.71 ▲0.2888.20 ▼577.56
Media Library /wp-admin/upload.php3.29 ▲0.2935.79 ▲2.56
Campaigns /wp-admin/admin.php?page=ingagehub_menu_campaigns3.2526.44
Options /wp-admin/admin.php?page=ingagehub_menu3.2728.23

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for INgageHub Connect
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,718 ▲12215.91 ▲0.088.46 ▼1.4648.36 ▼2.94
Dashboard /wp-admin2,999 ▲656.12 ▲0.06139.15 ▼12.64128.48 ▲7.66
Posts /wp-admin/edit.php2,787 ▲482.69 ▲0.0164.84 ▼5.5884.42 ▼2.07
Add New Post /wp-admin/post-new.php1,697 ▲1418.90 ▲0.13387.47 ▲9.95111.93 ▲0.91
Media Library /wp-admin/upload.php1,784 ▼264.99 ▼0.03133.81 ▼18.71141.42 ▲17.86
Campaigns /wp-admin/admin.php?page=ingagehub_menu_campaigns1,1342.3354.7587.46
Options /wp-admin/admin.php?page=ingagehub_menu1,1142.3356.6272.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 32× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_save3.php
    • > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_table.php
    • > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_add2.php
    • > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_form2b1.php
    • > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_edit2.php
    • > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_edit3.php
    • > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_cancel1.php
    • > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_delete2.php
    • > /wp-content/plugins/ingagehub-connect/menu_pages/campaigns_form2a.php
    • > /wp-content/plugins/ingagehub-connect/components/services.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function com_ingagehub_plugin_dir_path() in wp-content/plugins/ingagehub-connect/classes/campaign.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
4 plugin tags: conversation, audience, marketing, engagement

ingagehub-connect/plugin.php 85% from 13 tests

This is the main PHP file of "INgageHub Connect" version 2.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ingagehub-connect.php" instead of "plugin.php")
  • Description: A good plugin description is longer than 10 characters (currently 9 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,238 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP41598473,005
JavaScript612357899
CSS4151168
Sass1340166

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity26.08
▷ Minimum class complexity5.00
▷ Maximum class complexity74.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods123
▷ Static methods4234.15%
▷ Public methods11291.06%
▷ Protected methods00.00%
▷ Private methods118.94%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
14 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/delete_24x24.png1.24KB0.80KB▼ 35.56%
images/add_24x24.png3.37KB0.86KB▼ 74.56%
images/banner-541x71.png13.62KB5.90KB▼ 56.70%
images/search_24x24.png0.53KB0.55KB0.00%
images/arrow_down_24x24.png0.69KB0.28KB▼ 59.43%