94% convergehub-forms-add-on-for-contact-form-7

Code Review | ConvergeHub For Contact Form 7

WordPress plugin ConvergeHub For Contact Form 7 scored 94% from 54 tests.

About plugin

  • Plugin page: convergehub-forms...
  • Plugin version: 1.0.12
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 5.8.1
  • First release: Sep 15, 2017
  • Latest release: Jul 13, 2021
  • Number of updates: 24
  • Update frequency: every 58.2 days
  • Top authors: convergehub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 658 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by ConvergeHub For Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1241.46 ▲17.40
Dashboard /wp-admin3.06 ▲0.0053.47 ▲6.23
Posts /wp-admin/edit.php3.11 ▲0.0051.26 ▲2.40
Add New Post /wp-admin/post-new.php5.42 ▼0.0296.42 ▼608.47
Media Library /wp-admin/upload.php3.00 ▲0.0034.79 ▼4.57

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ConvergeHub For Contact Form 7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.91 ▲0.3511.64 ▲2.7650.92 ▲0.41
Dashboard /wp-admin2,970 ▲396.08 ▲0.16151.37 ▲3.85120.07 ▼3.99
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0170.36 ▼5.3195.14 ▲0.75
Add New Post /wp-admin/post-new.php1,683 ▼018.77 ▲0.22392.65 ▼47.81113.18 ▼13.41
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.00157.94 ▼6.05125.13 ▼8.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/convergehub-forms-add-on-for-contact-form-7/convergeHub-forms-add-on-for-contact-form-7.php on line 12
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/convergehub-forms-add-on-for-contact-form-7/convergeHub-forms-add-on-for-contact-form-7.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/convergehub-forms-add-on-for-contact-form-7/convergeHub-forms-add-on-for-contact-form-7.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/convergehub-forms-add-on-for-contact-form-7/convergeHub-forms-add-on-for-contact-form-7.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: contact form 7, convergehub, convergehub api, convergehub leads, convergehub api integration...

convergehub-forms-add-on-for-contact-form-7/convergeHub-forms-add-on-for-contact-form-7.php 92% from 13 tests

The principal PHP file in "ConvergeHub For Contact Form 7" v. 1.0.12 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("convergehub-forms-add-on-for-contact-form-7.php" instead of "convergeHub-forms-add-on-for-contact-form-7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin313 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3825244
CSS13069

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/convergehubLogo.png1.27KB0.29KB▼ 76.98%